Skip to content

Instantly share code, notes, and snippets.

@kaizimmer
Created June 17, 2012 18:33
Show Gist options
  • Save kaizimmer/2945359 to your computer and use it in GitHub Desktop.
Save kaizimmer/2945359 to your computer and use it in GitHub Desktop.
KeyRemap4MacBook PC Developer shortcuts
<?xml version="1.0"?>
<root>
<appdef>
<appname>Intellij</appname>
<equal>com.jetbrains.intellij</equal>
</appdef>
<appdef>
<appname>SUBLIME</appname>
<equal>com.sublimetext.2</equal>
</appdef>
<item>
<name>Engimono Developer Shortcuts</name>
<item>
<name>KeyToKey</name>
<item>
<name>Use PC Style Control + UP/DOWN/LEFT/RIGHT</name>
<appendix>(Change Control+Arrow to Option+Arrow)</appendix>
<appendix>(except in Intellij, Virtual Machine, RDC</appendix>
<identifier>private.engimono_developer_pc_ctrl_arrows</identifier>
<!--<only>Intellij</only>-->
<not>Intellij, VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</not>
<autogen>--KeyToKey-- KeyCode::CURSOR_UP, ModifierFlag::CONTROL_L, KeyCode::CURSOR_UP, ModifierFlag::OPTION_L</autogen>
<autogen>--KeyToKey-- KeyCode::CURSOR_DOWN, ModifierFlag::CONTROL_L, KeyCode::CURSOR_DOWN, ModifierFlag::OPTION_L</autogen>
<autogen>--KeyToKey-- KeyCode::CURSOR_LEFT, ModifierFlag::CONTROL_L, KeyCode::CURSOR_LEFT, ModifierFlag::OPTION_L</autogen>
<autogen>--KeyToKey-- KeyCode::CURSOR_RIGHT, ModifierFlag::CONTROL_L, KeyCode::CURSOR_RIGHT, ModifierFlag::OPTION_L</autogen>
</item>
<item>
<name>Use PC Style Select All</name>
<appendix>(Change Command A to Control A)</appendix>
<appendix>(except in Intellij, Virtual Machine, RDC, Terminal, X11, Eclipse</appendix>
<identifier>private.engimono_developer_pc_ctrl_a</identifier>
<!--<only>Intellij</only>-->
<not>Intellij, VIRTUALMACHINE, REMOTEDESKTOPCONNECTION, TERMINAL, X11, ECLIPSE</not>
<autogen>--KeyToKey-- KeyCode::A, ModifierFlag::CONTROL_L, KeyCode::A, ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Use PC Style Undo</name>
<appendix>(Change Command Z to Control Z)</appendix>
<appendix>(except in Intellij, Virtual Machine, RDC, Terminal, X11, Eclipse</appendix>
<identifier>private.engimono_developer_pc_ctrl_z</identifier>
<!--<only>Intellij</only>-->
<not>Intellij, VIRTUALMACHINE, REMOTEDESKTOPCONNECTION, TERMINAL, X11, ECLIPSE</not>
<autogen>--KeyToKey-- KeyCode::Z, ModifierFlag::CONTROL_L, KeyCode::Z, ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Use PC Style Redo</name>
<appendix>(Change Command Y to Control Y)</appendix>
<appendix>(except in Intellij, Virtual Machine, RDC, Terminal, X11, Eclipse</appendix>
<identifier>private.engimono_developer_pc_ctrl_y</identifier>
<!--<only>Intellij</only>-->
<not>Intellij, VIRTUALMACHINE, REMOTEDESKTOPCONNECTION, TERMINAL, X11, ECLIPSE</not>
<autogen>--KeyToKey-- KeyCode::Y, ModifierFlag::CONTROL_L, KeyCode::Y, ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Use PC Style Home / End</name>
<appendix>(Change Home to Command + Left)</appendix>
<appendix>(Change End to Command + Right)</appendix>
<appendix>(except in Intellij, Virtual Machine, RDC, Terminal, X11, Eclipse</appendix>
<identifier>private.engimono_developer_pc_home_end</identifier>
<not>Intellij, VIRTUALMACHINE, REMOTEDESKTOPCONNECTION, TERMINAL, X11, ECLIPSE</not>
<autogen>--KeyToKey-- KeyCode::HOME, KeyCode::CURSOR_LEFT, ModifierFlag::COMMAND_L</autogen>
<autogen>--KeyToKey-- KeyCode::END, KeyCode::CURSOR_RIGHT, ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Use PC Style Create Folder</name>
<appendix>(Change Control + Shift + N to Command + Shift + N)</appendix>
<identifier>private.engimono_developer_pc_ctrl_shift_n</identifier>
<autogen>--KeyToKey-- KeyCode::N, ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L, KeyCode::N, ModifierFlag::SHIFT_L | ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Use PC Style Curly braces, square brackets, pipe, backslash mappings</name>
<identifier>private.engimono_developer_pc_keys</identifier>
<not>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</not>
<!-- backslash to 4 -->
<!--
<autogen>--KeyToKey-- KeyCode::KEY_4, ModifierFlag::OPTION_R, KeyCode::KEY_7, ModifierFlag::SHIFT_L | ModifierFlag::OPTION_L</autogen>
-->
<!-- backslash -->
<autogen>--KeyToKey-- KeyCode::MINUS, VK_OPTION, KeyCode::KEY_7, ModifierFlag::SHIFT_L | VK_OPTION</autogen>
<!-- curly braces -->
<autogen>--KeyToKey-- KeyCode::KEY_7, ModifierFlag::OPTION_R, KeyCode::KEY_8, ModifierFlag::OPTION_R</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_0, ModifierFlag::OPTION_R, KeyCode::KEY_9, ModifierFlag::OPTION_R</autogen>
<!-- square braces -->
<autogen>--KeyToKey-- KeyCode::KEY_8, ModifierFlag::OPTION_R, KeyCode::KEY_5, ModifierFlag::OPTION_R</autogen>
<autogen>--KeyToKey-- KeyCode::KEY_9, ModifierFlag::OPTION_R, KeyCode::KEY_6, ModifierFlag::OPTION_R</autogen>
<!-- pipe -->
<autogen>--KeyToKey-- KeyCode::GERMAN_LESS_THAN, ModifierFlag::OPTION_R, KeyCode::KEY_7, ModifierFlag::OPTION_R</autogen>
</item>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment