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: Ken Thomases <email@hidden>
- Date: Sat, 11 Dec 2010 19:46:41 -0600
On Dec 11, 2010, at 4:55 PM, Tom Seddon wrote:
> I'd like to bind a macro to a key that the Xcode Default key mapping
> has bound to something. It appears that the key mapping takes priority
> over my macro shortcut key selection, though, so each time I press my
> key -- Ctrl+U, as it happens -- I get its default meaning -- Unfold
> All -- rather than my macro.
What, specifically, do you mean by "bind a macro to a key"? Are you using a third-party key macro tool of some sort? What tool? Without knowing what you're talking about, it's very hard to give advice.
I would think that such a tool would get your keystrokes before the app (Xcode, in this case) does, and would therefore take precedence. If it doesn't, that sounds like a problem with the tool.
> Is there anything I can do to get Ctrl+U freed up in the Xcode Default
> mapping, so I can reuse it? My only requirement is that I don't switch
> to a different keyboard mapping. It looks like this would be a
> straightforward job otherwise.
This seems contradictory to me. You don't want to use Xcode's defaults, but the solution must not require that you change away from using Xcode's defaults?
> (I've got some key bindings in my
> ~/Library/Keybindings/PBKeyBindings.dict file, which I've found to
> work much better than the equivalent in macros, since macros won't run
> at the keyboard repeat rate. And that's why I don't want to switch
> away from Xcode Default.)
>
> (Alternatively, if there's some way to get the PBKeyBindings.dict
> bindings working without having to use the default key mapping,
I'm not familiar with PBKeyBindings.dict, but I have a ~/Library/Keybindings/DefaultKeyBinding.dict and I assume the format and function is similar, except specific to Xcode (and ProjectBuilder before that).
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.
> or some way to invoke keyboard macros without having to wait for the menu
> bar flash to finish, I'd be all ears...)
Again, this business with having to wait for the menu bar to invoke keyboard macros seems specific to whatever tool you're using for that macro functionality.
Regards,
Ken
_______________________________________________
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