Re: Unbinding keys from Xcode's default key mapping?
Re: Unbinding keys from Xcode's default key mapping?
- Subject: Re: Unbinding keys from Xcode's default key mapping?
- From: Tom Seddon <email@hidden>
- Date: Sun, 12 Dec 2010 02:57:33 +0000
On Sat, 11 Dec 2010 19:46:41 -0600, Ken Thomases <email@hidden>
wrote:
>Anyway, if you create your own key bindings in Xcode, they end up in a file called ~/Library/Application Support/Xcode/Key Bindings/<name of your choice>.pbxkeys. This file has a top-level dictionary with two sub-dictionaries. The "text" sub-dictionary is of the same kind as DefaultKeyBinding.dict and probably PBKeyBindings.dict. So, you can probably incorporate your custom bindings in there.
Thank you for the pointer, which was most helpful. And after a bit of
flapping around on my part:
Suppose you currently have some extra bindings in your
PBKeyBinding.dict, that you perhaps feel is locking you into the
immutable Xcode Default keyboard mapping, e.g.:
"^L"=("selectLine:","delete:");
You can add this binding into a custom keyboard mapping by opening the
Property List Editor, opening the relevant pbxkeys file, going to the
"text" dictionary, adding in a new row and giving it type array, then
adding each selector name in turn as a new string entry in the array.
Now you've got a custom key mapping with your custom extra bindings
in, you can use the GUI to edit it day to day. Doing this doesn't
appear to step on the entries you've added manually. (Though, I've not
given this a thorough workout yet.)
So this seems to be my problem solved.
Thanks,
--Tom
P.S. the (ab?)use of PBKeyBinding.dict is described briefly here:
http://stackoverflow.com/questions/2264427/does-pbkeybinding-dict-still-work-for-setting-xcode-key-bindings
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden