I'm trying to rebind ^j to insertNewline. I've tried the following:
1: cp /Applications/TextMate.app/Contents/Resources/ KeyBindings.dict ~/Library/Application\ Support/TextMate/ 2: edit the local copy and change ^j to map to insertNewline:
diff /Applications/TextMate.app/Contents/Resources/KeyBindings.dict ~/ Library/Application\ Support/TextMate/KeyBindings.dict 63c63 < "^j" = "reformatTextAndJustify:"; ---
"^j" = "insertNewline:";
3: restart TextMate, but ^j is still bound to Reformat & Justify
I also tried removing /Applications/TextMate.app/.../ KeyBindings.dict, but that didn't help either. I'm using TextMate Version 1.5.7 (1436) on Mac OS X 10.5.5 (9F33)
Any ideas?
-- Peter McLain
On 30 Nov 2008, at 20:34, Peter McLain wrote:
[...] I also tried removing /Applications/TextMate.app/.../ KeyBindings.dict, but that didn't help either. I'm using TextMate Version 1.5.7 (1436) on Mac OS X 10.5.5 (9F33)
Any ideas?
You’ll need to rebind the menu key as well: http://manual.macromates.com/en/key_bindings.html#menu_ite ms
Prior to Leopard, menu keys without ⌘ would not be handled by the OS, which is why they had to be in the key bindings dictionary. Starting with Leopard, they only need to be in the menu (but the key bindings file is preserved for backwards compatibility, but makes it more tedious to adapt).