diff options
author | Pascal Kuthe | 2022-12-06 14:18:33 +0000 |
---|---|---|
committer | GitHub | 2022-12-06 14:18:33 +0000 |
commit | af532147c97987d6170dc06a52aa3434ebf1b9d4 (patch) | |
tree | ff1dc27e976a7ca8ac0be4a8eaebb51ac12c4f69 /helix-term/src/keymap | |
parent | 453a75a3739338348024b6c676231aef9ef6cb7b (diff) |
Add command/keybinding to jump between hunks (#4650)
* add command and keybding to jump to next/prev hunk
* add textobject for change
* Update helix-vcs/src/diff.rs
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* select entire hunk instead of first char
* fix selection range
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Diffstat (limited to 'helix-term/src/keymap')
-rw-r--r-- | helix-term/src/keymap/default.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-term/src/keymap/default.rs b/helix-term/src/keymap/default.rs index b6d9ea10..ebcd125a 100644 --- a/helix-term/src/keymap/default.rs +++ b/helix-term/src/keymap/default.rs @@ -100,6 +100,8 @@ pub fn default() -> HashMap<Mode, Keymap> { "[" => { "Left bracket" "d" => goto_prev_diag, "D" => goto_first_diag, + "g" => goto_prev_change, + "G" => goto_first_change, "f" => goto_prev_function, "t" => goto_prev_class, "a" => goto_prev_parameter, @@ -111,6 +113,8 @@ pub fn default() -> HashMap<Mode, Keymap> { "]" => { "Right bracket" "d" => goto_next_diag, "D" => goto_last_diag, + "g" => goto_next_change, + "G" => goto_last_change, "f" => goto_next_function, "t" => goto_next_class, "a" => goto_next_parameter, |