Add feed description view (#12)

with colors!
This commit is contained in:
Dave Gallant
2020-07-03 23:25:48 -04:00
committed by GitHub
parent 85bf323fe8
commit afbfa53ae6
8 changed files with 99 additions and 21 deletions

View File

@@ -30,9 +30,17 @@ func scroll(g *gocui.Gui, v *gocui.View, direction int) error {
}
func cursorDown(g *gocui.Gui, v *gocui.View) error {
return scroll(g, v, 1)
err := scroll(g, v, 1)
if g.CurrentView().Title == "Items" {
displayDescription(g, v)
}
return err
}
func cursorUp(g *gocui.Gui, v *gocui.View) error {
return scroll(g, v, -1)
err := scroll(g, v, -1)
if g.CurrentView().Title == "Items" {
displayDescription(g, v)
}
return err
}