问题
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.
回答1:
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.
来源:https://stackoverflow.com/questions/417406/setting-shortcut-keys-in-textmate