diff options
author | Blaž Hrastnik | 2021-03-11 07:14:52 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-03-11 07:15:27 +0000 |
commit | 4acf30102282584e31d8ac9a7a69e45acbdd64ec (patch) | |
tree | 397163644e7adca237cf3309b942895ebc5fa4cb /helix-term/src/keymap.rs | |
parent | 62c991230f511b2dc11f8d1701260511800429d4 (diff) |
Implement the f/t/F/T find/till family of commands.
Diffstat (limited to 'helix-term/src/keymap.rs')
-rw-r--r-- | helix-term/src/keymap.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index d956679a..58a465fe 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -137,10 +137,10 @@ pub fn default() -> Keymaps { key!('k') => commands::move_line_up, key!('l') => commands::move_char_right, - // key!('t') => commands::till_next_char, + key!('t') => commands::find_till_char, key!('f') => commands::find_next_char, - // key!('T') => commands::till_prev_char, - // key!('f') => commands::find_prev_char, + shift!('T') => commands::till_prev_char, + shift!('F') => commands::find_prev_char, // and matching set for select mode (extend) key!('0') => commands::move_line_start, @@ -261,6 +261,11 @@ pub fn default() -> Keymaps { key!('b') => commands::extend_prev_word_start, key!('e') => commands::extend_next_word_end, + key!('t') => commands::extend_till_char, + key!('f') => commands::extend_next_char, + shift!('T') => commands::extend_till_prev_char, + shift!('F') => commands::extend_prev_char, + Key { code: KeyCode::Esc, modifiers: Modifiers::NONE |