概要
Ghosttyのキーバインドを一旦すべてunbindしてから、好きに設定したかった。
手順
以下を設定ファイルに記述する。
あとは公式リファレンスを見てお好きに設定してください。
~/.config/ghostty/config
keybind = clear
以下、古い記述
ghostty +list-keybinds | cut -d= -f-2 | xargs -I{} echo "{}=unbind" >> ~/.config/ghostty/config
解説
ghostty +list-keybinds
で現在のキーバインド設定をすべて出力し、設定を unbind
に置換している。
キーバインドの設定フォーマット
keybind = trigger=action
結果
以下のように、すべてのキーバインドが無効化される。
あとは公式リファレンスを見てお好きに設定してください。
~/.config/ghostty/config
keybind = super+page_up=unbind
keybind = super+ctrl+equal=unbind
keybind = super+physical:four=unbind
keybind = super+shift+down=unbind
keybind = super+shift+w=unbind
keybind = super+shift+left_bracket=unbind
keybind = super+alt+i=unbind
keybind = super+w=unbind
keybind = super+physical:eight=unbind
keybind = super+alt+right=unbind
keybind = shift+up=unbind
keybind = super+down=unbind
keybind = super+enter=unbind
keybind = super+t=unbind
keybind = super+c=unbind
keybind = super+shift+right_bracket=unbind
keybind = super+physical:one=unbind
keybind = shift+left=unbind
keybind = super+equal=unbind
keybind = shift+page_up=unbind
keybind = super+physical:three=unbind
keybind = super+physical:zero=unbind
keybind = super+right=unbind
keybind = super+d=unbind
keybind = super+ctrl+down=unbind
keybind = shift+end=unbind
keybind = super+plus=unbind
keybind = super+q=unbind
keybind = super+home=unbind
keybind = super+ctrl+left=unbind
keybind = alt+left=unbind
keybind = super+ctrl+up=unbind
keybind = super+left=unbind
keybind = super+shift+up=unbind
keybind = shift+right=unbind
keybind = super+comma=unbind
keybind = super+shift+comma=unbind
keybind = super+minus=unbind
keybind = shift+page_down=unbind
keybind = ctrl+tab=unbind
keybind = super+a=unbind
keybind = alt+right=unbind
keybind = super+shift+enter=unbind
keybind = super+alt+down=unbind
keybind = super+ctrl+f=unbind
keybind = super+ctrl+right=unbind
keybind = super+alt+shift+j=unbind
keybind = shift+down=unbind
keybind = ctrl+shift+tab=unbind
keybind = super+n=unbind
keybind = super+alt+left=unbind
keybind = super+page_down=unbind
keybind = super+alt+shift+w=unbind
keybind = super+alt+up=unbind
keybind = super+left_bracket=unbind
keybind = super+physical:nine=unbind
keybind = super+right_bracket=unbind
keybind = super+end=unbind
keybind = super+shift+j=unbind
keybind = super+shift+d=unbind
keybind = super+zero=unbind
keybind = super+physical:five=unbind
keybind = shift+home=unbind
keybind = super+physical:seven=unbind
keybind = super+up=unbind
keybind = super+k=unbind
keybind = super+physical:two=unbind
keybind = super+physical:six=unbind
keybind = super+v=unbind