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