macoscope / CodePilot

Code Pilot is an Xcode plugin which lets you woosh through your code and save a lot (and we mean a *lot*) of your time.
http://codepilot.cc
Apache License 2.0
1.33k stars 205 forks source link

Keyboard Shortcut Conflict #7

Closed mmorey closed 10 years ago

mmorey commented 10 years ago

Nice Work!

XVim also uses CMD + SHIFT + X. Is it possible to make this user selectable?

I tried to manually make the change but I must be missing something:

...
#define CP_MENU_ITEM_TITLE       PRODUCT_NAME
#define CP_DEFAULT_SHORTCUT      @"$@D" // for key binding system
#define CP_DEFAULT_MENU_SHORTCUT @"D"   // just for the menuitem
#define CP_KEY_BINDING_MENU_NAME @"File Menu"

#define DEFAULT_KEY_EQUIVALENT @"D"
...
mmorey commented 10 years ago

Disregard, looks like you can change the shortcut via the key bindings settings screen:

key_bindings

Unfortuantly it doesn't look like XVim is using the key bindings properly.

If you want to use XVim with Code Pilot (using the default CMD+Shift+X) you should remove item1.keyEquivalent = @"X"; from the XVim source before building the XVim plugin.