From 31d7c736b0e326ebd2f15c5d312710def0932464 Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Fri, 1 May 2020 22:05:01 -0500 Subject: [PATCH] - Better VS Code wordise fix for xkeysnail --- xkeysnail-config/kinto.py | 9 +++++++++ xkeysnail-config/vscode_keybindings.json | 18 ------------------ 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/xkeysnail-config/kinto.py b/xkeysnail-config/kinto.py index 5e94bc0..d9cd87f 100644 --- a/xkeysnail-config/kinto.py +++ b/xkeysnail-config/kinto.py @@ -117,6 +117,15 @@ define_keymap(lambda wm_class: wm_class not in ("Code"),{ # Keybindings for VS Code define_keymap(re.compile("Code"),{ + # Wordwise remaining - for VS Code + K("M-Left"): K("C-M-Left"), # Left of Word + K("M-Right"): K("C-M-Right"), # Right of Word + # Shift select word has a bug that prevents selection + # use ./xkeysnail-config/vscode_keybindings.json + # K("M-Shift-Left"): K("C-Shift-Left"), # Select Left of Word + # K("M-Shift-Right"): K("C-Shift-Right"), # Select Right of Word + + # VS Code Shortcuts K("C-g"): pass_through_key, # cancel Go to Line... K("Super-g"): K("C-g"), # Go to Line... K("F3"): pass_through_key, # cancel Find next diff --git a/xkeysnail-config/vscode_keybindings.json b/xkeysnail-config/vscode_keybindings.json index 750f5ac..fd455ac 100644 --- a/xkeysnail-config/vscode_keybindings.json +++ b/xkeysnail-config/vscode_keybindings.json @@ -1,23 +1,5 @@ // Place your key bindings in this file to override the defaultsauto[] [ - { - "key": "alt+left", - "command": "-workbench.action.terminal.focusPreviousPane", - "when": "terminalFocus" - }, - { - "key": "alt+right", - "command": "-workbench.action.terminal.focusNextPane", - "when": "terminalFocus" - }, - { - "key": "alt+right", - "command": "cursorWordRight" - }, - { - "key": "alt+left", - "command": "cursorWordLeft" - }, { "key": "shift+alt+left", "command": "cursorWordStartLeftSelect",