From dfec4f7eb1d81a103f50927139b930f012ebe103 Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Thu, 16 Jul 2020 11:19:29 -0500 Subject: [PATCH 1/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3987e6b..5bf35fd 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Kinto works for standard Windows, Apple and Chromebook keyboards. The following ## What's different? -Compared to most other remappers ***this is a complete system-wide remap of your base level modifier keys*** , this saves time. You're not going to die a death of thousand papercuts from trying to support every shortcut key under the sun. +Compared to most other remappers ***this is a complete system-wide remap of your base level modifier keys***, this saves time. You're not going to die a death of thousand papercuts from trying to support every shortcut key under the sun. It also retains some of the most commonly used system level shortcut keys, such as Cmd-C/V, Cmd-Tab, and Ctrl-Tab among others. You will keep seamless copy & paste between all apps, ability to switch Windows while still using the physical Cmd/Alt key position; switch tabs in your favorite terminals, code editors, or web browsers. Depending on your OS and/or Desktop Environment you may also be able to switch Virtual Desktop environments the same way as well and other basic system level shortcuts. From 53f320e0b96e268a424c006fc84384856d9c55c6 Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Thu, 16 Jul 2020 13:03:54 -0500 Subject: [PATCH 2/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5bf35fd..e7fbe09 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Kinto works for standard Windows, Apple and Chromebook keyboards. The following ## What's different? -Compared to most other remappers ***this is a complete system-wide remap of your base level modifier keys***, this saves time. You're not going to die a death of thousand papercuts from trying to support every shortcut key under the sun. +Compared to most other remappers ***this is a complete system-wide remap of your base level modifier keys***, this saves time. You're not going to die a death of a thousand papercuts from trying to support every shortcut key under the sun. It also retains some of the most commonly used system level shortcut keys, such as Cmd-C/V, Cmd-Tab, and Ctrl-Tab among others. You will keep seamless copy & paste between all apps, ability to switch Windows while still using the physical Cmd/Alt key position; switch tabs in your favorite terminals, code editors, or web browsers. Depending on your OS and/or Desktop Environment you may also be able to switch Virtual Desktop environments the same way as well and other basic system level shortcuts. From f922caff7875b71934c00ea9d0d257bb5e25a40c Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Tue, 21 Jul 2020 17:42:42 -0500 Subject: [PATCH 3/6] - Added Beginning and End of line for terminals on Windows 10 more generically --- windows/kinto.ahk | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/windows/kinto.ahk b/windows/kinto.ahk index b11d723..db38c49 100644 --- a/windows/kinto.ahk +++ b/windows/kinto.ahk @@ -374,6 +374,17 @@ $^+Right::Send +{End} #If #IfWinActive ahk_group terminals + + ; End of Line + #e:: + Send {End} + return + + ; Beginning of Line + #a:: + Send {Home} + return + ; Copy ^c:: SetKeyDelay -1 @@ -422,28 +433,6 @@ $^+Right::Send +{End} } return - ; End of Line - ^e:: - SetKeyDelay -1 - Send {Blind}{e DownTemp} - return - - ^e up:: - SetKeyDelay -1 - Send {Blind}{e Up} - return - - ; Beginning of Line - ^a:: - SetKeyDelay -1 - Send {Blind}{a DownTemp} - return - - ^a up:: - SetKeyDelay -1 - Send {Blind}{a Up} - return - ^l::Send clear{Enter} ; #l::return ; Clear Terminal and Scroll Buffer From e654929d1ebf01cf86f56934f4f8a6e08bf8ddb1 Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Wed, 22 Jul 2020 20:03:25 -0500 Subject: [PATCH 4/6] - Added show desktop, minimize windows and fixed syntax issues (Windows only) --- windows/kinto.ahk | 162 ++++++++++++++++++++++++---------------------- 1 file changed, 83 insertions(+), 79 deletions(-) diff --git a/windows/kinto.ahk b/windows/kinto.ahk index db38c49..d420efd 100644 --- a/windows/kinto.ahk +++ b/windows/kinto.ahk @@ -180,6 +180,12 @@ $LCtrl up::Send {Ctrl down}{LWin up}{Ctrl up} ; Close Apps ^q::Send !{F4} +; Minimize specific Window +^m::WinMinimize, A + +; Show Desktop +^F3::Send #d + ; Emoji Panel #^Space::Send {LWin down};{LWin up} @@ -210,92 +216,90 @@ $^+Right::Send +{End} #IfWinActive ahk_group intellij ; General - ^0::Send !{0} ;Open corresponding tool window - ^1::Send !{1} ;Open corresponding tool window - ^2::Send !{2} ;Open corresponding tool window - ^3::Send !{3} ;Open corresponding tool window - ^4::Send !{4} ;Open corresponding tool window - ^5::Send !{5} ;Open corresponding tool window - ^6::Send !{6} ;Open corresponding tool window - ^7::Send !{7} ;Open corresponding tool window - ^8::Send !{8} ;Open corresponding tool window - ^9::Send !{9} ;Open corresponding tool window - #`::Send ^` ;Quick switch current scheme - ^,::Send ^!s ;Open Settings dialog - ^;::Send ^!+s ;Open Project Structure dialog + ^0::Send !{0} ;Open corresponding tool window + ^1::Send !{1} ;Open corresponding tool window + ^2::Send !{2} ;Open corresponding tool window + ^3::Send !{3} ;Open corresponding tool window + ^4::Send !{4} ;Open corresponding tool window + ^5::Send !{5} ;Open corresponding tool window + ^6::Send !{6} ;Open corresponding tool window + ^7::Send !{7} ;Open corresponding tool window + ^8::Send !{8} ;Open corresponding tool window + ^9::Send !{9} ;Open corresponding tool window + #`::Send ^` ;Quick switch current scheme + ^,::Send ^!s ;Open Settings dialog + ^;::Send ^!+s ;Open Project Structure dialog ; Debugging - ^!r::Send F9 ;Resume program + ^!r::Send {F9} ;Resume program ; Search/Replace - ^g::Send F3 ;Find next - ^+F3::Send Shift+F3 ;Find previous - #g::Send !j ;Select next occurrence - ^#g::Send ^!+j ;Select all occurrences - #+g::Send !+j ;Unselect occurrence + ^g::Send {F3} ;Find next + ^+F3::Send +{F3} ;Find previous + #g::Send !j ;Select next occurrence + ^#g::Send ^!+j ;Select all occurrences + #+g::Send !+j ;Unselect occurrence ; Editing - #Space::Send ^Space ;Basic code completion - #+Space::Send ^+Space ;Smart code completion - #j::Send ^q ;Quick documentation lookup - ^n::Send !{Insert} ;Generate code... - #o::Send ^o ;Override methods - #i::Send ^i ;Implement methods - !Up::Send ^w ;Extend selection - !Down::Send ^+w ;Shrink selection - #+q::Send !q ;Context info - #!o::Send ^!o ;Optimize imports - #!i::Send ^!i ;Auto-indent line(s) - ^Backspace::Send ^y ;Delete line at caret - #+j::Send ^+j ;Smart line join - !Delete::Send ^Delete ;Delete to word end - !Backspace::Send ^Backspace ;Delete to word start - ^+::Send ^{NumpadAdd} ;Expand code block - ^-::Send ^{NumpadSub} ;Collapse code block - ^++::Send ^+{NumpadAdd} ;Expand all - ^+-::Send ^+{NumpadSub} ;Collapse all - ^w::Send ^F4 ;Close active editor tab + #Space::Send ^{Space} ;Basic code completion + #+Space::Send ^+{Space} ;Smart code completion + #j::Send ^q ;Quick documentation lookup + ^n::Send !{Insert} ;Generate code... + #o::Send ^o ;Override methods + #i::Send ^i ;Implement methods + !Up::Send ^w ;Extend selection + !Down::Send ^+w ;Shrink selection + #+q::Send !q ;Context info + #!o::Send ^!o ;Optimize imports + #!i::Send ^!i ;Auto-indent line(s) + ^Backspace::Send ^y ;Delete line at caret + #+j::Send ^+j ;Smart line join + !Delete::Send ^{Delete} ;Delete to word end + !Backspace::Send ^{Backspace} ;Delete to word start + ^+::Send ^{NumpadAdd} ;Expand code block + ^-::Send ^{NumpadSub} ;Collapse code block + ^++::Send ^+{NumpadAdd} ;Expand all + ^+-::Send ^+{NumpadSub} ;Collapse all + ^w::Send ^{F4} ;Close active editor tab ; Refactoring - ^Delete::Send !Delete ;Safe Delete - ^T::Send ^!+T ;Refactor this + ^Delete::Send !{Delete} ;Safe Delete + ^T::Send ^!+T ;Refactor this ; Navigation - ^o::Send ^n ;Go to class - ^+o::Send ^+n ;Go to file - ^!o::Send ^!+n ;Go to symbol - #Right::Send !Right ;Go to next editor tab - #Left::Send !Left ;Go to previous editor tab - #l::Send ^g ;Go to line - #e::Send ^e ;Recent files popup - !Space::Send ^+i ;Open quick definition lookup - ^Y::Send ^+i ;Open quick definition lookup - #+b::Send ^+b ;Go to type declaration - #Up::Send !Up ;Go to previous - #Down::Send !Down ;Go to next method - #h::Send ^h ;Type hierarchy - #!h::Send ^!h ;Call hierarchy - ^Down::Send ^Enter ;Edit source/View source - !Home::Send !Home ;Show navigation bar - F2::Send F11 ;Toggle bookmark - #F3::Send ^F11 ;Toggle bookmark with mnemonic - #0::Send ^{0} ;Go to numbered bookmark - #1::Send ^{1} ;Go to numbered bookmark - #2::Send ^{2} ;Go to numbered bookmark - #3::Send ^{3} ;Go to numbered bookmark - #4::Send ^{4} ;Go to numbered bookmark - #5::Send ^{5} ;Go to numbered bookmark - #6::Send ^{6} ;Go to numbered bookmark - #7::Send ^{7} ;Go to numbered bookmark - #8::Send ^{8} ;Go to numbered bookmark - #9::Send ^{9} ;Go to numbered bookmark - ^F3::Send +F11 ;Show bookmarks + ^o::Send ^n ;Go to class + ^+o::Send ^+n ;Go to file + ^!o::Send ^!+n ;Go to symbol + #Right::Send !{Right} ;Go to next editor tab + #Left::Send !{Left} ;Go to previous editor tab + #l::Send ^g ;Go to line + #e::Send ^e ;Recent files popup + !Space::Send ^+i ;Open quick definition lookup + ^Y::Send ^+i ;Open quick definition lookup + #+b::Send ^+b ;Go to type declaration + #Up::Send !{Up} ;Go to previous + #Down::Send !{Down} ;Go to next method + #h::Send ^h ;Type hierarchy + #!h::Send ^!h ;Call hierarchy + ^Down::Send ^{Enter} ;Edit source/View source + !Home::Send !{Home} ;Show navigation bar + F2::Send {F11} ;Toggle bookmark + #F3::Send ^{F11} ;Toggle bookmark with mnemonic + #0::Send ^{0} ;Go to numbered bookmark + #1::Send ^{1} ;Go to numbered bookmark + #2::Send ^{2} ;Go to numbered bookmark + #3::Send ^{3} ;Go to numbered bookmark + #4::Send ^{4} ;Go to numbered bookmark + #5::Send ^{5} ;Go to numbered bookmark + #6::Send ^{6} ;Go to numbered bookmark + #7::Send ^{7} ;Go to numbered bookmark + #8::Send ^{8} ;Go to numbered bookmark + #9::Send ^{9} ;Go to numbered bookmark + ^F3::Send +{F11} ;Show bookmarks ; Compile and Run - #!r::Send !+F10 ;Select configuration and run - #!d::Send !+F9 ;Select configuration and debug - #r::Send +F10 ;Run - #d::Send +F9 ;Debug - #+r::Send ^+F10 ;Run context configuration from editor - #+d::Send ^+F9 ;Debug context configuration from editor + #!r::Send !+{F10} ;Select configuration and run + #!d::Send !+{F9} ;Select configuration and debug + #r::Send +{F10} ;Run + #d::Send +{F9} ;Debug + #+r::Send ^+{F10} ;Run context configuration from editor + #+d::Send ^+{F9} ;Debug context configuration from editor ; VCS/Local History - #v::Send !` ;VCS quick popup - ; Sigints - interrupt - $#c::Send {Ctrl down}c{Ctrl up} + #v::Send !` ;VCS quick popup #If ; Close all browsers From 9df95e8b8d236c1f3d699b445bbbc50f85f88129 Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Wed, 22 Jul 2020 22:46:42 -0500 Subject: [PATCH 5/6] - Added 3 variations of hide combos for Windows 10 --- windows/kinto.ahk | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/windows/kinto.ahk b/windows/kinto.ahk index d420efd..302bde3 100644 --- a/windows/kinto.ahk +++ b/windows/kinto.ahk @@ -183,6 +183,37 @@ $LCtrl up::Send {Ctrl down}{LWin up}{Ctrl up} ; Minimize specific Window ^m::WinMinimize, A +; Minimize all but Active Window +!^m:: +WinMinimizeAll +WinActivate, A +return + +; hide all instances of active Program +^h:: +WinGetClass, class, A +WinGet, AllWindows, List +loop %AllWindows% { + WinGetClass, WinClass, % "ahk_id " AllWindows%A_Index% + if(InStr(WinClass,class)){ + WinMinimize, % "ahk_id " AllWindows%A_Index% + } +} +return + +; hide all but active program +!^h:: +WinGetClass, class, A +WinMinimizeAll +WinGet, AllWindows, List +loop %AllWindows% { + WinGetClass, WinClass, % "ahk_id " AllWindows%A_Index% + if(InStr(WinClass,class)){ + WinRestore, % "ahk_id " AllWindows%A_Index% + } +} +return + ; Show Desktop ^F3::Send #d @@ -340,7 +371,7 @@ $^+Right::Send +{End} ^!O::send {Insert} ; toggle_overwrite !c::Return ; cancel toggle_case_sensitive ^!c::send !{c} ; toggle_case_sensitive - ^h::Return ; cancel replace + ; ^h::Return ; cancel replace ^!f::send ^{h} ; replace ^+h::Return ; cancel replace_next ^!e::send ^+{h} ; replace_next From 8c677e8ef046c45f23a71fca80c9c912c0d40cf0 Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Wed, 22 Jul 2020 23:08:23 -0500 Subject: [PATCH 6/6] - Corrected Minimize all but current window --- windows/kinto.ahk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windows/kinto.ahk b/windows/kinto.ahk index 302bde3..bad7926 100644 --- a/windows/kinto.ahk +++ b/windows/kinto.ahk @@ -185,8 +185,9 @@ $LCtrl up::Send {Ctrl down}{LWin up}{Ctrl up} ; Minimize all but Active Window !^m:: +WinGet, winid ,, A WinMinimizeAll -WinActivate, A +WinActivate ahk_id %winid% return ; hide all instances of active Program