diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-13 17:55:55 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-13 17:55:55 +0200 |
commit | f8b0b4f53009364b74efdc4880acb25ffbfc2cf0 (patch) | |
tree | 9c0fa279e351e2982ee94817fb3fd9ce4d3b7cc2 /termui | |
parent | bf11c08f5ad0894e494228c312235d674b58af6a (diff) | |
download | git-bug-f8b0b4f53009364b74efdc4880acb25ffbfc2cf0.tar.gz |
termui: use 'q' for quit and 's' for search
Diffstat (limited to 'termui')
-rw-r--r-- | termui/bug_table.go | 6 |
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 } |