diff options
author | Caleb Bassi <calebjbassi@gmail.com> | 2018-03-04 20:00:55 -0800 |
---|---|---|
committer | Caleb Bassi <calebjbassi@gmail.com> | 2018-03-04 20:00:55 -0800 |
commit | 79bb19049429c5dc540d03e4e1664be079863f9c (patch) | |
tree | be203724485676a7971f49821d3ca6bbb7b54862 | |
parent | 5a28dd46a5db3615846fe2668fc93e3f86e8c021 (diff) |
Updated keybinds in README and help widget
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | widgets/help.go | 24 |
2 files changed, 16 insertions, 16 deletions
@@ -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 { |