aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2012-10-02 10:47:16 +0100
committerThomas Adam <thomas@xteddy.org>2012-10-02 10:47:16 +0100
commit619ffe1f4ff3b00c848be381ce7131ba74ff4c3b (patch)
treefd50b7497603c32e6003c3b0529d17e63a8bd950 /tmux.h
parent9763282dc1f384f4e3cf491c184ea990fd29e1f7 (diff)
parent9107b0c69a12ebc6161e1a11c26a8c2265c61fcc (diff)
downloadrtmux-619ffe1f4ff3b00c848be381ce7131ba74ff4c3b.tar.gz
rtmux-619ffe1f4ff3b00c848be381ce7131ba74ff4c3b.tar.bz2
rtmux-619ffe1f4ff3b00c848be381ce7131ba74ff4c3b.zip
Merge branch 'obsd-master'
Sync from OpenBSD. * obsd-master: Allow session tree (C-b s) to expand and collapse sessions with left/right/space keys. From Thomas Adam. Remove some out of date text from man page, from Thomas Adam.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index c18499b1..3751b672 100644
--- a/tmux.h
+++ b/tmux.h
@@ -548,6 +548,11 @@ enum mode_key_cmd {
MODEKEYCHOICE_SCROLLDOWN,
MODEKEYCHOICE_SCROLLUP,
MODEKEYCHOICE_STARTNUMBERPREFIX,
+ MODEKEYCHOICE_TREE_COLLAPSE,
+ MODEKEYCHOICE_TREE_COLLAPSE_ALL,
+ MODEKEYCHOICE_TREE_EXPAND,
+ MODEKEYCHOICE_TREE_EXPAND_ALL,
+ MODEKEYCHOICE_TREE_TOGGLE,
MODEKEYCHOICE_UP,
/* Copy keys. */
@@ -887,12 +892,16 @@ struct window_mode {
/* Structures for choose mode. */
struct window_choose_data {
struct client *client;
- struct session *session;
+ struct session *session; /* Session of current client. */
+ struct session *tree_session; /* Session of items in tree. */
struct format_tree *ft;
struct winlink *wl;
char *ft_template;
char *command;
u_int idx;
+ int type;
+#define TREE_WINDOW 0x1
+#define TREE_SESSION 0x2
int pane_id;
};
@@ -900,6 +909,8 @@ struct window_choose_mode_item {
struct window_choose_data *wcd;
char *name;
int pos;
+ int state;
+#define TREE_EXPANDED 0x1
};
/* Child window structure. */