Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting Shortcut Keys in Textmate

Tags:

textmate

I am switching to textmate and there are a few things I want to change. I have tried Googling for the answer, but haven't found a simple explanation for how to rebind shortcuts globally.

First, tab switching doesn't work with Cmd+Shift+{ and Cmd+Shift+} This works in nearly every other application (FF, Terminal, etc.)

How do bind those keys to switch tabs?

Second, I would like Ctrl+j/k/l/; to move the cursor, it it possible to rebind that command to the arrow keys?

Thanks in advance.

like image 808
jcampbell1 Avatar asked Jan 06 '09 17:01

jcampbell1


1 Answers

Yes. For the arrow keys, you can record a macro (Bundles > Macros > Start Recording, [press an arrow], Stop Recording, Save Last Recording. It'll make a macro with the one command moveLeft: or similar. Set a key equivalent and you're done.

For the tab switching, go to System Preferences > Keyboard > Keyboard Shortcuts and add new shortcuts for menu items called "Next File Tab" and "Previous File Tab". Restart TextMate, and you're done.

like image 102
Sophie Alpert Avatar answered Sep 22 '22 21:09

Sophie Alpert