updated notes to close on empty value (i.e. ESC)

This commit is contained in:
Paul Wilde 2022-05-03 21:53:29 +01:00
parent b42df0a6fe
commit d0624471e0

View file

@ -5,7 +5,7 @@ proc start_notes()
const all_choices = @["exit"] const all_choices = @["exit"]
const note_choices = @["rm","back"] const note_choices = @["rm","back"]
const note_file = getHomeDir() & ".notes.dmenu" const note_file = getHomeDir() & "Nextcloud/.notes.dmenu"
proc read_notes(): seq[string] = proc read_notes(): seq[string] =
try: try:
@ -88,7 +88,7 @@ proc start_notes() =
return return
if option in notes: if option in notes:
display_option_menu(option) display_option_menu(option)
else: elif option != "":
write_note(option) write_note(option)
start_notes() start_notes()