Skip to content

Instantly share code, notes, and snippets.

@oguimbal
Created August 18, 2020 07:57
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save oguimbal/6953f38c01a94b5e33eb36499950dbd2 to your computer and use it in GitHub Desktop.
Save oguimbal/6953f38c01a94b5e33eb36499950dbd2 to your computer and use it in GitHub Desktop.
!j::Send ^{Left}
!l::Send ^{Right}
!i::Send {Up}
!k::Send {Down}
!u::Send {Left}
!o::Send {Right}
!m::Send {End}
!ù::Send {Home}
#If (!WinActive("ahk_exe devenv.exe") && !WinActive("ahk_exe Code.exe"))
!+j::Send ^+{Left}
!+l::Send ^+{Right}
!+i::Send +{Up}
!+k::Send +{Down}
!+u::Send +{Left}
!+o::Send +{Right}
!+m::Send +{End}
!+ù::Send +{Home}
#If
; Code below will hide/show the Windows Terminal window when pressing F1. Remove it if needed.
F1::
DetectHiddenWindows, on
IfWinExist ahk_exe WindowsTerminal.exe
{
IfWinActive ahk_exe WindowsTerminal.exe
{
WinHide ahk_exe WindowsTerminal.exe
if(temptitle="")
WinActivate ahk_class Shell_TrayWnd
else
WinActivate %temptitle%
}
else
{
WinGetActiveTitle, temptitle
WinShow ahk_exe WindowsTerminal.exe
WinActivate ahk_exe WindowsTerminal.exe
}
}
else{
WinGetActiveTitle, temptitle
Run wt.exe --maximized
}
DetectHiddenWindows, off
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment