From 2a320ed534dc2ec40368c117e1fac4e2ae8619a4 Mon Sep 17 00:00:00 2001 From: Matthew Berryman Date: Tue, 11 Mar 2025 12:39:10 +1030 Subject: [PATCH] Document key binding issue on Ghostty for Linux --- src/content/docs/configuration/key-binding.mdx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/content/docs/configuration/key-binding.mdx b/src/content/docs/configuration/key-binding.mdx index bbe5b74..9dbbc62 100644 --- a/src/content/docs/configuration/key-binding.mdx +++ b/src/content/docs/configuration/key-binding.mdx @@ -62,6 +62,21 @@ macOS does not have an Alt key, although terminal emulators can often ctrl_n_shortcuts = true ``` +Ghostty on Linux maps Alt-1 .. Alt-9 for switching between tabs by number. To disable this behavior either add the following to ~/.config/ghostty/config: +``` +keybind=alt+one=unbind +keybind=alt+two=unbind +keybind=alt+three=unbind +keybind=alt+four=unbind +keybind=alt+five=unbind +keybind=alt+six=unbind +keybind=alt+seven=unbind +keybind=alt+eight=unbind +keybind=alt+nine=unbind +``` +(this will disable tab switching by Alt-n) +or use the `ctrl_n_shortcuts` as outlined above. + ## zsh If you'd like to customize your bindings further, it's possible to do so with custom shell config: