summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-01-01 01:33:07 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-01-01 01:33:07 +0000
commitb6950ed8aa4487f0c1a45cbf202a97d9fa22d485 (patch)
tree2af9b1768a0bf061340f130025806f6e83f231a3 /tmux.1
parent04b32fa734d491e7ae9b915dc309858310d96185 (diff)
Add a -P option to new-window and split-window to print the new window
or pane index in target form (useful to pass it into other commands).
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.18
1 files changed, 6 insertions, 2 deletions
diff --git a/tmux.1 b/tmux.1
index b9d56fe3..3c600520 100644
--- a/tmux.1
+++ b/tmux.1
@@ -1097,7 +1097,7 @@ except the window at
is moved to
.Ar dst-window .
.It Xo Ic new-window
-.Op Fl adk
+.Op Fl adkP
.Op Fl n Ar window-name
.Op Fl t Ar target-window
.Op Ar shell-command
@@ -1145,6 +1145,10 @@ New windows will automatically have
.Dq TERM=screen
added to their environment, but care must be taken not to reset this in shell
start-up files.
+.Pp
+The
+.Fl P
+option prints the location of the new window after it has been created.
.It Ic next-layout Op Fl t Ar target-window
.D1 (alias: Ic nextl )
Move a window to the next layout and rearrange the panes to fit.
@@ -1281,7 +1285,7 @@ target pane is used.
Select the window at
.Ar target-window .
.It Xo Ic split-window
-.Op Fl dhv
+.Op Fl dhvP
.Oo Fl l
.Ar size |
.Fl p Ar percentage Oc