It would be most helpful if TextMate would track this a little better...
When I type a smart pair key, TM should take note of the position of the closing character. If I type additional smart pair keys, it keeps track of each position. These positions are kept as long as I'm on that line. If I navigate away, the list is lost. Hitting the tab key would take me to the last position recorded. Tabbing again would go to the next, etc.
So, typing "(", would yield (numbers are used to show tab positions, in order of where you'd go next if hitting the tab key; "|" is the caret position):
(|)1
Then, typing ":
("|"1)2
Then typing "Testing"
("Testing|"1)2
Then hitting tab:
("Testing"|)1
Then typing ", 10":
("Testing", 10|)1
Then hitting tab:
("Testing", 10)|
That feels rather natural to me. Maybe tab isn't the right key since it could have side effects with other tab triggers... I'm not sure what would be a better alternative though.
-Brad
On May 16, 2006, at 5:34 PM, John Tsombakos wrote:
On 5/16/06, Oscar Bonilla ob@bitmover.com wrote:
On May 16, 2006, at 5:04 PM, John Tsombakos wrote:
Am I missing some simple navigation? It's a simple thing that's
making
my want to turn off Smart typing.
What I usually do is hit Ctrl-e (go to end-of-line). Saves me n-1 keystrokes where n is the number of smart typed characters I entered.
Hm. That'd work. As long as what I just typed is on the end of the line ;)
If I typed td then did control - < to automatically enter the
<td></td> tags then continued to type style=" .. hitting Ctrl-e would go to the very end. Oh well, I thought there may be a "jump out of the current "smart typing space" " keystroke that I missed :)
Thanks
jt
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate