wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

Ability to drag re-order tabs, panes

Open alexherbo2 opened this issue 4 years ago • 9 comments

It could be nice to have similar features to Konsole for managing the terminal windows (tabs, panes) with the mouse.

The only other place where I have seen a good mouse support for tiles like that was in Sway, which extends to all the desktop.

alexherbo2 avatar Mar 16 '21 19:03 alexherbo2

Would be awesome to drag tabs (and maybe panes?) between windows as part of this - similar to how browsers behave.

carneeki avatar Dec 24 '21 13:12 carneeki

Related to https://github.com/wez/wezterm/issues/1253

wez avatar Jan 20 '22 23:01 wez

Same, except not-necessarily by mouse, for example emulating tmux' rotate-window and swap-pane commands

bennypowers avatar Feb 02 '22 16:02 bennypowers

In the nightly there are a few new key assignments:

And from the CLI:

  • https://wezfurlong.org/wezterm/cli/cli/move-pane-to-new-tab.html
  • https://wezfurlong.org/wezterm/cli/cli/split-pane.html - wezterm cli split-pane --move-pane-id ID can move a pane into a newly created split

There's no mouse equivalent functionality as of yet.

wez avatar Jun 16 '22 19:06 wez

I too would love to see the ability to drag tabs to rearrange them in wezterm.

dstromberg avatar Jul 25 '23 19:07 dstromberg

Would it be possible to to add default bindings for the reorder tab left/right options? Something with [/] would be great to keep it similar to the change tabs action. Maybe alt+[?

tgross35 avatar Jan 06 '24 11:01 tgross35

@tgross35 there are already default assignments. You are welcome to add whatever assignments you like via your config file.

$ wezterm -n show-keys | grep MoveTab
        SHIFT | CTRL         PageUp             ->   MoveTabRelative(-1)
        SHIFT | CTRL         PageDown           ->   MoveTabRelative(1)

wez avatar Jan 06 '24 13:01 wez