Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Optionally dismiss suggestion list on up/down instead of cycling. #838
Description of the Change
I often found myself pining for the behavior of Sublime Text's autocompletion widget, which permitted navigation with one's arrow keys, à la the "Core Movement Commands" setting here, but wouldn't be so presumptuous as to hijack them and would politely yield control and see itself out if one tried to navigate above its first suggestion or below its last. It was especially handy for breaking out of autocompletion without reaching for Escape---one could just hit the up arrow and get on with one's life---but it was generally nice not to spend the occasional confused millisecond trying to make the cursor move when a suggestion list was in view.
Implementing the change was super straightforward. There's a new preference, "Cycle Suggestions": in its presence, the behavior is unchanged; in its absence, trying to move beyond the boundaries of the list dismisses it and fires a new movement in the editor.
I briefly tried it without forcing the cursor up/down a line when the list was dismissed. If anything this was more frustrating than getting caught in a loop, as the keystroke appeared to do nothing at all.
Never again will an element I'm usually only half-attending to take over my arrow keys.
Anyone who enables this feature and dislikes it will lose valuable seconds disabling it again.
Apparently I'm all alone here.