DlangAutoImport
Sublime 3/4 D-lang AutoImport plugin. Add "import ...." for symbol.
Details
Installs
- Total 1K
- Win 700
- Mac 117
- Linux 183
| 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 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 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 |
| 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 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 |
Readme
- Source
- raw.githubusercontent.com
Sublime ¾ Dlang Auto-Import
Sublime ¾ 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.
Hint
For auto-comlition Phobos/core/sys/std D keywords (Linux):
Menu:
Project / Edit Projectedit
{
"folders":
[
{
"path": "."
},
{
"path": "/usr/include/dmd/druntime",
"file_include_patterns": ["*.d"]
},
{
"path": "/usr/include/dmd/phobos",
"file_include_patterns": ["*.d"]
}
]
}