diff options
author | Michael Steed <msteed68@gmail.com> | 2015-05-30 16:44:25 -0600 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2015-06-04 12:09:02 -0700 |
commit | cb984cf761debdc858db48065b2c1d94b31de49e (patch) | |
tree | b12eb23ac8a9c8717ffe839f9ee427687569a3f4 /tokenizer.h | |
parent | 7efbcc039d9e41369be590bb77d8ce7fd4a9b260 (diff) |
Add 'bigword' vi key bindings
- Add four new functions: forward-bigword, backward-bigword,
kill-bigword, backward-kill-bigword
- Add new enum move_word_style_whitespace and related state machine
method
- Change vi key bindings to operate on bigwords: B, gE, W, E, dW, diW,
daW, dE, dB, dgE, cW, ciW, caW, cE, cB, cgE, yW, yiW, yaW, yE, yB,
ygE
Diffstat (limited to 'tokenizer.h')
-rw-r--r-- | tokenizer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tokenizer.h b/tokenizer.h index d7e202ba..954957cc 100644 --- a/tokenizer.h +++ b/tokenizer.h @@ -192,7 +192,8 @@ int oflags_for_redirection_type(enum token_type type); enum move_word_style_t { move_word_style_punctuation, //stop at punctuation - move_word_style_path_components //stops at path components + move_word_style_path_components, //stops at path components + move_word_style_whitespace // stops at whitespace }; /* Our state machine that implements "one word" movement or erasure. */ @@ -203,6 +204,7 @@ private: bool consume_char_punctuation(wchar_t c); bool consume_char_path_components(wchar_t c); bool is_path_component_character(wchar_t c); + bool consume_char_whitespace(wchar_t c); int state; move_word_style_t style; |