diff options
author | nicm <nicm> | 2019-08-16 11:49:12 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-08-16 11:49:12 +0000 |
commit | 37583f0a69d22668bdd47e0b30b61d8dac74bdf6 (patch) | |
tree | 6f2230c68121094ff70e15407120b0b55ae92f80 /tmux.h | |
parent | 5644d37876faf69ecf9f34cbd52e6cdfab83cf79 (diff) | |
download | rtmux-37583f0a69d22668bdd47e0b30b61d8dac74bdf6.tar.gz rtmux-37583f0a69d22668bdd47e0b30b61d8dac74bdf6.tar.bz2 rtmux-37583f0a69d22668bdd47e0b30b61d8dac74bdf6.zip |
Add a flag to reverse sort in the various choose modes, from Benjamin
Poirier in GitHub issue 1875.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1682,6 +1682,12 @@ struct spawn_context { #define SPAWN_EMPTY 0x40 }; +/* Mode tree sort order. */ +struct mode_tree_sort_criteria { + u_int field; + int reversed; +}; + /* tmux.c */ extern struct options *global_options; extern struct options *global_s_options; @@ -2473,7 +2479,8 @@ u_int layout_set_next(struct window *); u_int layout_set_previous(struct window *); /* mode-tree.c */ -typedef void (*mode_tree_build_cb)(void *, u_int, uint64_t *, const char *); +typedef void (*mode_tree_build_cb)(void *, struct mode_tree_sort_criteria *, + uint64_t *, const char *); typedef void (*mode_tree_draw_cb)(void *, void *, struct screen_write_ctx *, u_int, u_int); typedef int (*mode_tree_search_cb)(void *, void *, const char *); |