Skip to content

Commit

Permalink
doc: Add keybindings for horizontal scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
AMythicDev committed Mar 11, 2024
1 parent 45454fe commit cdc4fc7
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,28 +118,31 @@
//!
//! **A `[n] key` means that you can precede the key by an integer**.
//!
//! | Action | Description |
//! |-------------------|------------------------------------------------------------------------------|
//! | Ctrl+C/q | Quit the pager |
//! | \[n\] Arrow Up/k | Scroll up by n number of line(s). If n is omitted, scroll up by 1 line |
//! | \[n\] Arrow Down/j| Scroll down by n number of line(s). If n is omitted, scroll down by 1 line |
//! | Page Up | Scroll up by entire page |
//! | Page Down | Scroll down by entire page |
//! | \[n\] Enter | Scroll down by n number of line(s). |
//! | Space | Scroll down by one page |
//! | Ctrl+U/u | Scroll up by half a screen |
//! | Ctrl+D/d | Scroll down by half a screen |
//! | g | Go to the very top of the output |
//! | \[n\] G | Go to the very bottom of the output. If n is present, goes to that line |
//! | Mouse scroll Up | Scroll up by 5 lines |
//! | Mouse scroll Down | Scroll down by 5 lines |
//! | Ctrl+L | Toggle line numbers if not forced enabled/disabled |
//! | Ctrl+f | Toggle [follow-mode] |
//! | / | Start forward search |
//! | ? | Start backward search |
//! | Esc | Cancel search input |
//! | n | Go to the next search match |
//! | p | Go to the next previous match |
//! | Action | Description |
//! |---------------------|------------------------------------------------------------------------------|
//! | Ctrl+C/q | Quit the pager |
//! | \[n\] Arrow Up/k | Scroll up by n number of line(s). If n is omitted, scroll up by 1 line |
//! | \[n\] Arrow Down/j | Scroll down by n number of line(s). If n is omitted, scroll down by 1 line |
//! | Ctrl+h | Turn off line wrapping and allow horizontal scrolling |
//! | \[n\] Arrow left/h | Scroll left by n number of line(s). If n is omitted, scroll up by 1 line |
//! | \[n\] Arrow right/l | Scroll right by n number of line(s). If n is omitted, scroll down by 1 line |
//! | Page Up | Scroll up by entire page |
//! | Page Down | Scroll down by entire page |
//! | \[n\] Enter | Scroll down by n number of line(s). |
//! | Space | Scroll down by one page |
//! | Ctrl+U/u | Scroll up by half a screen |
//! | Ctrl+D/d | Scroll down by half a screen |
//! | g | Go to the very top of the output |
//! | \[n\] G | Go to the very bottom of the output. If n is present, goes to that line |
//! | Mouse scroll Up | Scroll up by 5 lines |
//! | Mouse scroll Down | Scroll down by 5 lines |
//! | Ctrl+L | Toggle line numbers if not forced enabled/disabled |
//! | Ctrl+f | Toggle [follow-mode] |
//! | / | Start forward search |
//! | ? | Start backward search |
//! | Esc | Cancel search input |
//! | n | Go to the next search match |
//! | p | Go to the next previous match |
//!
//! End-applications are free to change these bindings to better suit their needs. See docs for
//! [Pager::set_input_classifier] function and [input] module.
Expand Down

0 comments on commit cdc4fc7

Please sign in to comment.