diff options
author | Will Murphy <willmurphyscode@gmail.com> | 2018-06-23 19:31:57 -0400 |
---|---|---|
committer | Will Murphy <willmurphyscode@gmail.com> | 2018-06-23 19:31:57 -0400 |
commit | 348e88e70bb4bba614feeb33534de901ca3a3b9e (patch) | |
tree | 15989921112c14d8da59d52cfbcd7fb6beaa1b6f /ui/statusview.go | |
parent | 90c86234c4a99e2a36ce000a8ffde3c293c5f2fa (diff) |
start adding search bar
Diffstat (limited to 'ui/statusview.go')
-rw-r--r-- | ui/statusview.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/statusview.go b/ui/statusview.go index 719d097..b661810 100644 --- a/ui/statusview.go +++ b/ui/statusview.go @@ -3,8 +3,8 @@ package ui import ( "fmt" - "github.com/jroimartin/gocui" "github.com/fatih/color" + "github.com/jroimartin/gocui" ) type StatusView struct { @@ -43,7 +43,6 @@ func (view *StatusView) Setup(v *gocui.View) error { return nil } - func (view *StatusView) CursorDown() error { return nil } @@ -54,15 +53,16 @@ func (view *StatusView) CursorUp() error { func (view *StatusView) KeyHelp() string { control := color.New(color.Bold).SprintFunc() - return control("[^C]") + ": Quit " + - control("[^Space]") + ": Switch View " + return control("[^C]") + ": Quit " + + control("[^Space]") + ": Switch View " + + control("[^/]") + ": Filter files" } func (view *StatusView) Render() error { view.gui.Update(func(g *gocui.Gui) error { view.view.Clear() - fmt.Fprintln(view.view, view.KeyHelp() + " | " + Views.lookup[view.gui.CurrentView().Name()].KeyHelp()) + fmt.Fprintln(view.view, view.KeyHelp()+" | "+Views.lookup[view.gui.CurrentView().Name()].KeyHelp()) return nil }) |