Created
December 17, 2014 17:24
-
-
Save dracos/7a0e2c9e3f1af8b35867 to your computer and use it in GitHub Desktop.
Karabiner config for mapping the Mac curly quote shortcuts to what they SHOULD be
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Swap curly quote keyboard shortcuts</name> | |
<identifier>private.swap_curly_quotes</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::BRACKET_LEFT, ModifierFlag::OPTION_L | ModifierFlag::NONE, | |
KeyCode::BRACKET_RIGHT, ModifierFlag::OPTION_L | |
</autogen> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::BRACKET_LEFT, ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L, | |
KeyCode::BRACKET_LEFT, ModifierFlag::OPTION_L | |
</autogen> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::BRACKET_RIGHT, ModifierFlag::OPTION_L | ModifierFlag::NONE, | |
KeyCode::BRACKET_RIGHT, ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L | |
</autogen> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::BRACKET_RIGHT, ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L, | |
KeyCode::BRACKET_LEFT, ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L | |
</autogen> | |
</item> | |
</root> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By default, a Mac maps alt-[ to “, shift-alt-[ to ”, alt-] to ‘ and shift-alt-] to ’. Which is clearly madness. With the above config and https://pqrs.org/osx/karabiner/ it instead maps alt-[ to ‘, alt-] to ’, shift-alt-[ to “ and shift-alt-] to ”.