summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Bassi <calebjbassi@gmail.com>2018-03-04 20:00:55 -0800
committerCaleb Bassi <calebjbassi@gmail.com>2018-03-04 20:00:55 -0800
commit79bb19049429c5dc540d03e4e1664be079863f9c (patch)
treebe203724485676a7971f49821d3ca6bbb7b54862
parent5a28dd46a5db3615846fe2668fc93e3f86e8c021 (diff)
Updated keybinds in README and help widget
-rw-r--r--README.md8
-rw-r--r--widgets/help.go24
2 files changed, 16 insertions, 16 deletions
diff --git a/README.md b/README.md
index 75eb0db..3e22b43 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
![image](https://github.com/cjbassi/gotop/blob/master/demo.gif)
-Another TUI graphical activity monitor, inspired by [gtop](https://github.com/aksakalli/gtop) and [vtop](https://github.com/MrRio/vtop), this time written in [Go](https://golang.org/)!
+Another TUI graphical activity monitor, inspired by [gtop](https://github.com/aksakalli/gtop) and [vtop](https://github.com/MrRio/vtop), this time written in [Go](https://golang.org/)!
Built with [gopsutil](https://github.com/shirou/gopsutil), [drawille-go](https://github.com/exrook/drawille-go), and a modified version of [termui](https://github.com/gizak/termui).
@@ -36,11 +36,11 @@ go get github.com/cjbassi/gotop
### Keybinds
-* Quit: `q` or `Ctrl-c`
+* Quit: `q` or `<C-c>`
* Navigation:
* `<up>`/`<down>` and `j`/`k`: up and down
- * `C-d` and `C-u`: up and down half a page
- * `C-f` and `C-b`: up and down a full page
+ * `<C-d>` and `<C-u>`: up and down half a page
+ * `<C-f>` and `<C-b>`: up and down a full page
* `gg` and `G`: jump to top and bottom
* Process Sorting:
* `c`: CPU
diff --git a/widgets/help.go b/widgets/help.go
index 6c0f592..ff5c716 100644
--- a/widgets/help.go
+++ b/widgets/help.go
@@ -7,21 +7,21 @@ import (
)
const KEYBINDS = `
-Quit: 'q' or 'Ctrl-c'
+Quit: q or <C-c>
-Navigation:
- - '<up>'/'<down>' and 'j'/'k': up and down
- - 'C-d' and 'C-u': up and down half a page
- - 'C-f' and 'C-b': up and down a full page
- - 'gg' and 'G': jump to top and bottom
+Navigation
+ - <up>/<down> and j/k: up and down
+ - <C-d> and <C-u>: up and down half a page
+ - <C-f> and <C-b>: up and down a full page
+ - gg and G: jump to top and bottom
-Process Sorting:
- - 'c': CPU
- - 'm': Mem
- - 'p': PID
+Process Sorting
+ - c: CPU
+ - m: Mem
+ - p: PID
-'<tab>': toggle process grouping
-'dd': kill the selected process or process group
+<tab>: toggle process grouping
+dd: kill the selected process or process group
`
type HelpMenu struct {