Dev Build 2152 is out now, with several auto complete tweaks.
Dev Build 2152
Sublime 2 Build 2152 is super awesome with all its auto complete features. Its getting more and more powerful with every frequent releasesā¦
Hello,
Iāve installed 2151 and found a bit annoying the autocomplete (using Ruby) so turned off. Now with 2152 and autocomplete off, doing ādo(tab)ā to get the usual ādo |variable| ā¦ endā snippet, it no longer works.
Now I need to enable autocomplete for it, but the dropdown of autocomplete gets a bit noisy when you actually know what youāre doing and donāt want autocompletion.
Also seems that the snippet changes from ādoā as trigger to ādobā, which could be what Iām seeing.
Perhaps ādoā can be mapped to ādo ā¦ endā (with no variable)?
Thank you
luislavena: the trigger for that snippet has changed from do to dob, which explains what youāre seeing.
Nice! I used this to deliminate the function description and itās return type, but itās a bit problematic with long function names:
And then thereās the problem with wide functions in general:
I only just noticed this, I donāt know which update it actually changed in, but is there a reason why the recent file list no longer includes folders? If it was intentional and not a bug, can we have it back please?
Hmmmā¦ The lastest update broke my plugin. Ironically, I believe itās from something that I requested:
My plugin triggers autocomplete on period. In the lastest update, the autocomplete box disappears instantly. My only guess as to why is because ST2 looks at the previous character, sees itās a period and closes the autocomplete.
Also, thereās a bug when typing on the last line with scroll_past_end turned off. Autocomplete pops up in the middle of the screen.
Other than that, the lastest version is fantastic. Thanks for all your hard work.
EDIT: In the meantime, I fixed this issue by adding an underscore to all my autocompletions and changing my plugin to insert ._
instead of just period
Almost
It is not if you invoke the auto completion by hitting CTRL+SPACE and the proposal list is long enough (dropdown popup still goes outside the screen in that case).
It would be nice if the help text wasnāt considered while looking for a match to what is already typed.
I had modified SublimeRope so itās proposals have the form āproposal\t(help text)ā, but when on an empty line I start to type āfuncā, the list of proposals that gets shown is, for example, āfilter\t(builtin, function)ā, āformat\t(builtin, function)ā].
But if after I hit escape to close the popup, I hit ctrl+space, I get, for example āfound_resourceā] (that proposal doesnāt comes from SublimeRope, but from the contents of the buffer).
In both cases I would expect to NOT have any proposals. In the first case, because Iām only interested in what is about to be inserted (not the help text). In the second, because if I had typed āfuncā, āfound_resourceā is totally unrelated (the fuzzy search is just too fuzzy to be of any help).
Having āfuncā replaced by āfound_resourceā after I hit ā.ā drives me insane (thatās the reason I have ātab_completionā set to false, actually).
Edit: other than that, I really love ST2, and Iām trying to get my boss to buy us some licenses (hope that works out!).
I think we should be able to set which keys will accept the current autocomplete suggestion. As it is, every time I type āendā (which is practically every 3rd line in ruby) my āendā gets replaced with āsendā and I have to go back and fix it. I love seeing the autocomplete box automatically, but I donāt want it to replace my text unless I hit TAB.
+1 Better not hijack ENTER.
Regarding this comment, there is an issue with shift+tab, whatever the value of shift_tab_unindent settings:
- Start typing to show the autocomplete box.
2, Validate your selection with tab key. - shift+tab to insert tab -> doesnāt work, do previous best completion
I didnāt find any way to insert a tab in this context. If I validate my selection with enter key itās working fine.
Maybe the validation of autocomplete box with tab must react as validation with enter.
Actually, shift+tab is used for:
- unindent
- insert tab
- insert previous best completion
Itās quite difficult to know which action is triggered in which context.
Regression Bug with key bindings on DEV.
https://forum.sublimetext.com/t/keybindings-regression-bug-dev-build-2152/3566/1