summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClementTsang <cjhtsang@uwaterloo.ca>2020-02-10 00:29:23 -0500
committerClementTsang <cjhtsang@uwaterloo.ca>2020-02-10 00:29:23 -0500
commitf21c06f8ed19f57208b3fb1fa1e55238a5a1a9ef (patch)
tree631ce39c37403af8cc5593cc56331d161b5e66cc
parentf45b2d57111aa9d3bf0649753a2bb55abcca9e1d (diff)
Update documentation and help menu for HJKL
-rw-r--r--README.md2
-rw-r--r--src/constants.rs3
2 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index 823d0b9d..a938fcd8 100644
--- a/README.md
+++ b/README.md
@@ -135,7 +135,7 @@ Run using `btm`.
- `f` to freeze the screen from updating with new data. Press `f` again to unfreeze. Note that monitoring will still continue in the background.
-- `Ctrl/Shift-Up`, `Ctrl/Shift-Down`, `Ctrl/Shift-Left`, and `Ctrl/Shift-Right` to navigate between widgets. **Note that on macOS, `Ctrl`-arrow keys conflicts with an existing macOS binding, use `Shift`-arrow key instead.**
+- `Ctrl/Shift-Arrow` or `H/J/K/L` to navigate between widgets. **Note that on macOS, `Ctrl`-arrow keys conflicts with an existing macOS binding, use `Shift`-arrow key instead.**
- `Esc` to close a dialog window.
diff --git a/src/constants.rs b/src/constants.rs
index 791f3809..2bfc89f5 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -12,7 +12,7 @@ pub const DEFAULT_UNIX_CONFIG_FILE_PATH: &str = "~/.config/btm/btm.toml";
pub const DEFAULT_WINDOWS_CONFIG_FILE_PATH: &str = "";
// Help text
-pub const GENERAL_HELP_TEXT: [&str; 14] = [
+pub const GENERAL_HELP_TEXT: [&str; 15] = [
"General Keybindings\n\n",
"Esc Close dialog box\n",
"q, Ctrl-c Quit bottom\n",
@@ -20,6 +20,7 @@ pub const GENERAL_HELP_TEXT: [&str; 14] = [
"f Freeze display\n",
"Ctrl-Arrow Move currently selected widget\n",
"Shift-Arrow Move currently selected widget\n",
+ "H/J/K/L Move currently selected widget up/down/left/right\n",
"Up, k Move cursor up\n",
"Down, j Move cursor down\n",
"Left, h Move cursor left\n",