Skip to content

Instantly share code, notes, and snippets.

@dritoshi
Created August 26, 2014 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dritoshi/ab9c2bc36156cf090228 to your computer and use it in GitHub Desktop.
Save dritoshi/ab9c2bc36156cf090228 to your computer and use it in GitHub Desktop.
Karabiner private.xml for RStudio
<?xml version="1.0"?>
<root>
<appdef>
<appname>RSTUDIO</appname>
<equal>org.rstudio.RStudio</equal>
</appdef>
<item>
<name>RSTUDIO</name>
<list>
<item>
<name>Change Ctrl+P to Up-Arrow</name>
<appendix>(only in RStudio)</appendix>
<identifier>private.RStdio_control_p_up_arrow</identifier>
<only>RSTUDIO</only>
<autogen>--KeyToKey-- KeyCode::P, ModifierFlag::CONTROL_L, KeyCode::CURSOR_UP</autogen>
</item>
<item>
<name>Change Ctrl+N to Down-Arrow</name>
<appendix>(only in RStudio)</appendix>
<identifier>private.RStdio_control_p_down_arrow</identifier>
<only>RSTUDIO</only>
<autogen>--KeyToKey-- KeyCode::N, ModifierFlag::CONTROL_L, KeyCode::CURSOR_DOWN</autogen>
</item>
<item>
<name>Change Cmd+Up to Ctrl+R</name>
<appendix>(only in RStudio)</appendix>
<identifier>private.RStdio_cmd_up_control_r</identifier>
<only>RSTUDIO</only>
<autogen>--KeyToKey-- KeyCode::R, ModifierFlag::CONTROL_L, KeyCode::CURSOR_UP, ModifierFlag::COMMAND_L, </autogen>
</item>
</list>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment