summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Bassi <calebjbassi@gmail.com>2018-02-22 14:51:33 -0800
committerCaleb Bassi <calebjbassi@gmail.com>2018-02-22 14:51:33 -0800
commitc716a843923a4b87df40c0dbd8d9d7828dc9111c (patch)
tree767421c2a961c84b78f8e425b6747c13068fe199
parentd2ecb1cef6a0c3bc549f1fcae20efc4fb16ad7c9 (diff)
Removed extra keybinds from README and help widget
-rw-r--r--README.md1
-rw-r--r--widgets/help.go4
2 files changed, 1 insertions, 4 deletions
diff --git a/README.md b/README.md
index 76c3458..6e8c829 100644
--- a/README.md
+++ b/README.md
@@ -48,7 +48,6 @@ go get github.com/cjbassi/gotop
* `p`: PID
* `<tab>`: toggle process grouping
* `dd`: kill the selected process or process group
-* `<left>`/`<right>` and `h`/`l`: zoom in and out of graphs
* `?`: toggles keybind help menu
diff --git a/widgets/help.go b/widgets/help.go
index 1ab09c2..eeb29e1 100644
--- a/widgets/help.go
+++ b/widgets/help.go
@@ -22,8 +22,6 @@ Process Sorting:
'<tab>': toggle process grouping
'dd': kill the selected process or process group
-'<left>'/'<right>' and 'h'/'l': ...
-'u': update gotop
`
type HelpMenu struct {
@@ -33,7 +31,7 @@ type HelpMenu struct {
func NewHelpMenu() *HelpMenu {
block := *ui.NewBlock()
block.X = 48
- block.Y = 17
+ block.Y = 15
block.XOffset = (ui.Body.Width - block.X) / 2
block.YOffset = (ui.Body.Height - block.Y) / 2
// block.XOffset = ui.Body.Width - 50