I noticed a difference in the frontmatter for a jo...
# questions
b
I noticed a difference in the frontmatter for a journal note depending on how I create it - using the new journal command (ctrl+shift+j) adds the full date as title as well as adding a trait entry - creating it using lookup doesn't add the trait and also just adds the day as title Is this something in my config or does something different happen in these cases? I noticed since I sometimes create journal notes for future days.
k
hmm, there shouldn't be a difference since the journal note command just uses the journal note in the background
Copy code
{
        "command": "dendron.lookupJournalNote",
        "key": "ctrl+shift+j",
        "mac": "cmd+shift+j",
        "args": {
          "noteType": "journal"
        },
        "when": "dendron:pluginActive"
      },
are you talking about using the
create daily journal note
vs using lookup?
b
Yes exactly
k
can you confirm your journal format in
dendron.yml
? currently we only support the title overwrite for
y.MM.dd
setting
Copy code
yml
    journal:
        dailyDomain: daily
        name: journal
        dateFormat: y.MM.dd
        addBehavior: childOfDomainNamespace
b
I'm pretty sure it is but let me check and see if I can reproduce in a fresh workspace
OK I can reproduce. here are the steps I took:
- Initialize a new workspace
- Create a new daily journal note. I tested both with the shortcut
ctrl-shift-i
and with the command
Create Daily Journal Note
This creates a new daily note with this frontmatter
Copy code
id: nxLJRRvAYJh5dX2mtmj7Y
title: '2022-02-01'
desc: ''
updated: 1643744888344
created: 1643744888344
traitIds:
  - journalNote
Then I do a lookup for
daily.journal.2022.02.02
and create a new note.
This creates a note wit hthis frontmatter
Copy code
id: 7IHhHk1fLk8PITfCzD4BG
title: '02'
desc: ''
updated: 1643744647012
created: 1643744647012
And interestingly if I use
Ctrl-Shift-j
to create a note it has this frontmatter
Copy code
id: UUDvruacLmkg1ojRhUNYT
title: '2022-02-01'
desc: ''
updated: 1643745128268
created: 1643745128268
i.e. without the
traitsId
Dendron.yml
is unchanged and has the settings you mention
This all is on Windows but I first noticed it at work using a Mac
k
ah, can repro. mind submitting a bug report? will make sure we prioritize this!
b
Sure will do but only tomorrow and it's not a deal breaker in any way.
4 Views