Is there a way I can just disable all autocompletion in TM2? I really prefer not to use it, but occasionally its getting in the way. I've trawled various bundles but cant figure out where any of it is defined
Example:
do|case "$o" in
The caret is where the | pipe character is. If I press TAB here it autocompletes to..
do #statements| donecase "$o" in
Likewise if I press ESC instead, it autocompletes to
done|case "$o" in
Id rather it just inserted a TAB character
Thanks
On 12 July 2015 at 16:29, Carpii UK carpii.uk@gmail.com wrote:
Is there a way I can just disable all autocompletion in TM2? I really prefer not to use it, but occasionally its getting in the way. I've trawled various bundles but cant figure out where any of it is defined
Example:
do|case "$o" in
The caret is where the | pipe character is. If I press TAB here it autocompletes to..
do #statements| donecase "$o" in
These tab triggers are rather fundamental to TextMate. In the «Bundles» menu, every item that looks like «text⇥» can be activated by hitting ⇥ with the caret after «text».
If you are certain that you wish to disable all of these, you can create a new command (i.e. open the Bundle Editor, create a personal bundle if you haven’t already, create a command in that bundle) with contents like
#!/usr/bin/env ruby18 -wKU print "\t"
Input: Nothing Output: Insert at Caret Key Equivalent: ⇥ (or something else like ^I)
Don’t forget to save your new command.
Hope that helps, Martin
Likewise if I press ESC instead, it autocompletes to
done|case "$o" in
Id rather it just inserted a TAB character
On 13 July 2015 at 06:37, Martin Kühl martin.kuehl@gmail.com wrote:
On 12 July 2015 at 16:29, Carpii UK carpii.uk@gmail.com wrote:
Is there a way I can just disable all autocompletion in TM2?
If you are certain that you wish to disable all of these, you can create a new command
#!/usr/bin/env ruby18 -wKU print "\t"
Input: Nothing Output: Insert at Caret Key Equivalent: ⇥ (or something else like ^I)
Don’t forget to save your new command.
Hope that helps, Martin
Ahh, this is beautiful! The tab completion has been driving me crazy for such a long time now
Thanks so much :-)
On 13 Jul 2015, at 7:37, Martin Kühl wrote:
If you are certain that you wish to disable all of these, you can create a new command
I suggest recording a macro instead.
The tab key is slightly context sensitive, e.g. it adjusts indent when used at the beginning of a line.
Recording a macro (Edit → Macros → Start Recording) will put “insertTab:” in the macro, which, during replay, will not try to expand tab triggers, but will do the other things that the tab key does.
As for the issue with tab triggers in general, the bundle item chooser (⌃⌘T) can search for tab triggers, so it should be easy to find (and edit) the items that clash with commonly typed stuff.