Fix refresh and add install script (#17)
* Fix refresh bug * Add install script
This commit is contained in:
@@ -25,7 +25,7 @@ func keybindings(g *gocui.Gui) error {
|
||||
if err := g.SetKeybinding("Items", gocui.KeyEnter, gocui.ModNone, openItem); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := g.SetKeybinding("", gocui.KeyF5, gocui.ModNone, refreshFeeds); err != nil {
|
||||
if err := g.SetKeybinding("", gocui.KeyCtrlR, gocui.ModNone, refreshFeeds); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
@@ -76,7 +76,8 @@ func openItem(g *gocui.Gui, v *gocui.View) error {
|
||||
}
|
||||
|
||||
func refreshFeeds(g *gocui.Gui, v *gocui.View) error {
|
||||
Controller.Rss.Update(Controller.Config.Feeds)
|
||||
g.Close()
|
||||
Start()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user