aboutsummaryrefslogtreecommitdiff
path: root/book
diff options
context:
space:
mode:
authorPascal Kuthe2022-12-06 14:18:33 +0000
committerGitHub2022-12-06 14:18:33 +0000
commitaf532147c97987d6170dc06a52aa3434ebf1b9d4 (patch)
treeff1dc27e976a7ca8ac0be4a8eaebb51ac12c4f69 /book
parent453a75a3739338348024b6c676231aef9ef6cb7b (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 'book')
-rw-r--r--book/src/keymap.md4
-rw-r--r--book/src/usage.md1
2 files changed, 5 insertions, 0 deletions
diff --git a/book/src/keymap.md b/book/src/keymap.md
index c3c09f4c..139e8fdd 100644
--- a/book/src/keymap.md
+++ b/book/src/keymap.md
@@ -320,6 +320,10 @@ Mappings in the style of [vim-unimpaired](https://github.com/tpope/vim-unimpaire
| `]T` | Go to previous test (**TS**) | `goto_prev_test` |
| `]p` | Go to next paragraph | `goto_next_paragraph` |
| `[p` | Go to previous paragraph | `goto_prev_paragraph` |
+| `]g` | Go to next change | `goto_next_change` |
+| `[g` | Go to previous change | `goto_prev_change` |
+| `]G` | Go to first change | `goto_first_change` |
+| `[G` | Go to last change | `goto_last_change` |
| `[Space` | Add newline above | `add_newline_above` |
| `]Space` | Add newline below | `add_newline_below` |
diff --git a/book/src/usage.md b/book/src/usage.md
index 646bf926..a6eb9ec1 100644
--- a/book/src/usage.md
+++ b/book/src/usage.md
@@ -143,6 +143,7 @@ though, we climb the syntax tree and then take the previous selection. So
| `a` | Argument/parameter |
| `o` | Comment |
| `t` | Test |
+| `g` | Change |
> NOTE: `f`, `c`, etc need a tree-sitter grammar active for the current
document and a special tree-sitter query file to work properly. [Only