Add arrow keys to view mode (#987)

* Add arrow keys to view mode

* Drop C-up and C-down

* Update docs for #987

* Format correctly

* Drop other keymaps

* Correct keymap.md

* Add arrow keys to view mode

Drop C-up and C-down

Update docs for #987

Format correctly

Drop other keymaps

Correct keymap.md

Rebase

Co-authored-by: Rust & Python <nexinov@localhost.gud-o15>
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
pull/1088/head
NexiNov 3 years ago committed by GitHub
parent bf95a9ed04
commit 187197afb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -134,8 +134,8 @@ over text and not actively editing it).
| `t` | Align the line to the top of the screen | `align_view_top` | | `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` | | `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` | | `m` | Align the line to the middle of the screen (horizontally) | `align_view_middle` |
| `j` | Scroll the view downwards | `scroll_down` | | `j` , `down` | Scroll the view downwards | `scroll_down` |
| `k` | Scroll the view upwards | `scroll_up` | | `k` , `up` | Scroll the view upwards | `scroll_up` |
| `f` | Move page down | `page_down` | | `f` | Move page down | `page_down` |
| `b` | Move page up | `page_up` | | `b` | Move page up | `page_up` |
| `d` | Move half page down | `half_page_down` | | `d` | Move half page down | `half_page_down` |

@ -651,8 +651,8 @@ impl Default for Keymaps {
"t" => align_view_top, "t" => align_view_top,
"b" => align_view_bottom, "b" => align_view_bottom,
"m" => align_view_middle, "m" => align_view_middle,
"k" => scroll_up, "k" | "up" => scroll_up,
"j" => scroll_down, "j" | "down" => scroll_down,
"C-b" | "pageup" => page_up, "C-b" | "pageup" => page_up,
"C-f" | "pagedown" => page_down, "C-f" | "pagedown" => page_down,
"C-u" => half_page_up, "C-u" => half_page_up,
@ -663,8 +663,8 @@ impl Default for Keymaps {
"t" => align_view_top, "t" => align_view_top,
"b" => align_view_bottom, "b" => align_view_bottom,
"m" => align_view_middle, "m" => align_view_middle,
"k" => scroll_up, "k" | "up" => scroll_up,
"j" => scroll_down, "j" | "down" => scroll_down,
"C-b" | "pageup" => page_up, "C-b" | "pageup" => page_up,
"C-f" | "pagedown" => page_down, "C-f" | "pagedown" => page_down,
"C-u" => half_page_up, "C-u" => half_page_up,

Loading…
Cancel
Save