diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-07-02 21:22:57 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-07-02 21:22:57 +0000 |
commit | 892d1b534e401c081b90e15604e5e65978ab429a (patch) | |
tree | d1f18e060bbc3bbf45d9b109b86713abdcdab0df /tmux.h | |
parent | 089f727f5475cfb6ffadf8344a8b405e381d6002 (diff) | |
download | rtmux-892d1b534e401c081b90e15604e5e65978ab429a.tar.gz rtmux-892d1b534e401c081b90e15604e5e65978ab429a.tar.bz2 rtmux-892d1b534e401c081b90e15604e5e65978ab429a.zip |
Split emacs/vi keys into seperate tables.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 28 |
1 files changed, 26 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.174 2008-07-01 20:35:16 nicm Exp $ */ +/* $Id: tmux.h,v 1.175 2008-07-02 21:22:57 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -827,7 +827,28 @@ struct set_option_entry { const char **choices; }; extern const struct set_option_entry set_option_table[]; -#define NSETOPTION 14 +#define NSETOPTION 15 + +/* Edit keys. */ +enum mode_key { + MODEKEY_BOL, + MODEKEY_CLEARSEL, + MODEKEY_COPYSEL, + MODEKEY_DOWN, + MODEKEY_EOL, + MODEKEY_LEFT, + MODEKEY_NONE, + MODEKEY_NPAGE, + MODEKEY_NWORD, + MODEKEY_PPAGE, + MODEKEY_PWORD, + MODEKEY_QUIT, + MODEKEY_RIGHT, + MODEKEY_STARTSEL, + MODEKEY_UP, +}; +#define MODEKEY_EMACS 0 +#define MODEKEY_VI 1 #ifdef NO_STRTONUM /* strtonum.c */ @@ -879,6 +900,9 @@ void sigreset(void); /* cfg.c */ int load_cfg(const char *, char **x); +/* mode-key.c */ +enum mode_key mode_key_lookup(int, int); + /* options.c */ int options_cmp(struct options_entry *, struct options_entry *); SPLAY_PROTOTYPE(options_tree, options_entry, entry, options_cmp); |