Merge pull request #138 from ClementTsang/update_bindings

docs: update help and README for bindings
This commit is contained in:
Clement Tsang 2020-04-28 22:54:17 -04:00 committed by GitHub
commit 24caaa29a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 23 deletions

View file

@ -40,10 +40,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#126](https://github.com/ClementTsang/bottom/pull/126): Updated error messages to be a bit more consistent/helpful. - [#126](https://github.com/ClementTsang/bottom/pull/126): Updated error messages to be a bit more consistent/helpful.
- Redesigned help menu to allow for scrolling. - [#70](https://github.com/ClementTsang/bottom/issues/70): Redesigned help menu to allow for scrolling.
- [#134](https://github.com/ClementTsang/bottom/pull/134): Added `hjkl` movement to delete dialog. - [#134](https://github.com/ClementTsang/bottom/pull/134): Added `hjkl` movement to delete dialog.
- [#59](https://github.com/ClementTsang/bottom/issues/59): Redesigned search menu and query.
### Bug Fixes ### Bug Fixes
- Fixed `dd` not working on non-first entries. - Fixed `dd` not working on non-first entries.
@ -57,7 +59,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Switch to stateful widget style for tables. - Switch to stateful widget style for tables.
- Updated arg tests and added config testing. - [#38](https://github.com/ClementTsang/bottom/issues/38): Updated arg tests and added config testing.
- More refactoring. - More refactoring.

View file

@ -53,7 +53,7 @@ Note that binaries are built on the stable version of Rust, and I mainly test an
### Manual ### Manual
There are a few ways to go about doing this (note you will need the current version of stable Rust). For example: There are a few ways to go about doing this (note you may need the current version of stable Rust, as I develop using the most recent version of stable). For example:
```bash ```bash
# Update Rust on the stable channel # Update Rust on the stable channel
@ -167,23 +167,25 @@ Run using `btm`.
#### General #### General
| | | | | |
| -------------------------------------------------- | ---------------------------------------------------------------------------------------------- | | -------------------------------------------------- | ---------------------------------------------------------------------------- |
| `q`, `Ctrl-c` | Quit | | `q`, `Ctrl-c` | Quit |
| `Esc` | Close dialog windows, search, widgets, or exit maximized mode | | `Esc` | Close dialog windows, search, widgets, or exit maximized mode |
| `Ctrl-r` | Reset display and any collected data | | `Ctrl-r` | Reset display and any collected data |
| `f` | Freeze/unfreeze updating with new data | | `f` | Freeze/unfreeze updating with new data |
| `Ctrl`-arrow key<br>`Shift`-arrow key<br>`H/J/K/L` | Move to a different widget (on macOS some keybindings may conflict) | | `Ctrl`-arrow key<br>`Shift`-arrow key<br>`H/J/K/L` | Move to a different widget (on macOS some keybindings may conflict) |
| `Up`,`k` | Scroll up | | `Left`, `h` | Move left within widget |
| `Down`, `j` | Scroll down | | `Down`, `j` | Move down within widget |
| `?` | Open help menu | | `Up`,`k` | Move up within widget |
| `gg`, `Home` | Jump to the first entry | | `Right`, `l` | Move right within widget |
| `Shift-g`, `End` | Jump to the last entry | | `?` | Open help menu |
| `Enter` | Maximize the currently selected widget | | `gg`, `Home` | Jump to the first entry |
| `+` | Zoom in on chart (decrease time range) | | `Shift-g`, `End` | Jump to the last entry |
| `-` | Zoom out on chart (increase time range) | | `Enter` | Maximize the currently selected widget |
| `=` | Reset zoom | | `+` | Zoom in on chart (decrease time range) |
| Mouse scroll | Table: Scrolls through the list<br>Chart: Zooms in or out by scrolling up or down respectively | | `-` | Zoom out on chart (increase time range) |
| `=` | Reset zoom |
| Mouse scroll | Table: Scroll<br>Chart: Zooms in or out by scrolling up or down respectively |
#### CPU bindings #### CPU bindings
@ -478,6 +480,7 @@ Thanks to all contributors ([emoji key](https://allcontributors.org/docs/en/emoj
<!-- markdownlint-enable --> <!-- markdownlint-enable -->
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END --> <!-- ALL-CONTRIBUTORS-LIST:END -->
## Bug reports and feature requests ## Bug reports and feature requests

View file

@ -45,7 +45,7 @@ pub const HELP_CONTENTS_TEXT: [&str; 6] = [
"5 - Battery bindings", "5 - Battery bindings",
]; ];
pub const GENERAL_HELP_TEXT: [&str; 18] = [ pub const GENERAL_HELP_TEXT: [&str; 20] = [
"1 - General bindings\n", "1 - General bindings\n",
"q, Ctrl-c Quit\n", "q, Ctrl-c Quit\n",
"Esc Close dialog windows, search, widgets, or exit maximized mode\n", "Esc Close dialog windows, search, widgets, or exit maximized mode\n",
@ -54,8 +54,10 @@ pub const GENERAL_HELP_TEXT: [&str; 18] = [
"Ctrl-Arrow \n", "Ctrl-Arrow \n",
"Shift-Arrow Move to a different widget\n", "Shift-Arrow Move to a different widget\n",
"H/J/K/L \n", "H/J/K/L \n",
"Up, k Scroll up\n", "Left, h Move left within widget\n",
"Down, j Scroll down\n", "Down, j Move down within widget\n",
"Up, k Move up within widget\n",
"Right, l Move right within widget\n",
"? Open help menu\n", "? Open help menu\n",
"gg Jump to the first entry\n", "gg Jump to the first entry\n",
"G Jump to the last entry\n", "G Jump to the last entry\n",