- Updated wordwise xkeysnail for word select

This commit is contained in:
Ben Reaves
2020-04-27 02:03:23 -05:00
parent 15f9195da6
commit bd84ad9cfc
2 changed files with 14 additions and 2 deletions

View File

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

View File

@@ -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"
}
]