mirror of
https://github.com/tmux/tmux.git
synced 2025-01-06 07:48:48 +00:00
Add a session_marked format like window_marked.
This commit is contained in:
parent
4b5a16567a
commit
662728d6c7
5
format.c
5
format.c
@ -2529,6 +2529,11 @@ format_defaults_session(struct format_tree *ft, struct session *s)
|
||||
|
||||
format_add_cb(ft, "session_alerts", format_cb_session_alerts);
|
||||
format_add_cb(ft, "session_stack", format_cb_session_stack);
|
||||
|
||||
if (server_check_marked() && marked_pane.s == s)
|
||||
format_add(ft, "session_marked", "1");
|
||||
else
|
||||
format_add(ft, "session_marked", "0");
|
||||
}
|
||||
|
||||
/* Set default format keys for a client. */
|
||||
|
1
tmux.1
1
tmux.1
@ -4564,6 +4564,7 @@ The following variables are available, where appropriate:
|
||||
.It Li "session_id" Ta "" Ta "Unique session ID"
|
||||
.It Li "session_last_attached" Ta "" Ta "Time session last attached"
|
||||
.It Li "session_many_attached" Ta "" Ta "1 if multiple clients attached"
|
||||
.It Li "session_marked" Ta "" Ta "1 if this session contains the marked pane"
|
||||
.It Li "session_name" Ta "#S" Ta "Name of session"
|
||||
.It Li "session_path" Ta "" Ta "Working directory of session"
|
||||
.It Li "session_stack" Ta "" Ta "Window indexes in most recent order"
|
||||
|
Loading…
Reference in New Issue
Block a user