DlangAutoImport
Sublime 3 D-lang AutoImport plugin. Add "import ...." for symbol.
Details
Installs
- Total 774
- Win 561
- Mac 78
- Linux 135
Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 2 | 1 | 1 | 0 | 2 | 2 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 2 | 0 | 1 | 2 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime 3 Dlang Auto-Import
Sublime 3 D AutoImport plugin. Add “import ….” for symbol.
It provides the dlang_auto_import
command.
Demo
Features
In code like this:
class Uno : IStylable
{
//
}
will be auto added “import ui.istylable : IStylable;” at begin of file. Like this:
import ui.istylable : IStylable;
class Uno : IStylable
{
//
}
Algo
- Scan project files, using ST3 index
- Grep for Symbol
- Grep file for “module …”
- Get module.name
- Check for existing “module … : Symbol”
- Build line “import module_name : Symbol;”
- Insert in text.
- - after last “import …”
- - after “module …”
- - at top
Installation
Install DlangAutoImport from Package Control.
Then add a keybinding of your choice for the dlang_auto_import
command, by adding a line like this to your keybindings file:
{ "keys": ["alt+a"], "command": "dlang_auto_import" },
You can also try it out immediately by choosing “D: import …” from the context menu or command pallete.