From 74ef2b3a8f19af63464766bf861fc6f4c377266f Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Wed, 6 Jan 2021 22:08:17 -0600 Subject: [PATCH] - Added sigint, exit for terminals in sublime/vscode --- linux/kinto.py | 9 ++++++++- windows/kinto.ahk | 11 ++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/linux/kinto.py b/linux/kinto.py index 0c5526f..763d470 100644 --- a/linux/kinto.py +++ b/linux/kinto.py @@ -341,7 +341,10 @@ define_keymap(re.compile(codeStr, re.IGNORECASE),{ K("C-g"): K("f3"), # find_next K("Shift-f3"): pass_through_key, # cancel find_prev K("C-Shift-g"): K("Shift-f3"), # find_prev - K("Super-c"): K("LC-c"), # Sigints - interrupt + # K("Super-c"): K("LC-c"), # Default - Terminal - Sigint + # K("Super-x"): K("LC-x"), # Default - Terminal - Exit nano + # K("M-c"): K("LC-c"), # Chromebook/IBM - Terminal - Sigint + # K("M-x"): K("LC-x"), # Chromebook/IBM - Terminal - Exit nano # K("Super-C-g"): K("C-f2"), # Default - Sublime - find_all_under # K("C-M-g"): K("C-f2"), # Chromebook/IBM - Sublime - find_all_under # K("Super-Shift-up"): K("M-Shift-up"), # multi-cursor up - Sublime @@ -352,6 +355,10 @@ define_keymap(re.compile(codeStr, re.IGNORECASE),{ # Keybindings for Sublime Text define_keymap(re.compile("Sublime_text", re.IGNORECASE),{ + # K("Super-c"): K("LC-c"), # Default - Terminal - Sigint + # K("Super-x"): K("LC-x"), # Default - Terminal - Exit nano + # K("M-c"): K("LC-c"), # Chromebook/IBM - Terminal - Sigint + # K("M-x"): K("LC-x"), # Chromebook/IBM - Terminal - Exit nano K("Super-Space"): K("C-Space"), # Basic code completion K("C-Super-up"): K("M-o"), # Switch file K("Super-RC-f"): K("f11"), # toggle_full_screen diff --git a/windows/kinto.ahk b/windows/kinto.ahk index 85e13cc..2c7648f 100644 --- a/windows/kinto.ahk +++ b/windows/kinto.ahk @@ -270,6 +270,9 @@ GroupAdd, intellij, ahk_exe idea64.exe ; $LWin up::Send {LWin up}{LAlt up}{LCtrl up} ; MacModifiers ; $LAlt up::Send {LWin up}{CapsLock up}{LAlt up}{LCtrl up} ; CB/IBM + ; Remap Alt+Esc to Break/Pause + !Esc::SendInput, {Pause} + ; Go up or down a page $!Down::Send {PgDn}; $!Up::Send {PgUp}; @@ -482,12 +485,19 @@ GroupAdd, intellij, ahk_exe idea64.exe !+g::send ^+{G} ; View source control ; $#c::Send {Ctrl down}c{Ctrl up} ; Default - Sigints interrupt ; $!c::Send {Ctrl down}c{Ctrl up} ; CB/IBM + ; $#x::Send {Ctrl down}x{Ctrl up} ; Default - Sigints interrupt + ; $!x::Send {Ctrl down}x{Ctrl up} ; CB/IBM ; #Space::Send ^{Space} ; Default - Basic code completion ; !Space::Send ^{Space} ; CB/IBM - Basic code completion #If #IfWinActive ahk_exe sublime_text.exe + ; #x::Send ^{x} ; Default - Terminal - Ctrl-x + ; #c::Send ^{c} ; Default - Terminal - Ctrl-c sigint + ; !x::Send ^{x} ; CB/IBM + ; !c::Send ^{c} ; CB/IBM + ; #c::send ^{Pause} ; cancel_build ; #Space::Send ^{Space} ; Default - Basic code completion ; !Space::Send ^{Space} ; CB/IBM - Basic code completion #^Up::send !{O} ; Switch file @@ -528,7 +538,6 @@ GroupAdd, intellij, ahk_exe idea64.exe ^+Down::Return ; cancel swap_line_down #!Down::send ^+{Down} ; swap_line_down ^Pause::Return ; cancel cancel_build - #c::send ^{Pause} ; cancel_build F9::Return ; cancel sort_lines case_s false F5::send {F9} ; sort_lines case_s false #F9::Return ; cancel sort_lines case_s true