cmd+h to C+w+h cmd+l to C+w+lFirst change Keyboard setting ( on OSX sonoma ) ,
settings -> keyboard -> keyboard shortcuts -> app shortcutsand add
Hide Ghosttysee setting below: add config to ~/.config/ghostty/ghostty
macos-option-as-alt = true keybind = cmd+l=text:\x17\x6C keybind = cmd+h=text:\x17\x68close and reopen ghostty or reload config.
as my comments on ghostty