I would find it useful to have a visual reminder that panes are
synchronized in my status line, so add a 'pane_synchronized'
format that can be used as a conditional.

Thanks,

diff --git a/format.c b/format.c
index 811068a..238aa4a 100644
--- a/format.c
+++ b/format.c
@@ -460,6 +460,8 @@ format_window_pane(struct format_tree *ft, struct 
window_pane *wp)
        format_add(ft, "pane_dead", "%d", wp->fd == -1);
 
        format_add(ft, "pane_in_mode", "%d", wp->screen != &wp->base);
+       format_add(ft, "pane_synchronized", "%d",
+           options_get_number(&wp->window->options, "synchronize-panes") != 0);
 
        if (wp->tty != NULL)
                format_add(ft, "pane_tty", "%s", wp->tty);
diff --git a/tmux.1 b/tmux.1
index d232c26..0a2037f 100644
--- a/tmux.1
+++ b/tmux.1
@@ -3064,6 +3064,7 @@ The following variables are available, where appropriate:
 .It Li "pane_height" Ta "" Ta "Height of pane"
 .It Li "pane_id" Ta "#D" Ta "Unique pane ID"
 .It Li "pane_in_mode" Ta "" Ta "If pane is in a mode"
+.It Li "pane_synchronized" Ta "" Ta "If pane is synchronized"
 .It Li "pane_index" Ta "#P" Ta "Index of pane"
 .It Li "pane_pid" Ta "" Ta "PID of first process in pane"
 .It Li "pane_start_command" Ta "" Ta "Command pane started with"

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to