From bd84ad9cfcfd656aa58e03e8d1865a7e16ac209b Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Mon, 27 Apr 2020 02:03:23 -0500 Subject: [PATCH] - Updated wordwise xkeysnail for word select --- xkeysnail-config/kinto.py | 6 ++++-- xkeysnail-config/vscode_keybindings.json | 10 ++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/xkeysnail-config/kinto.py b/xkeysnail-config/kinto.py index d5780dd..2ab7fcb 100644 --- a/xkeysnail-config/kinto.py +++ b/xkeysnail-config/kinto.py @@ -83,8 +83,10 @@ define_keymap(None,{ define_keymap(lambda wm_class: wm_class not in ("Code"),{ # Wordwise remaining - for Everything but VS Code - K("M-Left"): K("C-Left"), # Left of Word - K("M-Right"): K("C-Right"), # Right of Word + K("M-Left"): K("C-Left"), # Left of Word + K("M-Shift-Left"): K("C-Shift-Left"), # Select Left of Word + K("M-Right"): K("C-Right"), # Right of Word + K("M-Shift-Right"): K("C-Shift-Right"), # Select Right of Word # ** VS Code fix ** # Electron issue precludes normal keybinding fix. # Alt menu auto-focus/toggle gets in the way. diff --git a/xkeysnail-config/vscode_keybindings.json b/xkeysnail-config/vscode_keybindings.json index 30d4657..750f5ac 100644 --- a/xkeysnail-config/vscode_keybindings.json +++ b/xkeysnail-config/vscode_keybindings.json @@ -17,5 +17,15 @@ { "key": "alt+left", "command": "cursorWordLeft" + }, + { + "key": "shift+alt+left", + "command": "cursorWordStartLeftSelect", + "when": "textInputFocus" + }, + { + "key": "shift+alt+right", + "command": "cursorWordEndRightSelect", + "when": "textInputFocus" } ] \ No newline at end of file