Showing posts with label terminal. Show all posts
Showing posts with label terminal. Show all posts

Saturday, December 28, 2024

Repurpose Ghostty Terminal shortcut for vim or neovim ( osx macos sonoma )

I want pointing my
cmd+h to C+w+h
cmd+l to C+w+l
First change Keyboard setting ( on OSX sonoma ) ,
settings -> keyboard -> keyboard shortcuts -> app shortcuts
and add
Hide Ghostty 
see setting below:
add config to ~/.config/ghostty/ghostty
macos-option-as-alt = true
keybind = cmd+l=text:\x17\x6C
keybind = cmd+h=text:\x17\x68
close and reopen ghostty or reload config.

as my comments on ghostty