From 7174904434fcf961e86589ec5c4c2d0c1cbefa90 Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Tue, 16 Jun 2020 02:37:02 -0500 Subject: [PATCH] - Added source control remap to VS Code. Closes #191. --- windows/kinto.ahk | 13 +++++++------ xkeysnail-config/kinto.py | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/windows/kinto.ahk b/windows/kinto.ahk index 832c677..b41d65b 100644 --- a/windows/kinto.ahk +++ b/windows/kinto.ahk @@ -239,15 +239,16 @@ $^+Right::Send +{End} ; Cmd+Space Alternative ^Space::Send ^{Esc} -; ; Sublime Text Remaps for VS Code -#IfWinActive ahk_group vscode ; ST2CODE +; Sublime Text Remaps for VS Code +#IfWinActive ahk_group vscode ; Remap Ctrl+Shift to behave like macOS Sublimetext ; Will extend cursor to multiple lines - #+Up::send ^!{Up} ; ST2CODE - #+Down::send ^!{Down} ; ST2CODE +; #+Up::send ^!{Up} ; ST2CODE +; #+Down::send ^!{Down} ; ST2CODE ; Remap Ctrl+Cmd+G to select all matches - #^g::send ^+{L} ; ST2CODE -#If ; ST2CODE +; #^g::send ^+{L} ; ST2CODE + !+g::send ^+{G} ; View source control +#If #IfWinActive ahk_exe sublime_text.exe ; Remap Ctrl+Shift to behave like macOS Sublimetext diff --git a/xkeysnail-config/kinto.py b/xkeysnail-config/kinto.py index 3be7d6b..9858a71 100644 --- a/xkeysnail-config/kinto.py +++ b/xkeysnail-config/kinto.py @@ -118,6 +118,7 @@ define_keymap(lambda wm_class: wm_class.casefold() not in mscodes,{ 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 + K("M-Shift-g"): K("C-Shift-g"), # View source control # ** VS Code fix ** # Electron issue precludes normal keybinding fix. # Alt menu auto-focus/toggle gets in the way.