cmdLs output format changed from ID:XX to [XX]

master
Sina Siadat 9 years ago
parent b2612b4f0c
commit fbda59e648

@ -15,6 +15,9 @@ eton -h
# quick add # quick add
eton new '[ ] do something' eton new '[ ] do something'
# create a new note and open $EDITOR to edit it
eton new
# edit the last item # edit the last item
eton edit eton edit

@ -223,9 +223,9 @@ func (attr Attr) Print(w *tabwriter.Writer, verbose bool, indent int, highlighte
//fmt.Printf(strings.Repeat(" ", indent)) //fmt.Printf(strings.Repeat(" ", indent))
if attr.GetMark() == 0 { if attr.GetMark() == 0 {
fmt.Printf("%s%s %s\n", Color("ID:", "default"), Color(attr.GetIdentifier(), "yellow+b"), attr.Title()) fmt.Printf("[%s] %s\n", Color(attr.GetIdentifier(), "yellow+b"), attr.Title())
} else { } else {
fmt.Printf("%s%s %s\n", Color("ID:", "black:white"), Color(attr.GetIdentifier(), "black+b:white"), Color(attr.Title(), "default")) fmt.Printf("[%s] %s\n", Color(attr.GetIdentifier(), "black+b:white"), Color(attr.Title(), "default"))
} }
if len(highlighteds) > 0 { if len(highlighteds) > 0 {
fmt.Println(attr.PrettyMatches(highlighteds, after)) fmt.Println(attr.PrettyMatches(highlighteds, after))

Loading…
Cancel
Save