sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
812 stars 39 forks source link

Make completion stick around more in ST4 #4375

Open fredheidrich opened 3 years ago

fredheidrich commented 3 years ago

Problem description

In the current build of ST4107 you must choose completions with the arrow keys which is much slower than cycling completions with the TAB key like how ST3 worked. Hitting TAB will choose whichever is selected (default is top hit) and stop the completion. This breaks the speed and flow of typing in ST4 resulting in a sluggish writing experience compared to ST3

Preferred solution

Completion window needs to stick around longer so I can cycle completions with successive TAB instead of closing the window on the first entry.

Alternatives

Option to revert to ST3 tab behavior in ST4

Additional Information (optional)

# textfile:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
# ST3
l TAB -> labore
l TAB TAB -> lorem
no tab completion window appears (nice)
deathaxe commented 3 years ago

Related to #4254

The functions insert_best_completion and replace_completion_with_next_completion (the latter one is triggered when hitting tab after a word in html) no longer exist. Those were condenced into normal auto-completion functionality.