+1

Permit <TAB> character to be used for autocompletion in dialogs

Chris Burgess 12 years ago updated 12 years ago 1
In ST2's quick panel and palettes, a <TAB> keystroke is interpreted as a literal TAB character.

ST2 offers autocomplete results frequently, and in this context a TAB keystroke means "accept default autocomplete" to many users.

I asked wbond about this (in context of his excellent SFTP plugin browser), and he replied,

"I agree with you that it would make sense if the Sublime quick panel would accept using the tab key to select an item. Unfortunately there isn't any way with the Sublime API to do that. I tried adding a key binding with a context so that it would only affect the quick panel, however I could not get it to fake the enter key when I press tab."


I would be a very happy user if ST2 was to either -


1. Treat TAB as ENTER (=accept selected result) in autocomplete contexts, or

2. Permit plugin authors to override the default behaviour of accepting TAB as text entry.


There might be valid reasons for typing a TAB character in a panel, but I think that would be far less common a use case than using it for autocomplete.

posted to forum also: http://www.sublimetext.com/forum/viewtopic.php?f=4&t=4554