From fbda59e64854b3ea72679120637b92286dcf00d2 Mon Sep 17 00:00:00 2001 From: Sina Siadat Date: Thu, 7 May 2015 19:28:01 +0430 Subject: [PATCH] cmdLs output format changed from ID:XX to [XX] --- README.md | 3 +++ models.attr.go | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a8aa305..eb1532c 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,9 @@ eton -h # quick add eton new '[ ] do something' +# create a new note and open $EDITOR to edit it +eton new + # edit the last item eton edit diff --git a/models.attr.go b/models.attr.go index cf1921f..1569148 100644 --- a/models.attr.go +++ b/models.attr.go @@ -223,9 +223,9 @@ func (attr Attr) Print(w *tabwriter.Writer, verbose bool, indent int, highlighte //fmt.Printf(strings.Repeat(" ", indent)) 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 { - 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 { fmt.Println(attr.PrettyMatches(highlighteds, after))