summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorskanehira <sho19921005@gmail.com>2019-10-25 09:41:37 +0900
committerskanehira <sho19921005@gmail.com>2019-10-25 09:41:37 +0900
commiteb083ab12503efb3ccc12c06f2f448ae8c1f2b21 (patch)
treec8f8d2b4ff4e74d1e5ef0a5597292c135c51cb47
parent613a70f163480dcac87db0c46bad236614d471bf (diff)
no wrap words
-rw-r--r--README.md24
-rw-r--r--gui/help.go4
-rw-r--r--gui/processEnv.go1
-rw-r--r--gui/processInfo.go1
4 files changed, 17 insertions, 13 deletions
diff --git a/README.md b/README.md
index 125e839..b6a4457 100644
--- a/README.md
+++ b/README.md
@@ -48,17 +48,19 @@ Default, log file will generate `$HOME/pst.log` if it's not exist.
## Keybindings
### common keybindings
-| key | description |
-|-------------|------------------------|
-| Ctrl + c | stop pst |
-| j | next entry or line |
-| k | previous entry or line |
-| g | first entry or line |
-| G | last entry or line |
-| Ctrl + f | next page |
-| Ctrl + b | previous page |
-| Tab | focus next panel |
-| Shift + Tab | focus previous panel |
+| key | description |
+|-------------|----------------------|
+| Ctrl + c | stop pst |
+| j | move down |
+| k | move up |
+| h | move left |
+| l | move right |
+| g | move to top |
+| G | move to bottom |
+| Ctrl + f | next page |
+| Ctrl + b | previous page |
+| Tab | focus next panel |
+| Shift + Tab | focus previous panel |
### input
| key | description |
diff --git a/gui/help.go b/gui/help.go
index 83c8c7a..912b67b 100644
--- a/gui/help.go
+++ b/gui/help.go
@@ -22,7 +22,7 @@ func (n *NaviView) UpdateView(g *Gui) {
g.App.QueueUpdateDraw(func() {
switch g.CurrentPanelKind() {
case InputPanel:
- n.SetText(fmt.Sprintf("%s, %s", moveNavi, switchNavi))
+ n.SetText(fmt.Sprintf("%s", switchNavi))
case ProcessesPanel:
n.SetText(fmt.Sprintf("%s, %s, %s", moveNavi, switchNavi, helps[ProcessesPanel]))
case ProcessInfoPanel:
@@ -40,7 +40,7 @@ func (n *NaviView) UpdateView(g *Gui) {
}
var (
- moveNavi = "[red::b]j[white]: move down, [red]k[white]: move up, [red]g[white]: move to top, [red]G[white]: move to bottom, [red]Ctrl-f[white]: next page [red]Ctrl-b[white]: previous page, [red]Ctrl-c[white]: stop pst"
+ moveNavi = "[red::b]j[white]: move down, [red]k[white]: move up, [red]h[white]: move left, [red]l[white]: move right, [red]g[white]: move to top, [red]G[white]: move to bottom, [red]Ctrl-f[white]: next page [red]Ctrl-b[white]: previous page, [red]Ctrl-c[white]: stop pst"
switchNavi = `[red::b]Tab[white]: next panel, [red]Shift-Tab[white]: previous panel`
)
diff --git a/gui/processEnv.go b/gui/processEnv.go
index 317982a..f0286e8 100644
--- a/gui/processEnv.go
+++ b/gui/processEnv.go
@@ -14,6 +14,7 @@ func NewProcessEnvView() *ProcessEnvView {
}
p.SetTitleAlign(tview.AlignLeft).SetTitle("process environments").SetBorder(true)
+ p.SetWrap(false)
return p
}
diff --git a/gui/processInfo.go b/gui/processInfo.go
index 241e403..d97a585 100644
--- a/gui/processInfo.go
+++ b/gui/processInfo.go
@@ -16,6 +16,7 @@ func NewProcessInfoView() *ProcessInfoView {
TextView: tview.NewTextView().SetTextAlign(tview.AlignLeft).SetDynamicColors(true),
}
p.SetTitleAlign(tview.AlignLeft).SetTitle("process info").SetBorder(true)
+ p.SetWrap(false)
return p
}