Sync OpenBSD patchset 759:

Add -n and -p flags to switch-client to move to the next and previous
session (yes, it doesn't match window/pane, but so what, nor does
switch-client).

Based on a diff long ago from "edsouza".
This commit is contained in:
Tiago Cunha
2010-09-10 13:36:17 +00:00
parent 28a0b6fd20
commit 89c07dedd9
5 changed files with 117 additions and 13 deletions

10
tmux.1
View File

@ -1,4 +1,4 @@
.\" $Id: tmux.1,v 1.264 2010-07-17 14:39:01 tcunha Exp $
.\" $Id: tmux.1,v 1.265 2010-09-10 13:36:17 tcunha Exp $
.\"
.\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
.\"
@ -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: July 15 2010 $
.Dd $Mdocdate: September 8 2010 $
.Dt TMUX 1
.Os
.Sh NAME
@ -660,6 +660,7 @@ Suspend a client by sending
.Dv SIGTSTP
(tty stop).
.It Xo Ic switch-client
.Op Fl np
.Op Fl c Ar target-client
.Op Fl t Ar target-session
.Xc
@ -668,6 +669,11 @@ Switch the current session for client
.Ar target-client
to
.Ar target-session .
If
.Fl n
or
.Fl p
is used, the client is moved to the next or previous session respectively.
.El
.Sh WINDOWS AND PANES
A