Home Download Buy Blog Forum Support

ESC key for a different kind of auto completion.

ESC key for a different kind of auto completion.

Postby timbetimbe on Tue May 03, 2011 6:12 pm

In textmate if you hit ESC it auto completes using words already in the current doc and you can cycle through them by hitting ESC again.

If there a way to set this up in sublime? It's the only hangup I have with the editor, since tab auto complete decides to complete from the language BEFORE trying words in the current doc.
timbetimbe
 
Posts: 2
Joined: Tue May 03, 2011 6:09 pm

Re: ESC key for a different kind of auto completion.

Postby natebeaty on Wed May 04, 2011 7:37 am

I got really used to TextMate's Esc behavior also. It's amazing how often you need a word that's close by in the same document, and the first letter plus a few taps of Esc worked great.

My adapted behavior is to just be a bit more verbose to get ST2's tab complete to find what I want (e.g. to match ActiveNav I do something like Ana[tab]) -- but I often end up with the common complaint of an obscure PHP function (e.g. an[tab] gave me apache_note(note_name) .. err).
natebeaty
 
Posts: 119
Joined: Wed Apr 06, 2011 8:28 pm
Location: Chicago, IL

Re: ESC key for a different kind of auto completion.

Postby timbetimbe on Thu May 05, 2011 11:49 pm

Agreed. It need to check the document for completions first before diving into the current documents language api
timbetimbe
 
Posts: 2
Joined: Tue May 03, 2011 6:09 pm

Re: ESC key for a different kind of auto completion.

Postby ehamiter on Thu May 12, 2011 12:44 am

Couldn't find this elsewhere-- once you hit tab to autocomplete, if it guesses incorrectly, how do you cycle through other choices or back out of it?
ehamiter
 
Posts: 67
Joined: Wed Apr 27, 2011 2:42 am

Re: ESC key for a different kind of auto completion.

Postby jbjornson on Thu May 12, 2011 6:48 am

ctrl+space
jbjornson
 
Posts: 335
Joined: Tue Oct 27, 2009 4:25 pm
Location: Zurich, Switzerland

Re: ESC key for a different kind of auto completion.

Postby ehamiter on Thu May 12, 2011 3:49 pm

Sweet, thanks.
ehamiter
 
Posts: 67
Joined: Wed Apr 27, 2011 2:42 am

Re: ESC key for a different kind of auto completion.

Postby karl on Mon Sep 12, 2011 2:47 pm

There is a Sublime Text plugin available that adds TextMate style 'Esc' completion:

https://github.com/alexstaubo/sublime_t ... completion

Helped my switch over immensely :)
karl
 
Posts: 2
Joined: Mon Sep 12, 2011 2:41 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 21 guests