Skip to content

Commit

Permalink
Show current library name
Browse files Browse the repository at this point in the history
  • Loading branch information
cgxeiji committed Nov 2, 2018
1 parent 4c39b71 commit 0014e3f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scholar/cmd/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ func gui(entries []*scholar.Entry, search string) {
if err != gocui.ErrUnknownView {
return err
}
v.Title = "ENTRIES"
l := viper.GetString("GENERAL.default")
if currentLibrary != "" {
l = currentLibrary
}
v.Title = fmt.Sprintf("ENTRIES:%s", strings.ToTitle(l))
v.Editable = true
v.Highlight = true
v.SelBgColor = gocui.ColorGreen
Expand Down

0 comments on commit 0014e3f

Please sign in to comment.