aboutsummaryrefslogtreecommitdiffstats
path: root/termui
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-13 17:55:55 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-13 17:55:55 +0200
commitf8b0b4f53009364b74efdc4880acb25ffbfc2cf0 (patch)
tree9c0fa279e351e2982ee94817fb3fd9ce4d3b7cc2 /termui
parentbf11c08f5ad0894e494228c312235d674b58af6a (diff)
downloadgit-bug-f8b0b4f53009364b74efdc4880acb25ffbfc2cf0.tar.gz
termui: use 'q' for quit and 's' for search
Diffstat (limited to 'termui')
-rw-r--r--termui/bug_table.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/termui/bug_table.go b/termui/bug_table.go
index 5b25ce11..7cd3ba9a 100644
--- a/termui/bug_table.go
+++ b/termui/bug_table.go
@@ -120,7 +120,7 @@ func (bt *bugTable) layout(g *gocui.Gui) error {
v.Frame = false
v.BgColor = gocui.ColorBlue
- fmt.Fprintf(v, "[Esc] Quit [q] Query [←↓↑→,hjkl] Navigation [enter] Open bug [n] New bug [i] Pull [o] Push")
+ fmt.Fprintf(v, "[q] Quit [s] Search [←↓↑→,hjkl] Navigation [enter] Open bug [n] New bug [i] Pull [o] Push")
}
_, err = g.SetCurrentView(bugTableView)
@@ -129,7 +129,7 @@ func (bt *bugTable) layout(g *gocui.Gui) error {
func (bt *bugTable) keybindings(g *gocui.Gui) error {
// Quit
- if err := g.SetKeybinding(bugTableView, gocui.KeyEsc, gocui.ModNone, quit); err != nil {
+ if err := g.SetKeybinding(bugTableView, 'q', gocui.ModNone, quit); err != nil {
return err
}
@@ -204,7 +204,7 @@ func (bt *bugTable) keybindings(g *gocui.Gui) error {
}
// Query
- if err := g.SetKeybinding(bugTableView, 'q', gocui.ModNone,
+ if err := g.SetKeybinding(bugTableView, 's', gocui.ModNone,
bt.changeQuery); err != nil {
return err
}