- Better VS Code wordise fix for xkeysnail

This commit is contained in:
Ben Reaves
2020-05-01 22:05:01 -05:00
parent 268a1bdbff
commit 31d7c736b0
2 changed files with 9 additions and 18 deletions

View File

@@ -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

View File

@@ -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",