← Back to context

Comment by GNOMES

1 day ago

I have been tempted to drop tmux locally for native Ghostty panes/tabs, but I prefer the single height tmux status bar with window list only (set -g status-left '' + set -g status-right '') vs the thicker window decorations using macos-titlebar-style = tabs.

I did come up with Ghostty bindings to replicate my tmux settings if it helps anyone (my tmux leader is ctrl + space):

    # clear default bindings + add paste back
    keybind=clear
    keybind=super+v=paste_from_clipboard

    # navigate panes
    keybind=ctrl+h=goto_split:left
    keybind=ctrl+j=goto_split:bottom
    keybind=ctrl+k=goto_split:top
    keybind=ctrl+l=goto_split:right
    keybind=ctrl+space>shift+apostrophe=new_split:down
    keybind=ctrl+space>shift+five=new_split:right
    keybind=ctrl+space>space=equalize_splits
    keybind=ctrl+space>z=toggle_split_zoom

    # navigate tabs
    keybind=ctrl+space>c=new_tab
    keybind=ctrl+space>one=goto_tab:1
    ...
    keybind=ctrl+space>zero=goto_tab:10

Nice, I came up with something similar when trying ghostty. Were you able to replicate/setup continuous key hold for resizing? The way I have it it tmux is that doing leader,Shift+hold h/i/k/j continually resizes a pane while I keep holding for example Shift+h. But I wasn’t able to replicate it in ghostty

  • Never realized you can do that. Can you share that tmux binding? Right now I use `bind -r Space next-layout` for resizing (spam repeatedly).