~porcellis/t

75ab537bee753077c079a453a9367f6ef6da9c51 — Pedro Lucas Porcellis 5 months ago 11b2b73
Display the index to edit that note
1 files changed, 2 insertions(+), 2 deletions(-)

M commands/list.go
M commands/list.go => commands/list.go +2 -2
@@ 30,8 30,8 @@ func List(config config.TConfig) error {

	fmt.Println(Bold("\n \t Your notes\n\n"))

	for _, note := range notes {
		fmt.Printf("%s (%s)\n", Bold(note.Title()), Faint(note.UpdatedAt()).BrightYellow())
	for index, note := range notes {
		fmt.Printf("[#%d] %s (%s)\n", index, Bold(note.Title()), Faint(note.UpdatedAt()).BrightYellow())

		f, err := os.Open(note.Path)
		check(err)