diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-05-28 09:02:26 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-05-28 09:02:26 +0100 |
commit | c0116b2c5ba7d52509a8ce01dd27c2e3a3d4e2af (patch) | |
tree | d3e460fe73ea9711f1489194d951ba596808f77f /window-tree.c | |
parent | 793f4d89d6a04573825e9fa39fbc301e67c4d300 (diff) | |
parent | 799a154b91c6e6ff7dbe62b67272f09578c99914 (diff) | |
download | rtmux-c0116b2c5ba7d52509a8ce01dd27c2e3a3d4e2af.tar.gz rtmux-c0116b2c5ba7d52509a8ce01dd27c2e3a3d4e2af.tar.bz2 rtmux-c0116b2c5ba7d52509a8ce01dd27c2e3a3d4e2af.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'window-tree.c')
-rw-r--r-- | window-tree.c | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/window-tree.c b/window-tree.c index d1fff4c3..61b11b1b 100644 --- a/window-tree.c +++ b/window-tree.c @@ -53,18 +53,21 @@ static void window_tree_key(struct window_mode_entry *, "}" \ "}" -#define WINDOW_TREE_MENU \ - "Select,Enter,|" \ - "Expand,Right,|" \ - "|" \ - "Tag,t,|" \ - "Tag All,C-t,|" \ - "Tag None,T,|" \ - "|" \ - "Kill,x,|" \ - "Kill Tagged,X,|" \ - "|" \ - "Cancel,q," +static const struct menu_item window_tree_menu_items[] = { + { "Select", 'E', NULL }, + { "Expand", 'R', NULL }, + { "", KEYC_NONE, NULL }, + { "Tag", 't', NULL }, + { "Tag All", '\024', NULL }, + { "Tag None", 'T', NULL }, + { "", KEYC_NONE, NULL }, + { "Kill", 'x', NULL }, + { "Kill Tagged", 'X', NULL }, + { "", KEYC_NONE, NULL }, + { "Cancel", 'q', NULL }, + + { NULL, KEYC_NONE, NULL } +}; const struct window_mode window_tree_mode = { .name = "tree-mode", @@ -872,7 +875,7 @@ window_tree_init(struct window_mode_entry *wme, struct cmd_find_state *fs, data->data = mode_tree_start(wp, args, window_tree_build, window_tree_draw, window_tree_search, window_tree_menu, data, - WINDOW_TREE_MENU, window_tree_sort_list, + window_tree_menu_items, window_tree_sort_list, nitems(window_tree_sort_list), &s); mode_tree_zoom(data->data, args); |