GTK: Default keybinds for `move_tab`
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>
I'm curious if there is a similar default on macOS. I can't check currently since I'm on a laptop keyboard.
I'm curious if there is a similar default on macOS.
Firefox: yes Chrome: yes VSCode: complicated - cmd+K then cmd+shift+direction arrow
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
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.
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?