SublimeText / AdvancedNewFile

File creation plugin for Sublime Text
MIT License
828 stars 93 forks source link

Feature: Show directory contents with "nix" completion on double-TAB #160

Open djspiewak opened 7 years ago

djspiewak commented 7 years ago

Basically, I'm thinking of something similar to the Emacs (or shell) behavior. With "nix"-style completion enabled, if the user presses TAB twice when the completion is ambiguous, show a list of all options. This could be done with a minihtml hover, or (preferably) by expanding the panel to include the file list above the file bar (ideally with sidebar-derived icons, but really it doesn't matter).

As it stands, windows-style completion is almost the only useful one (despite its annoying behavior), since it's the only way to explore a directory structure.

skuroda commented 7 years ago

Thanks for the suggestion. I'll look at the ST3 api to see what can be done. U agree though that in the current form, windows style completion is the useful version. Unfortunately, it's the best I could do (cleanly) with the ST2 api.

FichteFoll commented 2 years ago

At least with ST4, it should be possible to simply use the normal auto complete popup for this feature. If I eventually end up adding this feature, I'll see if it feals more natural

The latter could turn out to be difficult to implement with ST native tools, however, and would likely end up looking similar to #185 using minihtml popups.