summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-06-13 09:05:54 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-06-13 09:05:54 +0000
commitcfd05a8ec98e88bdb035eabb30bd3bf3b061b87a (patch)
treee94284bbabdf7263531b3295b6d369070c732a5f /usr.bin/tmux/tmux.1
parente2785e9110e73349f6d1d4a06b98d0f57513931f (diff)
Add -b flags to insert a window before (like the existing -a for after)
to break-pane, move-window, new-window. GitHub issue 2261.
Diffstat (limited to 'usr.bin/tmux/tmux.1')
-rw-r--r--usr.bin/tmux/tmux.137
1 files changed, 22 insertions, 15 deletions
diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1
index ad122983251..fa54eefaeeb 100644
--- a/usr.bin/tmux/tmux.1
+++ b/usr.bin/tmux/tmux.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tmux.1,v 1.783 2020/06/12 07:52:38 nicm Exp $
+.\" $OpenBSD: tmux.1,v 1.784 2020/06/13 09:05:53 nicm Exp $
.\"
.\" Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
.\"
@@ -14,7 +14,7 @@
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: June 12 2020 $
+.Dd $Mdocdate: June 13 2020 $
.Dt TMUX 1
.Os
.Sh NAME
@@ -1792,7 +1792,7 @@ from which the layout was originally defined.
Commands related to windows and panes are as follows:
.Bl -tag -width Ds
.It Xo Ic break-pane
-.Op Fl adP
+.Op Fl abdP
.Op Fl F Ar format
.Op Fl n Ar window-name
.Op Fl s Ar src-pane
@@ -1804,9 +1804,11 @@ Break
off from its containing window to make it the only pane in
.Ar dst-window .
With
-.Fl a ,
-the window is moved to the next index up (following windows
-are moved if necessary).
+.Fl a
+or
+.Fl b ,
+the window is moved to the next index after or before (existing windows are
+moved if necessary).
If
.Fl d
is given, the new window does not become the current window.
@@ -2188,7 +2190,7 @@ If no
.Ar target-session
is specified, select the last window of the current session.
.It Xo Ic link-window
-.Op Fl adk
+.Op Fl abdk
.Op Fl s Ar src-window
.Op Fl t Ar dst-window
.Xc
@@ -2203,9 +2205,12 @@ is specified and no such window exists, the
.Ar src-window
is linked there.
With
-.Fl a ,
-the window is moved to the next index up (following windows
-are moved if necessary).
+.Fl a
+or
+.Fl b
+the window is moved to the next index after or before
+.Ar dst-window
+(existing windows are moved if necessary).
If
.Fl k
is given and
@@ -2272,7 +2277,7 @@ section.
Does the same as
.Ic join-pane .
.It Xo Ic move-window
-.Op Fl ardk
+.Op Fl abrdk
.Op Fl s Ar src-window
.Op Fl t Ar dst-window
.Xc
@@ -2290,7 +2295,7 @@ the
.Ic base-index
option.
.It Xo Ic new-window
-.Op Fl adkP
+.Op Fl abdkP
.Op Fl c Ar start-directory
.Op Fl e Ar environment
.Op Fl F Ar format
@@ -2301,10 +2306,12 @@ option.
.D1 (alias: Ic neww )
Create a new window.
With
-.Fl a ,
-the new window is inserted at the next index up from the specified
+.Fl a
+or
+.Fl b ,
+the new window is inserted at the next index after or before the specified
.Ar target-window ,
-moving windows up if necessary,
+moving windows up if necessary;
otherwise
.Ar target-window
is the new window location.