Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save carlosliu/52431eb7accc492f28f2 to your computer and use it in GitHub Desktop.
Save carlosliu/52431eb7accc492f28f2 to your computer and use it in GitHub Desktop.

Revisions

  1. carlosliu revised this gist Aug 20, 2015. 1 changed file with 5 additions and 13 deletions.
    18 changes: 5 additions & 13 deletions Return-to-ControlR-for-Karabiner
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,5 @@
    <?xml version="1.0"?>
    <root>
    <appdef>
    <appname>ITERM</appname>
    <equal>com.googlecode.iterm2</equal>
    </appdef>
    <appdef>
    <appname>MACVIM</appname>
    <equal>org.vim.MacVim</equal>
    </appdef>
    <item>
    <name>Change Return Key R</name>
    <item>
    @@ -22,10 +14,10 @@
    <autogen>__KeyOverlaidModifier__ KeyCode::RETURN, KeyCode::CONTROL_R, KeyCode::RETURN</autogen>
    </item>
    <item>
    <name>Return to Control_R (only in Emacs, MacVim, Terminal, X11)</name>
    <name>Return to Control_R (only in Emacs, Vi, Terminal, X11)</name>
    <appendix>(+ When you type Return only, send Return)</appendix>
    <identifier>remap.return2controlR_return_etx</identifier>
    <only>EMACS, MACVIM, TERMINAL, X11</only>
    <only>EMACS, VI, TERMINAL, X11</only>
    <autogen>__KeyOverlaidModifier__ KeyCode::RETURN, KeyCode::CONTROL_R, KeyCode::RETURN</autogen>
    </item>
    <item>
    @@ -35,10 +27,10 @@
    <autogen>__KeyOverlaidModifierWithRepeat__ KeyCode::RETURN, KeyCode::CONTROL_R, KeyCode::RETURN</autogen>
    </item>
    <item>
    <name>Return to Control_R (only in Emacs, MacVim, Terminal, X11)</name>
    <name>Return to Control_R (only in Emacs, Vi, Terminal, X11)</name>
    <appendix>(+ When you type Return only, send Return) + [KeyRepeat]</appendix>
    <identifier>remap.return2controlR_return_keyrepeat_etx</identifier>
    <only>EMACS, MACVIM, TERMINAL, X11</only>
    <only>EMACS, VI, TERMINAL, X11</only>
    <autogen>__KeyOverlaidModifierWithRepeat__ KeyCode::RETURN, KeyCode::CONTROL_R, KeyCode::RETURN</autogen>
    </item>
    <item>
    @@ -73,4 +65,4 @@
    <autogen>__KeyToKey__ KeyCode::RETURN, ModifierFlag::FN, KeyCode::PC_INSERT, ModifierFlag::SHIFT_R</autogen>
    </item>
    </item>
    </root>
    </root>
  2. carlosliu revised this gist Aug 20, 2015. 1 changed file with 13 additions and 5 deletions.
    18 changes: 13 additions & 5 deletions Return-to-ControlR-for-Karabiner
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,13 @@
    <?xml version="1.0"?>
    <root>
    <appdef>
    <appname>ITERM</appname>
    <equal>com.googlecode.iterm2</equal>
    </appdef>
    <appdef>
    <appname>MACVIM</appname>
    <equal>org.vim.MacVim</equal>
    </appdef>
    <item>
    <name>Change Return Key R</name>
    <item>
    @@ -14,10 +22,10 @@
    <autogen>__KeyOverlaidModifier__ KeyCode::RETURN, KeyCode::CONTROL_R, KeyCode::RETURN</autogen>
    </item>
    <item>
    <name>Return to Control_R (only in Emacs, Terminal, X11)</name>
    <name>Return to Control_R (only in Emacs, MacVim, Terminal, X11)</name>
    <appendix>(+ When you type Return only, send Return)</appendix>
    <identifier>remap.return2controlR_return_etx</identifier>
    <only>EMACS, TERMINAL, X11</only>
    <only>EMACS, MACVIM, TERMINAL, X11</only>
    <autogen>__KeyOverlaidModifier__ KeyCode::RETURN, KeyCode::CONTROL_R, KeyCode::RETURN</autogen>
    </item>
    <item>
    @@ -27,10 +35,10 @@
    <autogen>__KeyOverlaidModifierWithRepeat__ KeyCode::RETURN, KeyCode::CONTROL_R, KeyCode::RETURN</autogen>
    </item>
    <item>
    <name>Return to Control_R (only in Emacs, Terminal, X11)</name>
    <name>Return to Control_R (only in Emacs, MacVim, Terminal, X11)</name>
    <appendix>(+ When you type Return only, send Return) + [KeyRepeat]</appendix>
    <identifier>remap.return2controlR_return_keyrepeat_etx</identifier>
    <only>EMACS, TERMINAL, X11</only>
    <only>EMACS, MACVIM, TERMINAL, X11</only>
    <autogen>__KeyOverlaidModifierWithRepeat__ KeyCode::RETURN, KeyCode::CONTROL_R, KeyCode::RETURN</autogen>
    </item>
    <item>
    @@ -65,4 +73,4 @@
    <autogen>__KeyToKey__ KeyCode::RETURN, ModifierFlag::FN, KeyCode::PC_INSERT, ModifierFlag::SHIFT_R</autogen>
    </item>
    </item>
    </root>
    </root>
  3. carlosliu revised this gist Aug 18, 2015. No changes.
  4. carlosliu revised this gist Aug 18, 2015. 1 changed file with 14 additions and 0 deletions.
    14 changes: 14 additions & 0 deletions Return-to-ControlR-for-Karabiner
    Original file line number Diff line number Diff line change
    @@ -13,12 +13,26 @@
    <identifier>remap.return2controlR_return</identifier>
    <autogen>__KeyOverlaidModifier__ KeyCode::RETURN, KeyCode::CONTROL_R, KeyCode::RETURN</autogen>
    </item>
    <item>
    <name>Return to Control_R (only in Emacs, Terminal, X11)</name>
    <appendix>(+ When you type Return only, send Return)</appendix>
    <identifier>remap.return2controlR_return_etx</identifier>
    <only>EMACS, TERMINAL, X11</only>
    <autogen>__KeyOverlaidModifier__ KeyCode::RETURN, KeyCode::CONTROL_R, KeyCode::RETURN</autogen>
    </item>
    <item>
    <name>Return to Control_R</name>
    <appendix>(+ When you type Return only, send Return) + [KeyRepeat]</appendix>
    <identifier>remap.return2controlR_return_keyrepeat</identifier>
    <autogen>__KeyOverlaidModifierWithRepeat__ KeyCode::RETURN, KeyCode::CONTROL_R, KeyCode::RETURN</autogen>
    </item>
    <item>
    <name>Return to Control_R (only in Emacs, Terminal, X11)</name>
    <appendix>(+ When you type Return only, send Return) + [KeyRepeat]</appendix>
    <identifier>remap.return2controlR_return_keyrepeat_etx</identifier>
    <only>EMACS, TERMINAL, X11</only>
    <autogen>__KeyOverlaidModifierWithRepeat__ KeyCode::RETURN, KeyCode::CONTROL_R, KeyCode::RETURN</autogen>
    </item>
    <item>
    <name>Return to Option_R</name>
    <identifier>remap.return2optionR</identifier>
  5. @ShingoFukuyama ShingoFukuyama renamed this gist Sep 12, 2014. 1 changed file with 0 additions and 0 deletions.
  6. @ShingoFukuyama ShingoFukuyama created this gist Feb 21, 2014.
    54 changes: 54 additions & 0 deletions Return-to-ControlR-for-KeyRemap4MacBook
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,54 @@
    <?xml version="1.0"?>
    <root>
    <item>
    <name>Change Return Key R</name>
    <item>
    <name>Return to Command_R</name>
    <identifier>remap.return2commandR</identifier>
    <autogen>__KeyToKey__ KeyCode::RETURN, KeyCode::COMMAND_R</autogen>
    </item>
    <item>
    <name>Return to Control_R</name>
    <appendix>(+ When you type Return only, send Return)</appendix>
    <identifier>remap.return2controlR_return</identifier>
    <autogen>__KeyOverlaidModifier__ KeyCode::RETURN, KeyCode::CONTROL_R, KeyCode::RETURN</autogen>
    </item>
    <item>
    <name>Return to Control_R</name>
    <appendix>(+ When you type Return only, send Return) + [KeyRepeat]</appendix>
    <identifier>remap.return2controlR_return_keyrepeat</identifier>
    <autogen>__KeyOverlaidModifierWithRepeat__ KeyCode::RETURN, KeyCode::CONTROL_R, KeyCode::RETURN</autogen>
    </item>
    <item>
    <name>Return to Option_R</name>
    <identifier>remap.return2optionR</identifier>
    <autogen>__KeyToKey__ KeyCode::RETURN, KeyCode::OPTION_R</autogen>
    </item>
    <item>
    <name>Option_R to Return</name>
    <identifier>remap.optionRreturn2</identifier>
    <autogen>__KeyToKey__ KeyCode::OPTION_R, KeyCode::RETURN</autogen>
    </item>
    <item>
    <name>Return to Option_R</name>
    <appendix>(+ When you type Return only, send Escape)</appendix>
    <identifier>remap.return2optionR_escape</identifier>
    <autogen>__KeyOverlaidModifier__ KeyCode::RETURN, KeyCode::OPTION_R, KeyCode::ESCAPE</autogen>
    </item>
    <item>
    <name>Fn+Return to Option_R</name>
    <identifier>remap.fnReturn2optionR</identifier>
    <autogen>__KeyToKey__ KeyCode::RETURN, ModifierFlag::FN, KeyCode::OPTION_R</autogen>
    </item>
    <item>
    <name>Return to Control_R+F4 (= Move focus to the active (or next) window)</name>
    <identifier>remap.return2controlRf4</identifier>
    <autogen>__KeyToKey__ KeyCode::RETURN, KeyCode::F4, ModifierFlag::CONTROL_R</autogen>
    </item>
    <item>
    <name>Fn+Return to Shift_R+Insert</name>
    <identifier>remap.fnReturn2shiftRinsert</identifier>
    <autogen>__KeyToKey__ KeyCode::RETURN, ModifierFlag::FN, KeyCode::PC_INSERT, ModifierFlag::SHIFT_R</autogen>
    </item>
    </item>
    </root>