summaryrefslogtreecommitdiffstats
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-06-25 14:27:25 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-06-25 14:27:25 +0000
commit67b926cf3c77737e3b40c9d70c38314ac19ba105 (patch)
tree70e11d99991264920f3a063dc4cdccb37522202f /tmux.h
parent5b6f78186c63a19e213eb8597efe69277556e038 (diff)
Provide common helper function for adding windows and sessions to choose
lists and expand %% in command before using it rather than at callback time. From Thomas Adam.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/tmux.h b/tmux.h
index a27b56ad..f4e953c3 100644
--- a/tmux.h
+++ b/tmux.h
@@ -852,8 +852,7 @@ struct window_choose_data {
struct session *session;
struct format_tree *ft;
char *ft_template;
- char *raw_format;
- char *action;
+ char *command;
u_int idx;
};
@@ -2135,16 +2134,19 @@ void window_copy_pageup(struct window_pane *);
/* window-choose.c */
extern const struct window_mode window_choose_mode;
-void window_choose_vadd(
- struct window_pane *, int, const char *, va_list);
void window_choose_add(struct window_pane *,
struct window_choose_data *);
void window_choose_ready(struct window_pane *,
u_int, void (*)(struct window_choose_data *),
void (*)(struct window_choose_data *));
-struct window_choose_data *window_choose_data_create(
- struct cmd_ctx *);
+struct window_choose_data *window_choose_data_create(struct cmd_ctx *);
void window_choose_ctx(struct window_choose_data *);
+struct window_choose_data *window_choose_add_window(struct window_pane *,
+ struct cmd_ctx *, struct session *, struct winlink *,
+ const char *, char *, u_int);
+struct window_choose_data *window_choose_add_session(struct window_pane *,
+ struct cmd_ctx *, struct session *, const char *,
+ char *, u_int);
/* names.c */
void queue_window_name(struct window *);