Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
cgxeiji committed Nov 1, 2018
1 parent 0cfdce8 commit 1bdeb77
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions scholar/cmd/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func layout(g *gocui.Gui) error {
if err != gocui.ErrUnknownView {
return err
}
v.Title = "Entries"
v.Title = "ENTRIES"
v.Editable = true
v.Highlight = true
v.SelBgColor = gocui.ColorGreen
Expand Down Expand Up @@ -312,7 +312,7 @@ func layout(g *gocui.Gui) error {
if err != gocui.ErrUnknownView {
return err
}
v.Title = "Details"
v.Title = "DETAILS"
v.Wrap = true
fmt.Fprint(v, showList[0].Bib())
}
Expand Down Expand Up @@ -346,13 +346,6 @@ func formatEntry(entry *scholar.Entry) string {
entry.Required["author"])
}

func selectedEntry(entry *scholar.Entry) string {
return fmt.Sprintf("\033[32;3m%-40.40s \033[33;3m(%-4.4s) \033[31;3m%-20.20s\033[0m\n",
entry.Required["title"],
entry.Required["date"],
entry.Required["author"])
}

func quit(g *gocui.Gui, v *gocui.View) error {
return gocui.ErrQuit
}
Expand Down

0 comments on commit 1bdeb77

Please sign in to comment.