updated notes to close on empty value (i.e. ESC)
This commit is contained in:
parent
b42df0a6fe
commit
d0624471e0
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue