-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Journal Entry Script Inserts Wrong File Name (eg. Note 12a742c7-e7e8-4e88-95ee-cca2ecb0b274) #132
Comments
@patrickbolle, you didn't share your settings. Are you using the settings where you can change the filename of the notes? Seems like this script lacks what I did in 6fa8cf0. |
@patrickbolle, I blindly tried to fix your issue. Can you please test the new version of the script. |
I will close this issue until there is more information. |
It's always been like this for me:
|
@sanderboom, are you using the |
Ah, I see it now - so probably this is the reason/difference ✔️ |
Yes, it is. 😅 |
The current version of the script should be able to handle this. |
I guess this can be closed? |
Script name
Journal entry
Expected behaviour
I believe the intent of the script is to create a new note in a specified folder with the default file name of:
"Journal " + m.getFullYear() + ("0" + (m.getMonth()+1)).slice(-2) + ("0" + m.getDate()).slice(-2);
eg. Journal 20210919
Actual behaviour
What happens when I click the New Journal Entry button in the Qownnotes interface is, a new journal file is created, but without the "Journal 20210919" name.
Instead, a new note is created with the file name of:
Note 12a742c7-e7e8-4e88-95ee-cca2ecb0b274
etc. etc.
Steps to reproduce
Output from the debug section in the settings dialog
Relevant log output in the Log panel
[12:05:13] [scripting] creating new journal entry: Journal 20210919
[12:05:13] [scripting] Attempt: Jump to default folder 'Daily' before creating a new journal note.
[12:05:13] [scripting] Success: Jump to default folder 'Daily' before creating a new journal note.
[12:05:13] [status] Stored current note to disk
[12:05:13] [scripting] Tag the new journal note with default tag: journal
[12:05:18] [status] Stored 1 note(s) to disk
Any ideas here?
The text was updated successfully, but these errors were encountered: