Add flags to move-pane to move floating panes around (-U, -D, -L, -R

similar to resize-pane; -X, -Y similar to new-pane).
This commit is contained in:
nicm
2026-06-13 16:16:18 +00:00
parent ec481ac82a
commit aa2fd3a151
3 changed files with 115 additions and 10 deletions

33
tmux.1
View File

@@ -3304,13 +3304,34 @@ reverses the sort order.
.Tg movep
.It Xo Ic move\-pane
.Op Fl bdfhv
.Op Fl D Op Ar lines
.Op Fl L Op Ar columns
.Op Fl R Op Ar columns
.Op Fl U Op Ar lines
.Op Fl X Ar x\-position
.Op Fl Y Ar y\-position
.Op Fl l Ar size
.Op Fl s Ar src\-pane
.Op Fl t Ar dst\-pane
.Xc
.D1 Pq alias: Ic movep
Does the same as
.Ic join\-pane .
.Ic join\-pane ,
except if given
.Fl U ,
.Fl D ,
.Fl L
or
.Fl R
in which case move the target floating pane up, down, left or right by
.Ar lines
or
.Ar columns
(one if omitted);
.Fl X
and
.Fl Y
move to the an absolute position.
.Tg movew
.It Xo Ic move\-window
.Op Fl abrdk
@@ -3612,13 +3633,13 @@ if specified, to
.Tg resizep
.It Xo Ic resize\-pane
.Op Fl MTZ
.Op Fl t Ar target\-pane
.Op Fl U Ar lines
.Op Fl D Ar lines
.Op Fl L Ar columns
.Op Fl R Ar columns
.Op Fl U Ar lines
.Op Fl x Ar width
.Op Fl y Ar height
.Op Fl t Ar target\-pane
.Xc
.D1 Pq alias: Ic resizep
Resize a pane, up, down, left or right by a specified adjustment with
@@ -3626,10 +3647,8 @@ Resize a pane, up, down, left or right by a specified adjustment with
.Fl D ,
.Fl L
or
.Fl R ,
or
to an absolute size
with
.Fl R ;
or to an absolute size with
.Fl x
or
.Fl y .