Hi, I'm new to the list, so please forgive me, if this has being asked before. Is it possible to change the tab behavior of TextMate? For example I find it strange that single line intending to the right works correctly (using tabs), but if you try to tab back to the left site, it is using spaces instead of tabs.
It would also be great to change the behavior of multi line tabbing. I'm so used to use the tab key to intend to the right and "apple key" together with the tab key to move lines to the left. But if I do that, the lines I would like to intend, are deleted.
(I hope you understand what I mean.. sorry for my english)
Other then that I really like TextMate.
Kind Regards, Andy Switzerland
Sorry.. instead of "apple-key", I mean shift key (the one to write big characters :) )
On Jan 11, 2005, at 3:28 AM, Andreas Bueler wrote:
Hi, I'm new to the list, so please forgive me, if this has being asked before. Is it possible to change the tab behavior of TextMate? For example I find it strange that single line intending to the right works correctly (using tabs), but if you try to tab back to the left site, it is using spaces instead of tabs.
It would also be great to change the behavior of multi line tabbing. I'm so used to use the tab key to intend to the right and "apple key" together with the tab key to move lines to the left. But if I do that, the lines I would like to intend, are deleted.
(I hope you understand what I mean.. sorry for my english)
Other then that I really like TextMate.
Kind Regards, Andy Switzerland_____________________________________________________________ _________ 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
On Jan 11, 2005, at 3:28, Andreas Bueler wrote:
[...] I find it strange that single line intending to the right works correctly (using tabs), but if you try to tab back to the left site, it is using spaces instead of tabs.
I don't understand this. Are you using 'shift left' (from the Text menu) w/o a selection to indent a line (i.e. add leading tabs) and it then inserts a tab character. But when you afterwards use 'shift right' it only removes a single space from the line and not a tab character?
It would also be great to change the behavior of multi line tabbing. I'm so used to use the tab key to intend to the right and "apple key" together with the tab key to move lines to the left. But if I do that, the lines I would like to intend, are deleted.
You can use option-tab and option-shift-tab instead. The reason I didn't put it on tab (as I know some editors do) is, that I often replace the selection with a single tab character.
You can however change the default keys to have it on tab instead (if you really want it) -- currently you'll need to manually create a key bindings file (see Help / Key Bindings).
On Jan 11, 2005, at 3:45 AM, Allan Odgaard wrote:
On Jan 11, 2005, at 3:28, Andreas Bueler wrote:
[...] I find it strange that single line intending to the right works correctly (using tabs), but if you try to tab back to the left site, it is using spaces instead of tabs.
I don't understand this. Are you using 'shift left' (from the Text menu) w/o a selection to indent a line (i.e. add leading tabs) and it then inserts a tab character. But when you afterwards use 'shift right' it only removes a single space from the line and not a tab character
Sorry, I was explaining it wrong :( I use the tab key to intend code (works fine). When I would like to delete leading tabs (delete key) it only deletes one space instead of removing the tab character.
It would also be great to change the behavior of multi line tabbing. I'm so used to use the tab key to intend to the right and "apple key" together with the tab key to move lines to the left. But if I do that, the lines I would like to intend, are deleted.
You can use option-tab and option-shift-tab instead. The reason I didn't put it on tab (as I know some editors do) is, that I often replace the selection with a single tab character.
You can however change the default keys to have it on tab instead (if you really want it) -- currently you'll need to manually create a key bindings file (see Help / Key Bindings).
Thanks, I will take a look at that option. I really like to use the keys I'm used to.
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
On Jan 11, 2005, at 3:55, Andreas Bueler wrote:
I don't understand this. Are you using 'shift left' (from the Text menu) w/o a selection to indent a line (i.e. add leading tabs) and it then inserts a tab character. But when you afterwards use 'shift right' it only removes a single space from the line and not a tab character
Sorry, I was explaining it wrong :( I use the tab key to intend code (works fine). When I would like to delete leading tabs (delete key) it only deletes one space instead of removing the tab character.
Have you enabled free handed editing (Edit / Mode)? This would cause that behavior.
I had a look at the search... I can't find this file: FROM HELP: TextMate further augments the key bindings with its own dictionary in path_to_textmate/TextMate.app/Contents/Resources/KeyBindings.dict.
On Jan 11, 2005, at 4:12, Andreas Bueler wrote:
I can't find this file: FROM HELP: TextMate further augments the key bindings with its own dictionary in path_to_textmate/TextMate.app/Contents/Resources/KeyBindings.dict
It should be there: % ls -l ~/Oak/TextMate.app/Contents/Resources/KeyBindings.dict -rw-r--r-- 1 duff duff 3508 5 Jan 13:46 /Users/duff/Oak/TextMate.app/Contents/Resources/KeyBindings.dict
But come to think about it, you can't really change 'shift right' to be on the tab key, because it would apply even when there is no selection :/
I'll keep this in mind for when I do an in-app key editor (that it may be useful to have keys act differently based on selection).
On Jan 11, 2005, at 5:33 AM, Sune Foldager wrote:
On 11. jan 2005, at 3:55, Andreas Bueler wrote:
Sorry, I was explaining it wrong :( I use the tab key to intend code (works fine).
Just to avoid future confusion, it's " indent " with d and t swapped, compared to how you put it :-).
-- Sune.
what a great list, I can even learn english here :))