Skip to content

Commit

Permalink
Changes keys bindings (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
slash-cyberpunk authored and wagoodman committed Oct 30, 2018
1 parent e7a05d4 commit c4bb987
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/statusview.go
Expand Up @@ -76,6 +76,6 @@ func (view *StatusView) Render() error {
// KeyHelp indicates all the possible global actions a user can take when any pane is selected.
func (view *StatusView) KeyHelp() string {
return renderStatusOption("^C", "Quit", false) +
renderStatusOption("^Space", "Switch view", false) +
renderStatusOption("^/", "Filter files", Views.Filter.IsVisible())
renderStatusOption("^Space or TAB", "Switch view", false) +
renderStatusOption("^/ or ^F", "Filter files", Views.Filter.IsVisible())
}
6 changes: 6 additions & 0 deletions ui/ui.go
Expand Up @@ -149,9 +149,15 @@ func keyBindings(g *gocui.Gui) error {
if err := g.SetKeybinding("", gocui.KeyCtrlSpace, gocui.ModNone, toggleView); err != nil {
return err
}
if err := g.SetKeybinding("", gocui.KeyTab, gocui.ModNone, toggleView); err != nil {
return err
}
if err := g.SetKeybinding("", gocui.KeyCtrlSlash, gocui.ModNone, toggleFilterView); err != nil {
return err
}
if err := g.SetKeybinding("", gocui.KeyCtrlF, gocui.ModNone, toggleFilterView); err != nil {
return err
}

return nil
}
Expand Down

0 comments on commit c4bb987

Please sign in to comment.