From 41d985ace3189c7375a8f1c2d1d2d028a20cf731 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 3 Jun 2009 15:58:40 +0000 Subject: [PATCH] Add missing documentation for the -a flag used to move to next/previous window with alert. --- cmd-next-window.c | 2 +- cmd-previous-window.c | 2 +- tmux.1 | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/cmd-next-window.c b/cmd-next-window.c index 71346764..d49fe4cb 100644 --- a/cmd-next-window.c +++ b/cmd-next-window.c @@ -29,7 +29,7 @@ int cmd_next_window_exec(struct cmd *, struct cmd_ctx *); const struct cmd_entry cmd_next_window_entry = { "next-window", "next", - CMD_TARGET_SESSION_USAGE, + "[-a] " CMD_TARGET_SESSION_USAGE, CMD_AFLAG, cmd_next_window_init, cmd_target_parse, diff --git a/cmd-previous-window.c b/cmd-previous-window.c index 7b880347..6163cec1 100644 --- a/cmd-previous-window.c +++ b/cmd-previous-window.c @@ -29,7 +29,7 @@ int cmd_previous_window_exec(struct cmd *, struct cmd_ctx *); const struct cmd_entry cmd_previous_window_entry = { "previous-window", "prev", - CMD_TARGET_SESSION_USAGE, + "[-a] " CMD_TARGET_SESSION_USAGE, CMD_AFLAG, cmd_previous_window_init, cmd_target_parse, diff --git a/tmux.1 b/tmux.1 index b8309605..d62acb91 100644 --- a/tmux.1 +++ b/tmux.1 @@ -799,10 +799,14 @@ start-up files. .D1 (alias: Ic nextl ) Move a window to the next layout and rearrange the panes to fit. .It Xo Ic next-window +.Op Fl a .Op Fl t Ar target-session .Xc .D1 (alias: Ic next ) Move to the next window in the session. +If +.Fl a +is used, move to the next window with a bell, activity or content alert. .It Xo Ic paste-buffer .Op Fl d .Op Fl b Ar buffer-index @@ -811,10 +815,14 @@ Move to the next window in the session. .D1 (alias: Ic pasteb ) Insert the contents of a paste buffer into the current window. .It Xo Ic previous-window +.Op Fl a .Op Fl t Ar target-session .Xc .D1 (alias: Ic prev ) Move to the previous window in the session. +With +.Fl a , +move to the previous window with a bell, activity or content alert. .It Xo Ic refresh-client .Op Fl t Ar target-client .Xc