aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-02-19 17:49:53 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-02-19 17:49:53 +0000
commitc3859d1df1fbdb63b8aab15d10266e26c5e428eb (patch)
tree8e83d8986670137d3c6e4f54aa1f1dbb92533ae1 /tmux.h
parent5a5e285be8caf98c7777a2afa717d04ac44c9f75 (diff)
downloadrtmux-c3859d1df1fbdb63b8aab15d10266e26c5e428eb.tar.gz
rtmux-c3859d1df1fbdb63b8aab15d10266e26c5e428eb.tar.bz2
rtmux-c3859d1df1fbdb63b8aab15d10266e26c5e428eb.zip
Add copy-pipe mode command to copy selection and also pipe to a command.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/tmux.h b/tmux.h
index 8b3d4e14..f5691e91 100644
--- a/tmux.h
+++ b/tmux.h
@@ -562,6 +562,7 @@ enum mode_key_cmd {
MODEKEYCOPY_BOTTOMLINE,
MODEKEYCOPY_CANCEL,
MODEKEYCOPY_CLEARSELECTION,
+ MODEKEYCOPY_COPYPIPE,
MODEKEYCOPY_COPYLINE,
MODEKEYCOPY_COPYENDOFLINE,
MODEKEYCOPY_COPYSELECTION,
@@ -628,12 +629,13 @@ struct mode_key_data {
/* Binding between a key and a command. */
struct mode_key_binding {
- int key;
+ int key;
- int mode;
- enum mode_key_cmd cmd;
+ int mode;
+ enum mode_key_cmd cmd;
+ const char *arg;
- RB_ENTRY(mode_key_binding) entry;
+ RB_ENTRY(mode_key_binding) entry;
};
RB_HEAD(mode_key_tree, mode_key_binding);
@@ -1544,7 +1546,7 @@ enum mode_key_cmd mode_key_fromstring(const struct mode_key_cmdstr *,
const struct mode_key_table *mode_key_findtable(const char *);
void mode_key_init_trees(void);
void mode_key_init(struct mode_key_data *, struct mode_key_tree *);
-enum mode_key_cmd mode_key_lookup(struct mode_key_data *, int);
+enum mode_key_cmd mode_key_lookup(struct mode_key_data *, int, const char **);
/* notify.c */
void notify_enable(void);