- Fixes on paste in terminals for windows

This commit is contained in:
Ben Reaves
2020-06-08 12:23:50 -05:00
parent 1ed7fa5f73
commit 8f22bc63ff
2 changed files with 8 additions and 31 deletions

View File

@@ -148,19 +148,14 @@ $^+Right::Send +{End}
; Paste ; Paste
^v:: ^v::
If not WinActive("ahk_group ConEmu") && not WinActive("ahk_exe cmd.exe"){ If WinActive("ahk_group posix"){
SetKeyDelay -1 Send {Blind}{Shift down}v{Shift up}
Send {Blind}{LShift down}{v DownTemp}
} }
else{ else{
Send {Blind}v Send {Blind}v
} }
return return
^v up::
SetKeyDelay -1
Send {Blind}{v Up}{LShift Up}
return
#If #If
#IfWinActive ahk_group posix #IfWinActive ahk_group posix

View File

@@ -137,16 +137,6 @@ $^+Right::Send +{End}
#If #If
#IfWinActive ahk_group terminals #IfWinActive ahk_group terminals
; Sigint Interrupt
; $#c::Send {Ctrl down}c{Ctrl up}
; $#c up::Send {c up}{Ctrl up}
; #c up::
; SetKeyDelay -1
; Send {c Up}{Ctrl up}
; return
; Copy ; Copy
^c:: ^c::
SetKeyDelay -1 SetKeyDelay -1
@@ -162,21 +152,13 @@ $^+Right::Send +{End}
$#c::Send {Ctrl down}c{Ctrl up} $#c::Send {Ctrl down}c{Ctrl up}
; Paste ; Paste
*v:: ^v::
if (GetKeyState("LCtrl")){ If WinActive("ahk_group posix"){
If not WinActive("ahk_group ConEmu") && not WinActive("ahk_exe cmd.exe"){ Send {Blind}{Shift down}v{Shift up}
SetKeyDelay -1 }
Send {Blind}{LShift down}{v DownTemp} else{
} Send {Blind}v
else{
Send {Blind}v
}
} }
return
^v up::
SetKeyDelay -1
Send {Blind}{v Up}{LShift Up}
return return
#If #If