diff options
author | nicm <nicm> | 2019-03-18 14:10:25 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-03-18 14:10:25 +0000 |
commit | 2628af573d98f7bdd4db02c7a80c860b867a45fb (patch) | |
tree | c24323e11d4cb609bc22a03327b40606ed45ac05 /tmux.h | |
parent | ce6be7afd4d10b542f9cce8634d6bdd81754f775 (diff) | |
download | rtmux-2628af573d98f7bdd4db02c7a80c860b867a45fb.tar.gz rtmux-2628af573d98f7bdd4db02c7a80c860b867a45fb.tar.bz2 rtmux-2628af573d98f7bdd4db02c7a80c860b867a45fb.zip |
Add format variables for the default formats for the various modes
(tree_mode_format and so on) and add a -a flag to display-message to
list variables with values.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -704,6 +704,7 @@ struct screen_write_ctx { struct window_mode_entry; struct window_mode { const char *name; + const char *default_format; struct screen *(*init)(struct window_mode_entry *, struct cmd_find_state *, struct args *); @@ -1587,6 +1588,8 @@ struct format_tree *format_create(struct client *, struct cmdq_item *, int, void format_free(struct format_tree *); void printflike(3, 4) format_add(struct format_tree *, const char *, const char *, ...); +void format_each(struct format_tree *, void (*)(const char *, + const char *, void *), void *); char *format_expand_time(struct format_tree *, const char *); char *format_expand(struct format_tree *, const char *); char *format_single(struct cmdq_item *, const char *, @@ -2156,6 +2159,7 @@ void screen_select_cell(struct screen *, struct grid_cell *, /* window.c */ extern struct windows windows; extern struct window_pane_tree all_window_panes; +extern const struct window_mode *all_window_modes[]; int window_cmp(struct window *, struct window *); RB_PROTOTYPE(windows, window, entry, window_cmp); int winlink_cmp(struct winlink *, struct winlink *); |