Home Download Buy Blog Forum Support

Best way to cycle through auto-complete suggestions

Best way to cycle through auto-complete suggestions

Postby ryanlecompte on Wed Dec 28, 2011 2:18 pm

Hello all,

I'm running the latest developer build. It seems right now when I begin typing, the auto-complete suggester pops up. If I want to select for example, the 3rd suggestion in the list, I have to use the down arrow to cycle down the list. Is this the best way? I notice that if I hit tab again it will select the first suggestion instead of moving down the list of suggestions. Is this the right behavior or do I have something misconfigured in settings?

Thanks!
ryanlecompte
 
Posts: 20
Joined: Wed Dec 28, 2011 2:16 pm

Re: Best way to cycle through auto-complete suggestions

Postby prmaple on Thu Dec 29, 2011 3:54 am

I guess it's just how it works.

tab normally works for snippets, in this case, first auto suggestion.

those smart guys who don't want to use arrow keys could think about a good way to move the selection without bothering the snippets setting.

I personally feel using arrow keys is all right since I'm not a heavy vim user. :)

Also, type few more letters won't be too hard and it could lead you to the selection you want.
Find me
HTML5 Games: SNAKE! Tetris!
prmaple
 
Posts: 77
Joined: Sun Dec 25, 2011 11:06 am
Location: Melbourne

Re: Best way to cycle through auto-complete suggestions

Postby ryanlecompte on Thu Dec 29, 2011 5:31 am

Thanks! What I ended up doing was to disable the auto-complete popup, and instead just rely on tab and shift-tab to move up/down the list of matches. I've found that usually hitting tab once or twice gets me to where I need and doesn't distract me with a visual pop-up of choices like the current default behavior in the dev builds.
ryanlecompte
 
Posts: 20
Joined: Wed Dec 28, 2011 2:16 pm

Re: Best way to cycle through auto-complete suggestions

Postby Jay Levitt on Thu Jan 05, 2012 1:24 pm

This is when I miss my Stratus v102 terminal, which had separate keys for "cycle/cycle back" (pick the next/previous autocomplete) and "insert form" (show me the drop-down").

I'm sure Sublime could come up with some combination of alt-meta-control-arrow stuff to express those separate intents, but of course it would conflict with everything everywhere else..
Jay Levitt
 
Posts: 52
Joined: Sun Sep 25, 2011 6:22 pm

Re: Best way to cycle through auto-complete suggestions

Postby jps on Thu Jan 05, 2012 1:32 pm

Pressing control+space will go to the next line in the completion popup if the popup is currently showing (otherwise it shows it)
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Best way to cycle through auto-complete suggestions

Postby zajo on Fri Sep 27, 2013 4:41 pm

I'm using Sublime Text 2.0.2 at Linux, in Vintage mode.

My Keybindings - Default says:
Code: Select all
{ "keys": ["alt+/"], "command": "auto_complete" },

Which loops through the context autocomplete menu and is very handy (no need to use arrow keys), but i can't find any keystroke to loop the context menu in reverse direction.

Any ideas?
zajo
 
Posts: 1
Joined: Fri Sep 27, 2013 4:34 pm


Return to General Discussion

Who is online

Users browsing this forum: elishnevsky, Majestic-12 [Bot] and 27 guests