Hi everyone,
I use a Mac part-time, and switching between Mac and Windows key bindings is driving me nuts. I found the article "Key bindings for switchers" and happily followed along with the instructions. However, having set up my ~/Library/KeyBindings/DeaultKeyBinding.dict file exactly as in the article, the new bindings work fine in Mail and TextEdit but not in TextMate. I have no idea why that would happen - any ideas?
Here's the contents of my DefaultKeyBinding.dict (copied directly from the article) for reference:
{ /* home */ "\UF729" = "moveToBeginningOfLine:"; "$\UF729" = "moveToBeginningOfLineAndModifySelection:";
/* end */ "\UF72B" = "moveToEndOfLine:"; "$\UF72B" = "moveToEndOfLineAndModifySelection:";
/* page up/down */ "\UF72C" = "pageUp:"; "\UF72D" = "pageDown:"; }
Thanks in advance, --Brendan
Hello Brendan,
I use a Mac part-time, and switching between Mac and Windows key bindings is driving me nuts. I found the article "Key bindings for switchers" and happily followed along with the instructions. However, having set up my ~/Library/KeyBindings/ DeaultKeyBinding.dict file exactly as in the article, the new bindings work fine in Mail and TextEdit but not in TextMate. I have no idea why that would happen - any ideas?
I use TextMacro for my key-bindings. Works perfect for me!
http://www.mai.liu.se/~milan/TextMacro/ -- Sincerely,
Patrick Mast, xHarbour.com Inc. http://www.xHarbour.com
On Jan 25, 2006, at 12:49 PM, Patrick Mast wrote:
Hello Brendan,
I use a Mac part-time, and switching between Mac and Windows key bindings is driving me nuts. I found the article "Key bindings for switchers" and happily followed along with the instructions. However, having set up my ~/Library/KeyBindings/ DeaultKeyBinding.dict file exactly as in the article, the new bindings work fine in Mail and TextEdit but not in TextMate. I have no idea why that would happen - any ideas?
I use TextMacro for my key-bindings. Works perfect for me!
I've tried TextMacro and it gave me the same result - the bindings work fine in other Cocoa apps but not in TextMate.
http://www.mai.liu.se/~milan/TextMacro/
Sincerely,
Patrick Mast, xHarbour.com Inc. http://www.xHarbour.com
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
There definitely seems to be some sort of TextMate specific issue going on. I've tried using TextMacro and Key Binding Editor, as well as editing the file by hand. In every case, I end up with all my other cocoa apps accepting the new key bindings after a restart, but TextMate is stubbornly refusing to read the file, even after a system reboot.
On Jan 25, 2006, at 12:49 PM, Patrick Mast wrote:
Hello Brendan,
I use a Mac part-time, and switching between Mac and Windows key bindings is driving me nuts. I found the article "Key bindings for switchers" and happily followed along with the instructions. However, having set up my ~/Library/KeyBindings/ DeaultKeyBinding.dict file exactly as in the article, the new bindings work fine in Mail and TextEdit but not in TextMate. I have no idea why that would happen - any ideas?
I use TextMacro for my key-bindings. Works perfect for me!
http://www.mai.liu.se/~milan/TextMacro/
Sincerely,
Patrick Mast, xHarbour.com Inc. http://www.xHarbour.com
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 25, 2006, at 3:38 PM, Allan Odgaard wrote:
On 25/1/2006, at 16:16, Brendan Clougherty wrote:
[...] I have no idea why that would happen - any ideas?
I'm as lost as you -- I assume you did restart TextMate after changing the key bindings file?
Yes, I made sure to restart TextMate after changing the bindings file.
I just figured out how to make it work: I used KeyBindingsEditor (http://www.cocoabits.com/KeyBindingsEditor/) to modify the settings in ~/Library/Application Support/TextMate/KeyBindings.dict to match the ones in ~/Library/KeyBindings/DefaultKeyBinding.dict. Now I've got home, end, page up and page down working the way I expect in all the apps I use.
Now if I could just run TextMate in Windows, I'd never use anything else! :-)
Thanks for the help everyone. -Brendan
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 25/1/2006, at 21:47, Brendan Clougherty wrote:
I just figured out how to make it work: I used KeyBindingsEditor (http://www.cocoabits.com/KeyBindingsEditor/) to modify the settings in ~/Library/Application Support/TextMate/KeyBindings.dict to match the ones in ~/Library/KeyBindings/DefaultKeyBinding.dict
Could you try to copy (or symlink) the version in ~/Library/ KeyBindings/DefaultKeyBinding.dict to ~/Library/Application Support/ TextMate/KeyBindings.dict?
This to check if maybe there is something in the file that causes TM to not be able to parse it -- also check Console.app for potential errors output from TM at startup (when it reads the file).
On 25/01/2006, at 22:45, Allan Odgaard wrote:
On 25/1/2006, at 21:47, Brendan Clougherty wrote:
I just figured out how to make it work: I used KeyBindingsEditor (http://www.cocoabits.com/KeyBindingsEditor/) to modify the settings in ~/Library/Application Support/TextMate/ KeyBindings.dict to match the ones in ~/Library/KeyBindings/ DefaultKeyBinding.dict
Could you try to copy (or symlink) the version in ~/Library/ KeyBindings/DefaultKeyBinding.dict to ~/Library/Application Support/ TextMate/KeyBindings.dict?
Isn't it simply because the local copy (in app support/tm) takes precedense over the global one, and he previously only changed the global one? And if so, won't deleting the local one work? Then again, what do I know :-p.
-- Sune.
On 25/1/2006, at 23:52, Sune Foldager wrote:
Isn't it simply because the local copy (in app support/tm) takes precedense over the global one, and he previously only changed the global one? [...]
The one in “App Support/TextMate” *replace* the one in the application bundle (though few should ever need to create this one).
All other key binding files are merged. And have precedence so that the most local wins a tie.
On 26/01/2006, at 0:23, Allan Odgaard wrote:
On 25/1/2006, at 23:52, Sune Foldager wrote:
Isn't it simply because the local copy (in app support/tm) takes precedense over the global one, and he previously only changed the global one? [...]
The one in “App Support/TextMate” *replace* the one in the application bundle (though few should ever need to create this one). All other key binding files are merged. And have precedence so that the most local wins a tie.
Ah ok but as I read it, he only initially changed the system global one, while there was a TextMate local one present also :).
-- Sune.