save new note; prompt a little unclear
poulpoulsen opened this issue · 6 comments
hello,
if i want to save a new note,the prompt shows my home directory ~, but it is saved inside zk-directory, if i only push RET.
that is a little bit unclear. usually the prompt shows the directory i complete or i am in.
is this the correct behavior?
Regards
poul
Hi Poul,
Sorry, but it's not exactly clear what you're referring to when you say 'the prompt'. Could you list the sequence of steps that lead to this behavior?
I only ask because the typical way of creating a new note,zk-new-note
, should save the new file automatically, without prompting.
hello,
yes you are right:
"I only ask because the typical way of creating a new note,zk-new-note, should save the new file automatically, without prompting.
"
i will describe what i have done:
M-x zk-new-note
Note title "Test"
Link at point Yes
add newline Yes
then the prompt for save the file:
see picture.
file:///home/held/Bilder/Bildschirmfoto%20vom%202022-03-09%2019-30-58.jpg
hope it helps
Regards
Poul
the prompt shows, that i'm in my home directory.
Ah! The problem is that zk-new-note
is trying to save the buffer where the link is inserted, but you're in the scratch buffer, which is not a saved file. So the prompt is Emacs asking where you want to save the scratch buffer.
I've pushed a fix so this won't happen. Let me know if it works.
Wonderful !
first check seems to be working great.
Thanks very much
Regards
Poul