https://www.dendron.so/ logo
Join Discord
Powered by
# questions
  • r

    rgood

    12/21/2021, 3:22 AM
    I think this you need to change in the template. The above template has the "children:" field, I believe this is what you need to modify. Assuming you are using the above template, "daily" and "journal" entries need to be swapped to achieve what you are looking for.
  • c

    cconrad

    12/21/2021, 11:44 AM
    > You can add an optional language identifier to enable syntax highlighting in your fenced code block. Is there a list of these language identifiers somewhere?
  • w

    wutanc

    12/21/2021, 1:12 PM
    that was what I was trying :/ But when doing so
    Dendron -> Create daily journal
    still remained as daily.journal.y.MM.dd
  • w

    wutanc

    12/21/2021, 1:19 PM
    When I create a daily.schema.yml and put the following in it it works as expected, I get the template, but it's named daily.journal.2021.12.21.yml
    Copy code
    yml
    version: 1
    schemas:
      - id: daily
        title: daily
        desc: ""
        parent: root
        children:
          - journal
      - id: journal
        title: journal
        desc: ""
        parent: root
        children:
          - year
      - id: year
        title: year
        pattern: "[0-2][0-9][0-9][0-9]"
        children:
          - month
      - id: month
        title: month
        pattern: "[0-9][0-9]"
        children:
          - day
      - id: day
        title: day
        pattern: "[0-9][0-9]"
        template: templates.daily
  • w

    wutanc

    12/21/2021, 1:19 PM
    But when changing the file into below, the template stopes working and the file is still named daily.journal.2021.12.21
    Copy code
    yml
    version: 1
    schemas:
      - id: journal
        title: journal
        desc: ""
        parent: root
        children:
          - daily
      - id: daily
        title: daily
        desc: ""
        parent: root
        children:
          - year
      - id: year
        title: year
        pattern: "[0-2][0-9][0-9][0-9]"
        children:
          - month
      - id: month
        title: month
        pattern: "[0-9][0-9]"
        children:
          - day
      - id: day
        title: day
        pattern: "[0-9][0-9]"
        template: templates.daily
  • w

    wutanc

    12/21/2021, 1:22 PM
    I'm guessing I fundamentally misunderstanding something here. How does the
    Dendron -> Create Daily Journal
    know it should pick up the daily.schema.yml file? does it go by the
    daily
    id?
  • r

    rgood

    12/21/2021, 2:31 PM
    I don't know how Dendron does it's magic. Possibly the file name is the problem. I have my schema named "journal.schema.yml", my template is journal.template.daily, and my schema is just like your second one, but I don't have the "daily" in there. I get this to work as journal.yyyy.mm.dd, which is what I wanted. You could try renaming the schema file to journal.daily.schema.yml or something like that.
  • w

    wutanc

    12/21/2021, 2:38 PM
    @User Right, but I'm specifically talking about the shortcut "Create Daily Journal" Creating a note with cmd+L works just fine
  • r

    rgood

    12/21/2021, 2:39 PM
    Yep, I use Ctrl + Shift + J for this, but it's the same command
  • w

    wutanc

    12/21/2021, 2:40 PM
    @User right, so the Lookup menu does work as expected. But not the "Create Daily Journal shortcut
  • r

    rgood

    12/21/2021, 2:43 PM
    I guess I'm just satisfied that I have the behavior I was looking for. I get different behavior for Ctrl + L than I do for Ctrl + Shift + J. I don't think I'm of much help to you here as I don't understand enough of your issue, nor a lot about Dendron. I've been using it for a few months now and I have it working for me in a way I'm happy with.
  • r

    rgood

    12/21/2021, 2:43 PM
    Good luck
  • w

    wutanc

    12/21/2021, 2:45 PM
    @User I'm very new to dendron so I might just be missing something obvious as well. I'll keep playing with it and see what it gets me
  • r

    rgood

    12/21/2021, 2:46 PM
    It very well may be that the "daily journal" command always creates a daily.journal.... file.
  • w

    wutanc

    12/21/2021, 2:46 PM
    I guess my main question is. How do you create a new journey note for a specific date, without having to type out the entire date
  • w

    wutanc

    12/21/2021, 2:46 PM
    what I found convenient with the daily journal was that it'll type that out for you. Instead of you having to type it all out
  • r

    rgood

    12/21/2021, 2:47 PM
    That should work with the template and schema from above. Mine does fill out all of the above. I just press the keys shortcuts and press enter, dendron fills out the note name for me every time
  • r

    rgood

    12/21/2021, 2:48 PM
    Try cmd+shift+J
  • w

    wutanc

    12/21/2021, 2:56 PM
    That seems to be dependent on where in the tree view I'm at? and only gives me a journal.2021.12.21 instead of a journal.daily.2021.12.21
    r
    k
    • 3
    • 8
  • w

    wutanc

    12/21/2021, 2:56 PM
    I'm so confused 😄
  • k

    kevins8

    12/21/2021, 3:13 PM
    we use https://prismjs.com/ for syntax highlighting. you should see identifiers there
  • k

    kevins8

    12/21/2021, 3:14 PM
    daily-journal customization
  • u

    user

    12/21/2021, 3:31 PM
    Default setting for pasteImage.path is:
    "pasteImage.path": "${currentFileDir}/assets/images",
    It forces having image names unique in the entire vault, what do you think about default template to be:
    "pasteImage.path": "${currentFileDir}/assets/images/${currentFileNameWithoutExt}",
    (I know you don't like folders though :D) Other option is to have prefix appended to an image file (pasteImage supports it), but then in textbox while saving full name the prefix is also shown/editable which for me is annoying as I have to edit only 2nd part.. hmm any other ideas?
  • k

    kevins8

    12/21/2021, 3:54 PM
    haha, folders have their place. but as an implementation detail 🙂 for images, we actually want to move to just having a guid, the name being an implementation detail. we are also adding file links and file references to make it easier to refactor/update: https://wiki.dendron.so/notes/3472226a-ff3c-432d-bf5d-10926f39f6c2.html#file-links
  • l

    l2dy

    12/21/2021, 5:05 PM
    Is this a validator problem or a useless property?
  • k

    kevins8

    12/21/2021, 5:06 PM
    validator issue, we will fix it in today's release
  • u

    user

    12/21/2021, 6:51 PM
    I understand that the note hierarchy is created with dots, but for templates and schema files, is possible to have it own folders? similar to assets?
  • s

    SeriousBug

    12/21/2021, 6:53 PM
    Not exactly, but you could create a separate vault just for templates and schemas. They will continue to apply to notes from all vaults.
  • u

    user

    12/21/2021, 6:56 PM
    wait, so does that means template.memo.md and memo.schema.yml will conflict if exist in more than one vault?
  • s

    SeriousBug

    12/21/2021, 6:59 PM
    No, schemas with the same name in different vaults are separate and will not conflict. Dendron keeps track of which vault they came from, but as far as I know they (can) apply to notes in all vaults.
1...475476477...757Latest