[TxMt] I must be missing something obvious

Timothy Bates timothy.c.bates at gmail.com
Fri Apr 13 19:15:00 UTC 2007


>>like to use the TAB to get to the  outside of auto-paired insertions.
> But what if you want a real TAB?

There are of course trade offs. Given that pairs are already switchable off,
they could have a tri-state preference:
    0: pairs on (trapped)
    1: pairs on (tab to exit)
    2: pairs off

Also, for the 1 time in 20 that people want to put a real tab into a
bracketed context, either a work around (fwd-delete to cancel the
auto-created closure before tabbing), or else Allan might make option-tab
gives a tab when tab would exit a paired-char.

on tab(pairsPrefState){
    if (completion found){
        do completion;
    }elseif (auto-pair is found && pairsPrefState == 1){
        jump over auto-pairing;
    }else{
        insert tab;
    }
end tab

Tim





More information about the textmate mailing list