mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 17:39:09 +00:00
Add window_marked_flag, GitHub issue 1887.
This commit is contained in:
parent
0feae4d8ae
commit
a23ce1b45f
5
format.c
5
format.c
@ -2197,6 +2197,11 @@ format_defaults_winlink(struct format_tree *ft, struct winlink *wl)
|
|||||||
format_add(ft, "window_end_flag", "%d",
|
format_add(ft, "window_end_flag", "%d",
|
||||||
!!(wl == RB_MAX(winlinks, &s->windows)));
|
!!(wl == RB_MAX(winlinks, &s->windows)));
|
||||||
|
|
||||||
|
if (server_check_marked() && marked_pane.wl == wl)
|
||||||
|
format_add(ft, "window_marked_flag", "1");
|
||||||
|
else
|
||||||
|
format_add(ft, "window_marked_flag", "0");
|
||||||
|
|
||||||
format_add(ft, "window_bell_flag", "%d",
|
format_add(ft, "window_bell_flag", "%d",
|
||||||
!!(wl->flags & WINLINK_BELL));
|
!!(wl->flags & WINLINK_BELL));
|
||||||
format_add(ft, "window_activity_flag", "%d",
|
format_add(ft, "window_activity_flag", "%d",
|
||||||
|
1
tmux.1
1
tmux.1
@ -4305,6 +4305,7 @@ The following variables are available, where appropriate:
|
|||||||
.It Li "window_last_flag" Ta "" Ta "1 if window is the last used"
|
.It Li "window_last_flag" Ta "" Ta "1 if window is the last used"
|
||||||
.It Li "window_layout" Ta "" Ta "Window layout description, ignoring zoomed window panes"
|
.It Li "window_layout" Ta "" Ta "Window layout description, ignoring zoomed window panes"
|
||||||
.It Li "window_linked" Ta "" Ta "1 if window is linked across sessions"
|
.It Li "window_linked" Ta "" Ta "1 if window is linked across sessions"
|
||||||
|
.It Li "window_marked_flag" Ta "" Ta "1 if window contains the marked pane"
|
||||||
.It Li "window_name" Ta "#W" Ta "Name of window"
|
.It Li "window_name" Ta "#W" Ta "Name of window"
|
||||||
.It Li "window_offset_x" Ta "" Ta "X offset into window if larger than client"
|
.It Li "window_offset_x" Ta "" Ta "X offset into window if larger than client"
|
||||||
.It Li "window_offset_y" Ta "" Ta "Y offset into window if larger than client"
|
.It Li "window_offset_y" Ta "" Ta "Y offset into window if larger than client"
|
||||||
|
Loading…
Reference in New Issue
Block a user