Skip to content

Instantly share code, notes, and snippets.

@shuntaroy
Last active Aug 29, 2015
Embed
What would you like to do?
Private.xml for Karabiner to toggle mozc_input on Sublime Text (Mac)
<?xml version="1.0"?>
<root>
<appdef>
<appname>SUBLIMETEXT</appname>
<equal>com.sublimetext.3</equal>
<!-- If you use Sublime Text 2, you should change above '3' into '2' -->
</appdef>
<item>
<name>Command_LR to toggle_mozc on SublimeText3</name>
<identifier>test</identifier>
<only>SUBLIMETEXT</only>
<autogen>__KeyOverlaidModifier__ KeyCode::COMMAND_L, KeyCode::COMMAND_L, KeyCode::SLASH, ModifierFlag::CONTROL_L</autogen>
<autogen>__KeyOverlaidModifier__ KeyCode::COMMAND_R, KeyCode::COMMAND_R, KeyCode::SEMICOLON, ModifierFlag::CONTROL_L</autogen>
</item>
<!--
You need to set following keybindings to your Sublime Text.
Also you have to install Mozc to your Mac, and SublimeMozcInput to your Sublime Text.
[
{ "keys": ["ctrl+;"], "command": "activate_mozc" },
{ "keys": ["ctrl+/"], "command": "deactivate_mozc" }
]
If you want to change the keybindings, you can change above <autogen> in response to your preference.
-->
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment