Skip to content

Instantly share code, notes, and snippets.

@nalabjp
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save nalabjp/1d041f7eb0a1fd86304c to your computer and use it in GitHub Desktop.

Select an option

Save nalabjp/1d041f7eb0a1fd86304c to your computer and use it in GitHub Desktop.
Karabiner for Slack (~/Library/Application\ Support/Karabiner)
<?xml version="1.0"?>
<root>
<appdef>
<appname>SLACK</appname>
<equal>com.tinyspeck.slackmacgap</equal>
</appdef>
<item>
<name>For Slack CTRL+N=move next channel, CTRL+P=move previous channel, ALT+A=move unread channel</name>
<identifier>private.app_slack_move_channel_with_ctrln_ctrlp</identifier>
<only>SLACK</only>
<autogen>
__KeyToKey__
KeyCode::N, ModifierFlag::CONTROL_L,
KeyCode::CURSOR_DOWN, ModifierFlag::OPTION_L
</autogen>
<autogen>
__KeyToKey__
KeyCode::P, ModifierFlag::CONTROL_L,
KeyCode::CURSOR_UP, ModifierFlag::OPTION_L
</autogen>
<autogen>
__KeyToKey__
KeyCode::A, ModifierFlag::OPTION_L,
KeyCode::CURSOR_DOWN, ModifierFlag::OPTION_L, ModifierFlag::SHIFT_L
</autogen>
</item>
<item>
<name>For Slack Fn+Return=create snippet, CTRL+Return=post message, Return=new line</name>
<identifier>private.app_slack_swap_enter_with_command_r</identifier>
<only>SLACK</only>
<autogen>
__KeyToKey__
KeyCode::RETURN, ModifierFlag::FN,
KeyCode::RETURN, ModifierFlag::COMMAND_R
</autogen>
<autogen>
__KeyToKey__
KeyCode::RETURN, ModifierFlag::COMMAND_R,
KeyCode::RETURN
</autogen>
<autogen>
__KeyToKey__
KeyCode::RETURN,
KeyCode::RETURN, ModifierFlag::OPTION_L
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment