|
{ |
|
"global": { |
|
"ask_for_confirmation_before_quitting": true, |
|
"check_for_updates_on_startup": true, |
|
"show_in_menu_bar": true, |
|
"show_profile_name_in_menu_bar": false, |
|
"unsafe_ui": false |
|
}, |
|
"profiles": [ |
|
{ |
|
"complex_modifications": { |
|
"parameters": { |
|
"basic.simultaneous_threshold_milliseconds": 50, |
|
"basic.to_delayed_action_delay_milliseconds": 500, |
|
"basic.to_if_alone_timeout_milliseconds": 1000, |
|
"basic.to_if_held_down_threshold_milliseconds": 500, |
|
"mouse_motion_to_scroll.speed": 100 |
|
}, |
|
"rules": [ |
|
{ |
|
"description": "(Vim 1/11) caps_lock -> on, caps_lock, enter, esc, control+[ or any pointing_button -> off", |
|
"manipulators": [ |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_unless", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "caps_lock" |
|
}, |
|
"parameters": { |
|
"basic.to_if_alone_threshold_milliseconds": 0, |
|
"basic.to_if_held_down_threshold_milliseconds": 100 |
|
}, |
|
"to_after_key_up": [ |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
} |
|
], |
|
"to_if_alone": [ |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 1 |
|
} |
|
}, |
|
{ |
|
"halt": true, |
|
"shell_command": "osascript -e 'display notification \"Press [i] to leave\" with title \"-- NORMAL --\"'" |
|
} |
|
], |
|
"to_if_held_down": [ |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 1 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification \"Release [caps lock] to leave\" with title \"-- NORMAL --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "caps_lock" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "escape" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "return_or_enter" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
}, |
|
{ |
|
"key_code": "return_or_enter" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "open_bracket", |
|
"modifiers": { |
|
"mandatory": [ |
|
"control" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_if" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"any": "key_code" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"any": "pointing_button" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
} |
|
] |
|
}, |
|
{ |
|
"available_since": "12.6.9", |
|
"description": "(Vim 2/11) finger on trackpad + any key -> off", |
|
"manipulators": [ |
|
{ |
|
"conditions": [ |
|
{ |
|
"name": "multitouch_extension_finger_count_total", |
|
"type": "variable_unless", |
|
"value": 0 |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"any": "key_code" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
} |
|
] |
|
}, |
|
{ |
|
"description": "(Vim 3/11) visual mode + h,j,k,l,e,b,0,^,$,gg,G,{,} + d,y,c,x", |
|
"manipulators": [ |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_unless", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "v" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "visual_mode", |
|
"value": 1 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification \"Press [v] again to go back to Vim Mode\" with title \"-- VISUAL --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "v" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "visual_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 1 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification \"Press [i] to leave\" with title \"-- NORMAL --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "h" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_shift" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "j" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "down_arrow", |
|
"modifiers": [ |
|
"left_shift" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "k" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "up_arrow", |
|
"modifiers": [ |
|
"left_shift" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "l" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "right_arrow", |
|
"modifiers": [ |
|
"left_shift" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "e" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "right_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_alt" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "b" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_alt" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "0" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "6", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "4", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "right_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "g_pressed", |
|
"type": "variable_unless", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "g" |
|
}, |
|
"parameters": { |
|
"basic.to_delayed_action_delay_milliseconds": 500 |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "g_pressed", |
|
"value": 1 |
|
} |
|
} |
|
], |
|
"to_delayed_action": { |
|
"to_if_invoked": [ |
|
{ |
|
"set_variable": { |
|
"name": "g_pressed", |
|
"value": 0 |
|
} |
|
} |
|
] |
|
}, |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "g_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "g" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "up_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "g_pressed", |
|
"value": 0 |
|
} |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "g", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "down_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "open_bracket", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "a", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_control" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "close_bracket", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "e", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_control" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "d" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "visual_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 1 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification \"Press [i] to leave\" with title \"-- NORMAL --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "y" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "c", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "visual_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 1 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification \"Press [i] to leave\" with title \"-- NORMAL --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "c" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "visual_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "x" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "delete_or_backspace" |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "visual_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 1 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification \"Press [i] to leave\" with title \"-- NORMAL --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "left_shift", |
|
"modifiers": { |
|
"optional": [ |
|
"any" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "left_shift" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "right_shift", |
|
"modifiers": { |
|
"optional": [ |
|
"any" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "right_shift" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "visual_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"any": "key_code", |
|
"modifiers": { |
|
"optional": [ |
|
"any" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "vk_none" |
|
} |
|
], |
|
"type": "basic" |
|
} |
|
] |
|
}, |
|
{ |
|
"description": "(Vim 4/11) dd,de,db,d0,d^,d$,dgg,dG,d{,d}", |
|
"manipulators": [ |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "d_pressed", |
|
"type": "variable_unless", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "d" |
|
}, |
|
"parameters": { |
|
"basic.to_delayed_action_delay_milliseconds": 500 |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "d_pressed", |
|
"value": 1 |
|
} |
|
} |
|
], |
|
"to_delayed_action": { |
|
"to_if_invoked": [ |
|
{ |
|
"set_variable": { |
|
"name": "d_pressed", |
|
"value": 0 |
|
} |
|
} |
|
] |
|
}, |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "d_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "d" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "d_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"key_code": "right_arrow", |
|
"modifiers": [ |
|
"left_command", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "d_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "e" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "d_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "right_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_alt" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "d_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "b" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "d_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_alt" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "d_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "0" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "d_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "d_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "6", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "d_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "d_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "4", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "d_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "right_arrow", |
|
"modifiers": [ |
|
"left_command", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "d_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "dg_pressed", |
|
"type": "variable_unless", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "g" |
|
}, |
|
"parameters": { |
|
"basic.to_delayed_action_delay_milliseconds": 500 |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "d_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "dg_pressed", |
|
"value": 1 |
|
} |
|
} |
|
], |
|
"to_delayed_action": { |
|
"to_if_invoked": [ |
|
{ |
|
"set_variable": { |
|
"name": "dg_pressed", |
|
"value": 0 |
|
} |
|
} |
|
] |
|
}, |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "dg_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "g" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "dg_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "up_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "d_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "g", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "d_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "down_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "d_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "open_bracket", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "d_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "a", |
|
"modifiers": [ |
|
"left_control", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "d_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "close_bracket", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "d_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "k", |
|
"modifiers": [ |
|
"left_control" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
} |
|
] |
|
}, |
|
{ |
|
"description": "(Vim 5/11) yy,ye,yb,y0,y^,y$,ygg,yG,y{,y}", |
|
"manipulators": [ |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "y_pressed", |
|
"type": "variable_unless", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "y" |
|
}, |
|
"parameters": { |
|
"basic.to_delayed_action_delay_milliseconds": 500 |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "y_pressed", |
|
"value": 1 |
|
} |
|
} |
|
], |
|
"to_delayed_action": { |
|
"to_if_invoked": [ |
|
{ |
|
"set_variable": { |
|
"name": "y_pressed", |
|
"value": 0 |
|
} |
|
} |
|
] |
|
}, |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "y_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "y" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "y_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"key_code": "right_arrow", |
|
"modifiers": [ |
|
"left_command", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "c", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "y_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "e" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "y_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "right_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_alt" |
|
] |
|
}, |
|
{ |
|
"key_code": "c", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "y_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "b" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "y_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_alt" |
|
] |
|
}, |
|
{ |
|
"key_code": "c", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "y_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "0" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "y_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "c", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "y_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "6", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "y_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "c", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "y_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "4", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "y_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "right_arrow", |
|
"modifiers": [ |
|
"left_command", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "c", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "y_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "yg_pressed", |
|
"type": "variable_unless", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "g" |
|
}, |
|
"parameters": { |
|
"basic.to_delayed_action_delay_milliseconds": 500 |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "y_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "yg_pressed", |
|
"value": 1 |
|
} |
|
} |
|
], |
|
"to_delayed_action": { |
|
"to_if_invoked": [ |
|
{ |
|
"set_variable": { |
|
"name": "yg_pressed", |
|
"value": 0 |
|
} |
|
} |
|
] |
|
}, |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "yg_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "g" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "yg_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "up_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"key_code": "c", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "y_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "g", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "y_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "down_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"key_code": "c", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "y_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "open_bracket", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "y_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "a", |
|
"modifiers": [ |
|
"left_control", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "c", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "y_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "close_bracket", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "y_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "e", |
|
"modifiers": [ |
|
"left_control", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "c", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
} |
|
] |
|
}, |
|
{ |
|
"description": "(Vim 6/11) cc,ce,cb,c0,c^,c$,cgg,cG,c{,c}", |
|
"manipulators": [ |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "c_pressed", |
|
"type": "variable_unless", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "c" |
|
}, |
|
"parameters": { |
|
"basic.to_delayed_action_delay_milliseconds": 500 |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "c_pressed", |
|
"value": 1 |
|
} |
|
} |
|
], |
|
"to_delayed_action": { |
|
"to_if_invoked": [ |
|
{ |
|
"set_variable": { |
|
"name": "c_pressed", |
|
"value": 0 |
|
} |
|
} |
|
] |
|
}, |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "c_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "c" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "c_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"key_code": "right_arrow", |
|
"modifiers": [ |
|
"left_command", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "c_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "e" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "c_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "right_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_alt" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "c_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "b" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "c_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_alt" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "c_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "0" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "c_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "c_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "6", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "c_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "c_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "4", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "c_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "right_arrow", |
|
"modifiers": [ |
|
"left_command", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "c_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "cg_pressed", |
|
"type": "variable_unless", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "g" |
|
}, |
|
"parameters": { |
|
"basic.to_delayed_action_delay_milliseconds": 500 |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "c_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "cg_pressed", |
|
"value": 1 |
|
} |
|
} |
|
], |
|
"to_delayed_action": { |
|
"to_if_invoked": [ |
|
{ |
|
"set_variable": { |
|
"name": "cg_pressed", |
|
"value": 0 |
|
} |
|
} |
|
] |
|
}, |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "cg_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "g" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "cg_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "up_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "c_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "g", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "c_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "down_arrow", |
|
"modifiers": [ |
|
"left_shift", |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "c_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "open_bracket", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "c_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "a", |
|
"modifiers": [ |
|
"left_control", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "c_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "close_bracket", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "c_pressed", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"key_code": "e", |
|
"modifiers": [ |
|
"left_control", |
|
"left_shift" |
|
] |
|
}, |
|
{ |
|
"key_code": "x", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
} |
|
] |
|
}, |
|
{ |
|
"description": "(Vim 7/11) x,X,p,P,u,control+r", |
|
"manipulators": [ |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "x" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "delete_forward" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "x", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "delete_or_backspace" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "p" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "v", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "p", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "v", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "u" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "z", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "r", |
|
"modifiers": { |
|
"mandatory": [ |
|
"control" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "z", |
|
"modifiers": [ |
|
"left_command", |
|
"left_shift" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
} |
|
] |
|
}, |
|
{ |
|
"description": "(Vim 8/11) h,j,k,l (+ control/option/command/shift),e,b,0,^,$,gg,G,{,}", |
|
"manipulators": [ |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "h", |
|
"modifiers": { |
|
"optional": [ |
|
"control", |
|
"option", |
|
"command", |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "left_arrow" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "j", |
|
"modifiers": { |
|
"optional": [ |
|
"control", |
|
"option", |
|
"command", |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "down_arrow" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "k", |
|
"modifiers": { |
|
"optional": [ |
|
"control", |
|
"option", |
|
"command", |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "up_arrow" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "l", |
|
"modifiers": { |
|
"optional": [ |
|
"control", |
|
"option", |
|
"command", |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "right_arrow" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "e" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "right_arrow", |
|
"modifiers": [ |
|
"left_alt" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "b" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_alt" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "0" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "6", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "4", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "right_arrow", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "g_pressed", |
|
"type": "variable_unless", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "g" |
|
}, |
|
"parameters": { |
|
"basic.to_delayed_action_delay_milliseconds": 500 |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "g_pressed", |
|
"value": 1 |
|
} |
|
} |
|
], |
|
"to_delayed_action": { |
|
"to_if_invoked": [ |
|
{ |
|
"set_variable": { |
|
"name": "g_pressed", |
|
"value": 0 |
|
} |
|
} |
|
] |
|
}, |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
}, |
|
{ |
|
"name": "g_pressed", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "g" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "up_arrow", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "g_pressed", |
|
"value": 0 |
|
} |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "g", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "down_arrow", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "open_bracket", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "a", |
|
"modifiers": [ |
|
"left_control" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "close_bracket", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "e", |
|
"modifiers": [ |
|
"left_control" |
|
] |
|
} |
|
], |
|
"type": "basic" |
|
} |
|
] |
|
}, |
|
{ |
|
"description": "(Vim 9/11) i,I,a,A,o,O", |
|
"manipulators": [ |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "i" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "i", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "a" |
|
}, |
|
"to": [ |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "a", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "right_arrow", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "o" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "right_arrow", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"key_code": "return_or_enter" |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "o", |
|
"modifiers": { |
|
"mandatory": [ |
|
"shift" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "left_arrow", |
|
"modifiers": [ |
|
"left_command" |
|
] |
|
}, |
|
{ |
|
"key_code": "return_or_enter" |
|
}, |
|
{ |
|
"key_code": "up_arrow" |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
} |
|
] |
|
}, |
|
{ |
|
"description": "(Vim 10/11) s,m,spacebar -> Hammerspoon modals", |
|
"manipulators": [ |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "s" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "f20" |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "m" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "f19" |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "spacebar" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "f18" |
|
}, |
|
{ |
|
"set_variable": { |
|
"name": "vim_mode", |
|
"value": 0 |
|
} |
|
}, |
|
{ |
|
"shell_command": "osascript -e 'display notification with title \"-- INSERT --\"'" |
|
} |
|
], |
|
"type": "basic" |
|
} |
|
] |
|
}, |
|
{ |
|
"description": "(Vim 11/11) disable unused keys", |
|
"manipulators": [ |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "left_shift", |
|
"modifiers": { |
|
"optional": [ |
|
"any" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "left_shift" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "right_shift", |
|
"modifiers": { |
|
"optional": [ |
|
"any" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "right_shift" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "left_control", |
|
"modifiers": { |
|
"optional": [ |
|
"any" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "left_control" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "right_control", |
|
"modifiers": { |
|
"optional": [ |
|
"any" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "right_control" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "left_option", |
|
"modifiers": { |
|
"optional": [ |
|
"any" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "left_option" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "right_option", |
|
"modifiers": { |
|
"optional": [ |
|
"any" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "right_option" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "left_command", |
|
"modifiers": { |
|
"optional": [ |
|
"any" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "left_command" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"key_code": "right_command", |
|
"modifiers": { |
|
"optional": [ |
|
"any" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "right_command" |
|
} |
|
], |
|
"type": "basic" |
|
}, |
|
{ |
|
"conditions": [ |
|
{ |
|
"bundle_identifiers": [ |
|
"com.googlecode.iterm2", |
|
"com.github.atom", |
|
"com.jetbrains.pycharm", |
|
"com.visualstudio.code.oss", |
|
"md.obsidian", |
|
"io.imdone.app" |
|
], |
|
"type": "frontmost_application_unless" |
|
}, |
|
{ |
|
"name": "vim_mode", |
|
"type": "variable_if", |
|
"value": 1 |
|
} |
|
], |
|
"from": { |
|
"any": "key_code", |
|
"modifiers": { |
|
"optional": [ |
|
"any" |
|
] |
|
} |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "vk_none" |
|
} |
|
], |
|
"type": "basic" |
|
} |
|
] |
|
} |
|
] |
|
}, |
|
"devices": [ |
|
{ |
|
"disable_built_in_keyboard_if_exists": false, |
|
"fn_function_keys": [], |
|
"identifiers": { |
|
"is_keyboard": true, |
|
"is_pointing_device": false, |
|
"product_id": 638, |
|
"vendor_id": 1452 |
|
}, |
|
"ignore": false, |
|
"manipulate_caps_lock_led": true, |
|
"simple_modifications": [], |
|
"treat_as_built_in_keyboard": false |
|
}, |
|
{ |
|
"disable_built_in_keyboard_if_exists": false, |
|
"fn_function_keys": [], |
|
"identifiers": { |
|
"is_keyboard": false, |
|
"is_pointing_device": true, |
|
"product_id": 638, |
|
"vendor_id": 1452 |
|
}, |
|
"ignore": true, |
|
"manipulate_caps_lock_led": false, |
|
"simple_modifications": [], |
|
"treat_as_built_in_keyboard": false |
|
}, |
|
{ |
|
"disable_built_in_keyboard_if_exists": false, |
|
"fn_function_keys": [], |
|
"identifiers": { |
|
"is_keyboard": true, |
|
"is_pointing_device": false, |
|
"product_id": 34304, |
|
"vendor_id": 1452 |
|
}, |
|
"ignore": false, |
|
"manipulate_caps_lock_led": true, |
|
"simple_modifications": [], |
|
"treat_as_built_in_keyboard": false |
|
}, |
|
{ |
|
"disable_built_in_keyboard_if_exists": false, |
|
"fn_function_keys": [], |
|
"identifiers": { |
|
"is_keyboard": true, |
|
"is_pointing_device": false, |
|
"product_id": 671, |
|
"vendor_id": 76 |
|
}, |
|
"ignore": false, |
|
"manipulate_caps_lock_led": true, |
|
"simple_modifications": [], |
|
"treat_as_built_in_keyboard": false |
|
} |
|
], |
|
"fn_function_keys": [ |
|
{ |
|
"from": { |
|
"key_code": "f1" |
|
}, |
|
"to": [ |
|
{ |
|
"consumer_key_code": "display_brightness_decrement" |
|
} |
|
] |
|
}, |
|
{ |
|
"from": { |
|
"key_code": "f2" |
|
}, |
|
"to": [ |
|
{ |
|
"consumer_key_code": "display_brightness_increment" |
|
} |
|
] |
|
}, |
|
{ |
|
"from": { |
|
"key_code": "f3" |
|
}, |
|
"to": [ |
|
{ |
|
"apple_vendor_keyboard_key_code": "mission_control" |
|
} |
|
] |
|
}, |
|
{ |
|
"from": { |
|
"key_code": "f4" |
|
}, |
|
"to": [ |
|
{ |
|
"apple_vendor_keyboard_key_code": "spotlight" |
|
} |
|
] |
|
}, |
|
{ |
|
"from": { |
|
"key_code": "f5" |
|
}, |
|
"to": [ |
|
{ |
|
"consumer_key_code": "dictation" |
|
} |
|
] |
|
}, |
|
{ |
|
"from": { |
|
"key_code": "f6" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "f6" |
|
} |
|
] |
|
}, |
|
{ |
|
"from": { |
|
"key_code": "f7" |
|
}, |
|
"to": [ |
|
{ |
|
"consumer_key_code": "rewind" |
|
} |
|
] |
|
}, |
|
{ |
|
"from": { |
|
"key_code": "f8" |
|
}, |
|
"to": [ |
|
{ |
|
"consumer_key_code": "play_or_pause" |
|
} |
|
] |
|
}, |
|
{ |
|
"from": { |
|
"key_code": "f9" |
|
}, |
|
"to": [ |
|
{ |
|
"consumer_key_code": "fast_forward" |
|
} |
|
] |
|
}, |
|
{ |
|
"from": { |
|
"key_code": "f10" |
|
}, |
|
"to": [ |
|
{ |
|
"consumer_key_code": "mute" |
|
} |
|
] |
|
}, |
|
{ |
|
"from": { |
|
"key_code": "f11" |
|
}, |
|
"to": [ |
|
{ |
|
"consumer_key_code": "volume_decrement" |
|
} |
|
] |
|
}, |
|
{ |
|
"from": { |
|
"key_code": "f12" |
|
}, |
|
"to": [ |
|
{ |
|
"consumer_key_code": "volume_increment" |
|
} |
|
] |
|
} |
|
], |
|
"name": "Default profile", |
|
"parameters": { |
|
"delay_milliseconds_before_open_device": 1000 |
|
}, |
|
"selected": true, |
|
"simple_modifications": [ |
|
{ |
|
"from": { |
|
"apple_vendor_top_case_key_code": "keyboard_fn" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "escape" |
|
} |
|
] |
|
}, |
|
{ |
|
"from": { |
|
"key_code": "caps_lock" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "delete_or_backspace" |
|
} |
|
] |
|
}, |
|
{ |
|
"from": { |
|
"key_code": "delete_or_backspace" |
|
}, |
|
"to": [ |
|
{ |
|
"apple_vendor_keyboard_key_code": "mission_control" |
|
} |
|
] |
|
}, |
|
{ |
|
"from": { |
|
"key_code": "escape" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "caps_lock" |
|
} |
|
] |
|
}, |
|
{ |
|
"from": { |
|
"key_code": "right_command" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "left_control" |
|
} |
|
] |
|
}, |
|
{ |
|
"from": { |
|
"key_code": "left_option" |
|
}, |
|
"to": [ |
|
{ |
|
"key_code": "caps_lock" |
|
} |
|
] |
|
} |
|
], |
|
"virtual_hid_keyboard": { |
|
"country_code": 0, |
|
"indicate_sticky_modifier_keys_state": true, |
|
"mouse_key_xy_scale": 100 |
|
} |
|
} |
|
] |
|
} |