Sublime Forum

DlangAutoModuleName

#1

D lang.
Plugin will be add “module name;”.
Module name detected from first “class name” or “interface name” or “struct name”.
GitHub: https://github.com/vitalfadeev/SublimeDlangAutoModuleName

Demo:

1 Like

#2

That’s really cool. Two suggestions:

  1. Only show the menu item when the syntax is set to D. This can be done by providing an override for is_visible.
  2. Also determine the module from the file name. Personally my workflow with D is to save the file, then add the module name, this would help automate that. You could even make it aware of the parent folders.
3 Likes

#3

A specially for you !

Updated:

  1. ok - for D only
  2. ok - from file name

PS. Thanks for suggestions ! It really helpfull !

0 Likes