Skip to content

Instantly share code, notes, and snippets.

@hekt
Last active December 6, 2022 00:45
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 hekt/156b09f7c6bde22f37103e7a16c3d949 to your computer and use it in GitHub Desktop.
Save hekt/156b09f7c6bde22f37103e7a16c3d949 to your computer and use it in GitHub Desktop.
^g => esc unless iTerm2
{
"title": "esc = ctrl + g unless iTerm2",
"rules": [
{
"description": "Control + g => Escape unless iTerm2",
"manipulators": [
{
"from": {
"key_code": "g",
"modifiers": {
"mandatory": [
"control"
],
"optional": [
"caps_lock",
"option"
]
}
},
"to": [
{
"key_code": "escape"
}
],
"type": "basic",
"conditions": [
{
"type": "frontmost_application_unless",
"bundle_identifiers": [
"^com\\.googlecode\\.iterm2$"
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment