Skip to content

Commit

Permalink
Show entry key in detailed info
Browse files Browse the repository at this point in the history
  • Loading branch information
cgxeiji committed Nov 3, 2018
1 parent 221bc79 commit 318c44a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scholar/cmd/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,9 @@ func formatEntry(entry *scholar.Entry, width int) string {
}

func formatEntryInfo(w io.Writer, e *scholar.Entry) {
fmt.Fprintf(w, "\033[32;7m[%s]\033[0m\n",
strings.ToTitle(e.Type))
fmt.Fprintf(w, "\033[32;7m[%s]\033[0m \033[31;4m%s\033[0m\n",
strings.ToTitle(e.Type),
e.GetKey())
fmt.Fprintf(w, "Title:\n \033[32;1m%s\033[0m\n",
e.Required["title"])
aus := strings.Split(e.Required["author"], " and ")
Expand Down

0 comments on commit 318c44a

Please sign in to comment.