From 2b3e259009fec686f8aa64372e0253f5519c9260 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 4 Apr 2024 22:11:21 +0100 Subject: [PATCH] Add support for WezTerm --- macOS.ahk | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/macOS.ahk b/macOS.ahk index 5cef80c..0c4dc1c 100644 --- a/macOS.ahk +++ b/macOS.ahk @@ -24,14 +24,14 @@ send ^x return !c:: ; copy -if WinActive("ahk_exe WindowsTerminal.exe") +if WinActive("ahk_exe WindowsTerminal.exe") || WinActive("ahk_exe wezterm-gui.exe") send ^+c else send ^c return !v:: ; paste -if WinActive("ahk_exe WindowsTerminal.exe") +if WinActive("ahk_exe WindowsTerminal.exe") || WinActive("ahk_exe wezterm-gui.exe") send ^+v else send ^v @@ -145,6 +145,8 @@ return $!w:: ; close tab if WinActive("ahk_group Browser") send ^w +else if WinActive("ahk_exe wezterm-gui.exe") + send ^+w else send !w return @@ -163,28 +165,28 @@ else return $!+[:: ; go one tab left -if WinActive("ahk_group Browser") +if WinActive("ahk_group Browser") || WinActive("ahk_exe wezterm-gui.exe") send ^{PgUp} else send !+[ return $!+]:: ; go one tab right -if WinActive("ahk_group Browser") +if WinActive("ahk_group Browser") || WinActive("ahk_exe wezterm-gui.exe") send ^{PgDn} else send !+] return $^!+[:: ; move one tab left -if WinActive("ahk_group Browser") +if WinActive("ahk_group Browser") || WinActive("ahk_exe wezterm-gui.exe") send ^+{PgUp} else send ^!+[ return $^!+]:: ; move one tab right -if WinActive("ahk_group Browser") +if WinActive("ahk_group Browser") || WinActive("ahk_exe wezterm-gui.exe") send ^+{PgDn} else send ^!+]