I recently switched to Mac from Windows.... I have specific keybindings that I want to use. Specifically, I want cmd-y to delete a line, cmd-d to duplicate a line, and shift tab to reverse indent selected lines.
In most apps I've been able to get cmd-y and cmd-d to work by adding this to the ~/Library/KeyBindings/DefaultKeyBinding.dict file
"@y" = ("selectLine:", "delete:"); "@d" = ("selectLine:", "copy:");
I don't know how to do the reverse indent.
These keystrokes work for most applications, but not for TextMate. I have also tried this file: ~/Library/Application Support/TextMate/DefaultKeyBinding.dict
Could someone point me in the right direction?
thanks phil
On 29 Apr 2008, at 06:26, phil swenson wrote:
[...] In most apps I've been able to get cmd-y and cmd-d to work by adding this to the ~/Library/KeyBindings/DefaultKeyBinding.dict file
"@y" = ("selectLine:", "delete:"); "@d" = ("selectLine:", "copy:");
I am surprised you can bind to the ⌘-key from this dictionary.
The key event handling in Leopard did however change, so maybe this is now possible for NSTextView, but might still not be for TextMate.
Try instead to record these actions as macros or do a simpler binding to test that the key actually works.