diff options
author | nicm <nicm> | 2017-05-07 22:27:57 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-05-07 22:27:57 +0000 |
commit | 5fee4638e08b1642a3b8882c5cf8825dd76b3a81 (patch) | |
tree | 5f05c50a17e78893cfee68f343c63ce114fd0ddd /format.c | |
parent | d52f579fd5e7fd21d7dcf837780cbf98498b10ce (diff) | |
download | rtmux-5fee4638e08b1642a3b8882c5cf8825dd76b3a81.tar.gz rtmux-5fee4638e08b1642a3b8882c5cf8825dd76b3a81.tar.bz2 rtmux-5fee4638e08b1642a3b8882c5cf8825dd76b3a81.zip |
Add a format for the name of the pane's mode, lets it be used as a
conditional for key bindings.
Diffstat (limited to 'format.c')
-rw-r--r-- | format.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1371,6 +1371,9 @@ format_defaults_pane(struct format_tree *ft, struct window_pane *wp) } format_add(ft, "pane_in_mode", "%d", wp->screen != &wp->base); + if (wp->mode != NULL) + format_add(ft, "pane_mode", "%s", wp->mode->name); + format_add(ft, "pane_synchronized", "%d", !!options_get_number(wp->window->options, "synchronize-panes")); format_add(ft, "pane_search_string", "%s", |