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:
Nicholas Marriott
2010-09-08 22:02:28 +00:00
parent bbf743769b
commit a22a6deda5
5 changed files with 111 additions and 7 deletions

2
tmux.h
View File

@ -1965,6 +1965,8 @@ struct session *session_create(const char *, const char *, const char *,
char **);
void session_destroy(struct session *);
int session_index(struct session *, u_int *);
struct session *session_next_session(struct session *);
struct session *session_previous_session(struct session *);
struct winlink *session_new(struct session *,
const char *, const char *, const char *, int, char **);
struct winlink *session_attach(