wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
17.56k stars 785 forks source link

Ability to drag re-order tabs, panes #549

Open alexherbo2 opened 3 years ago

alexherbo2 commented 3 years ago

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.

carneeki commented 2 years ago

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

wez commented 2 years ago

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

bennypowers commented 2 years ago

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

wez commented 2 years ago

In the nightly there are a few new key assignments:

And from the CLI:

There's no mouse equivalent functionality as of yet.

dstromberg commented 1 year ago

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

tgross35 commented 9 months ago

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+[?

wez commented 9 months ago

@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)
ibash commented 2 months ago

I use kitty right now but this would be the reason I'd switch to wez. I used iterm2 before and dragging was natural. Tbh I still have to lookup the kitty shortcut to reorder panes each and every time I want to.

VVVHawk commented 1 week ago

+1, the way terminator handles it is perfect.