ghostty icon indicating copy to clipboard operation
ghostty copied to clipboard

GTK: Default keybinds for `move_tab`

Open mitchellh opened this issue 11 months ago • 5 comments

Discussed in https://github.com/ghostty-org/ghostty/discussions/4968

Originally posted by whatisaphone January 11, 2025 On Linux, most apps let you shuffle tabs around with ctrl-shift-pgup and ctrl-shift-pgdn. This works in Firefox, VSCode, Gnome Terminal, and I can't think of any app I use where it doesn't. In the spirit of zero-config, I suggest adding those as default keybinds.

keybind = ctrl+shift+page_up=move_tab:-1
keybind = ctrl+shift+page_down=move_tab:1
```</div>

mitchellh avatar Jan 12 '25 20:01 mitchellh

I'm curious if there is a similar default on macOS. I can't check currently since I'm on a laptop keyboard.

mitchellh avatar Jan 12 '25 20:01 mitchellh

I'm curious if there is a similar default on macOS.

Firefox: yes Chrome: yes VSCode: complicated - cmd+K then cmd+shift+direction arrow

Image

slagiewka avatar Jan 13 '25 12:01 slagiewka

I don't think there is a strong default on macos. Safari seems to be cmd+shit+(left|right). I always use cmd+option+(left+right). Chrome is cmd+option+(left|right). The first thing I did in Ghostty was set my own:

keybind = cmd+option+right=next_tab
keybind = cmd+option+left=previous_tab

dmartzol avatar Jan 18 '25 03:01 dmartzol

Chrome is cmd+option+(left|right).

(on macOS) Chrome also uses ctrl-page_up/down (ctrl-fn-up/down). And if you add shift, it will move the current tab one to the left/right.

injust avatar Jan 18 '25 11:01 injust

Hi, I was thinking of re-picking thiss issue back up again, but from the PR #5009 closed, it looks like the default keybinding for jump_to_prompt needs to be changed to fit (ctrl+shift+page(up/down)) for moving tabs around. What could be the alternative keybinding for jump_to_prompt instead?

dmatos2012 avatar Nov 19 '25 08:11 dmatos2012