aboutsummaryrefslogtreecommitdiff
path: root/book/src/keymap.md
diff options
context:
space:
mode:
authorAlexanderDickie2024-02-18 23:13:04 +0000
committerGitHub2024-02-18 23:13:04 +0000
commit9ab3f9d01a8ea4967f5a7e64a3f6c8f350674c18 (patch)
treef6b5fdbf1c7924584ecbc975591138def7ce16f8 /book/src/keymap.md
parent64326698225999016300423c4b90f8a8c7b8f38b (diff)
Scroll cursor and page together (neovim-like scrolling) (#8015)
* neovim like scroll function * clear line annotations outside of move_vertically/_visual * add nvim scroll function to commands * assign nvim-scroll to C-d and C-u (half page scrolls) * dont remove backspace and space mapping * move non-softwrap logic to seperate function, call this in nvim-scroll fn * Revert "move non-softwrap logic to seperate function, call this in nvim-scroll fn" This reverts commit e4905729c338a2260e6981f1d8fac022897b4191. * Revert "clear line annotations outside of move_vertically/_visual" This reverts commit 1df3fefe55afc840d1ab5094b2116d1127fc363f. * add TODO for when inline diagnostics gets merged * move nvim-scroll logic into scroll(), dont respect scrolloff * run cargo fmt * run cargo clippy * update documenation for Ctrl-d and Ctrl-u remap
Diffstat (limited to 'book/src/keymap.md')
-rw-r--r--book/src/keymap.md28
1 files changed, 14 insertions, 14 deletions
diff --git a/book/src/keymap.md b/book/src/keymap.md
index a3e41666..ac84147c 100644
--- a/book/src/keymap.md
+++ b/book/src/keymap.md
@@ -53,8 +53,8 @@ Normal mode is the default mode when you launch helix. You can return to it from
| `End` | Move to the end of the line | `goto_line_end` |
| `Ctrl-b`, `PageUp` | Move page up | `page_up` |
| `Ctrl-f`, `PageDown` | Move page down | `page_down` |
-| `Ctrl-u` | Move half page up | `half_page_up` |
-| `Ctrl-d` | Move half page down | `half_page_down` |
+| `Ctrl-u` | Move cursor and page half page up | `page_cursor_half_up` |
+| `Ctrl-d` | Move cursor and page half page down | `page_cursor_half_down` |
| `Ctrl-i` | Jump forward on the jumplist | `jump_forward` |
| `Ctrl-o` | Jump backward on the jumplist | `jump_backward` |
| `Ctrl-s` | Save the current selection to the jumplist | `save_selection` |
@@ -182,18 +182,18 @@ normal mode) is persistent and can be exited using the escape key. This is
useful when you're simply looking over text and not actively editing it.
-| Key | Description | Command |
-| ----- | ----------- | ------- |
-| `z`, `c` | Vertically center the line | `align_view_center` |
-| `t` | Align the line to the top of the screen | `align_view_top` |
-| `b` | Align the line to the bottom of the screen | `align_view_bottom` |
-| `m` | Align the line to the middle of the screen (horizontally) | `align_view_middle` |
-| `j`, `down` | Scroll the view downwards | `scroll_down` |
-| `k`, `up` | Scroll the view upwards | `scroll_up` |
-| `Ctrl-f`, `PageDown` | Move page down | `page_down` |
-| `Ctrl-b`, `PageUp` | Move page up | `page_up` |
-| `Ctrl-d` | Move half page down | `half_page_down` |
-| `Ctrl-u` | Move half page up | `half_page_up` |
+| Key | Description | Command |
+| ----- | ----------- | ------- |
+| `z`, `c` | Vertically center the line | `align_view_center` |
+| `t` | Align the line to the top of the screen | `align_view_top` |
+| `b` | Align the line to the bottom of the screen | `align_view_bottom` |
+| `m` | Align the line to the middle of the screen (horizontally) | `align_view_middle` |
+| `j`, `down` | Scroll the view downwards | `scroll_down` |
+| `k`, `up` | Scroll the view upwards | `scroll_up` |
+| `Ctrl-f`, `PageDown` | Move page down | `page_down` |
+| `Ctrl-b`, `PageUp` | Move page up | `page_up` |
+| `Ctrl-u` | Move cursor and page half page up | `page_cursor_half_up` |
+| `Ctrl-d` | Move cursor and page half page down | `page_cursor_half_down` |
#### Goto mode