# ── Keybinds for ghostty ────────────────────────────────────────────────────── # Ports wezterm bugabinga/key_binds.lua using ghostty 1.3 key tables. # # Leader: ctrl+a (VoidSymbol in wezterm, ctrl+a here) # All modes use catch_all=ignore to prevent key leaks. # Wipe all defaults (equivalent to wezterm's disable_default_key_bindings) keybind = clear # ── Clipboard ───────────────────────────────────────────────────────────────── keybind = ctrl+shift+c=copy_to_clipboard keybind = ctrl+shift+v=paste_from_clipboard # ── Font mode ───────────────────────────────────────────────────────────────── # Port of wezterm font_mode: -=scale down, ==scale up, 0=reset keybind = ctrl+a>0=activate_key_table:font keybind = font/-=decrease_font_size:1 keybind = font/==increase_font_size:1 keybind = font/0=reset_font_size keybind = font/escape=deactivate_key_table keybind = font/catch_all=ignore # ── Pane mode ───────────────────────────────────────────────────────────────── # Port of wezterm pane_mode: hjkl navigate, vs split, a select, q close keybind = ctrl+a>w=activate_key_table:pane keybind = pane/h=goto_split:left keybind = pane/j=goto_split:down keybind = pane/k=goto_split:up keybind = pane/l=goto_split:right keybind = pane/v=new_split:right keybind = pane/s=new_split:down keybind = pane/==activate_key_table:resize keybind = pane/q=close_surface keybind = pane/escape=deactivate_key_table keybind = pane/catch_all=ignore # ── Resize sub-mode ────────────────────────────────────────────────────────── # Port of wezterm resize_pane_mode: hjkl resize by 10px keybind = resize/h=resize_split:left,10 keybind = resize/j=resize_split:down,10 keybind = resize/k=resize_split:up,10 keybind = resize/l=resize_split:right,10 keybind = resize/escape=deactivate_key_table keybind = resize/catch_all=ignore # ── Direct leader sequences ─────────────────────────────────────────────────── # Single-shot actions that don't need a mode keybind = ctrl+a>f=toggle_split_zoom keybind = ctrl+a>F5=reload_config keybind = ctrl+a>F11=toggle_fullscreen keybind = ctrl+a>t=new_tab keybind = ctrl+a>/=start_search keybind = ctrl+a>q=close_surface # ── Tab navigation (leader + number) ───────────────────────────────────────── keybind = ctrl+a>1=goto_tab:1 keybind = ctrl+a>2=goto_tab:2 keybind = ctrl+a>3=goto_tab:3 keybind = ctrl+a>4=goto_tab:4 keybind = ctrl+a>5=goto_tab:5 keybind = ctrl+a>6=goto_tab:6 keybind = ctrl+a>7=goto_tab:7 keybind = ctrl+a>8=goto_tab:8 # ── Scrolling ───────────────────────────────────────────────────────────────── keybind = page_up=scroll_page_up keybind = page_down=scroll_page_down keybind = shift+page_up=scroll_page_fractional:-0.42 keybind = shift+page_down=scroll_page_fractional:0.42 # ── Command palette (replaces wezterm launcher) ─────────────────────────────── keybind = ctrl+a>p=toggle_command_palette