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

    Slaytanical(LamentConfiguration)

    06/08/2022, 2:11 AM
    nothing then really, was just looking for nice hilighting because that's something i've found so key to my ability to do things well.
  • s

    Slaytanical(LamentConfiguration)

    06/08/2022, 2:11 AM
    ty
  • x

    Xanaus

    06/08/2022, 4:19 AM
    So I am trying to create a custom frontmatter with the help of the template (in the schema). Can someone help me ? How do i do this I know I am doing it wrong? My Query is that : 1. when trying to customise the frontmatter using the template how shouid i add this custom lines so that with every new note being created the custom frontmatter should be made
  • x

    Xanaus

    06/08/2022, 4:21 AM
    This how I would Like my Frontmatter to look like for all my notes
  • h

    hikchoi

    06/08/2022, 4:36 AM
    root.schema.yml
    serves as the root of all schemas, but we currently don't support applying global schemas. You would have to create a separate schema for a specific hierarchy. Do you want this frontmatter to apply to every single note in your workspace?
  • x

    Xanaus

    06/08/2022, 4:37 AM
    Yes to every single note in this vault
  • h

    hikchoi

    06/08/2022, 4:39 AM
    do the notes in that vault share any single parent other than the root?
  • x

    Xanaus

    06/08/2022, 4:39 AM
    No
  • x

    Xanaus

    06/08/2022, 4:39 AM
    i will send you my tree pic
  • h

    hikchoi

    06/08/2022, 4:40 AM
    sure. that would help a lot coming up with a schema that works for you.
  • x

    Xanaus

    06/08/2022, 4:42 AM
    I am using the library of congress to sort/classify my note so Like 'RG' there will be more additions as the days go by
  • h

    hikchoi

    06/08/2022, 4:45 AM
    I would have a single parent for all notes that you want to have the template applied. just guessing here, but I'm assuming you wouldn't want the templates applied to anything under
    tags.*
    ,
    templates.*
    ,
    Things-to-link-afterwards
    and so on.
  • x

    Xanaus

    06/08/2022, 4:50 AM
    Yes
  • x

    Xanaus

    06/08/2022, 4:52 AM
    I was thinking of how to put 'tag, templates, Things-to-link-afterwards' under the folder asset or create a new one
  • h

    hikchoi

    06/08/2022, 5:03 AM
    This is a minimal structure I've come up that might work for you: content of `templates.preg.maternal-changes`:
    Copy code
    ---
    id: 0l1omgwyc3g4327nrv0ljju
    title: Maternal Changes
    desc: 'The physical changes manifested in the body of the mother in order to compansate for the increase demands duriing the pregnancy'
    classification:
      - '[[RG.551-591]]'
      - '[[RG.940-991]]'
    updated: 1654664260893
    created: 1654663967751
    ---
    content of `preg.schema.yml`:
    Copy code
    version: 1
    imports: []
    schemas:
      - id: preg
        children:
          - maternal-changes
        title: preg
        parent: root
      - id: maternal-changes
        template: templates.preg.maternal-changes
        namespace: true
    With this schema and tree structure, whenever you add a note under
    preg.maternal-changes.*
    , the template will be applied to that note.
  • h

    hikchoi

    06/08/2022, 5:08 AM
    This is deviating from your current structure where you have
    preg
    as a tag (though this would actually have to be under
    tags.preg
    to work as intended as a tag), because schemas become useful when you structure your notes in a hierarchical manner. Like I mentioned we currently don't support global schema behaviors so if you want to keep your flat structure, you would need to use the
    Apply Template
    command on each note.
  • x

    Xanaus

    06/08/2022, 6:32 AM
    Ok i will tweak it a bit but mostly follow what u said will get back to u once I am done
  • x

    Xanaus

    06/08/2022, 6:42 AM
    I have a question is it possible to use handlebar to accomplish this global schema setup?
  • h

    hikchoi

    06/08/2022, 6:48 AM
    Handlebar handles everything related to resolving expressions within a template when the template is applied. Handlebar doesn't handle where / when the template is applied. The mechanism for applying the template will still be the same (using the
    Apply Template
    command, or specifying a template in the schema).
  • x

    Xanaus

    06/08/2022, 6:54 AM
    Is there a way to make sure that all new notes keep eg:
    Preg
    as the parent note instead of the
    ROOT
    ?
  • h

    hikchoi

    06/08/2022, 6:58 AM
    There isn't a way to ensure that, but you can modify the keybinding for lookup note to alway pre-fill the value you choose as a default.
  • h

    hikchoi

    06/08/2022, 6:59 AM
    in `keybindings.json`:
    Copy code
    ...
        {
            "command": "dendron.lookupNote",
            "key": "cmd+l", // any key combination of your choice
            "args": {
                "initialValue": "preg",
            }
        }
  • x

    Xanaus

    06/08/2022, 7:56 AM
    When the template is being applied the emojies are not being applied correctly
  • h

    hikchoi

    06/08/2022, 7:58 AM
    Yes, this is a known issue. emojis are not preserved when yaml (frontmatter) is resolved. see: https://github.com/dendronhq/dendron/issues/3055
  • g

    Gander7

    06/08/2022, 11:54 AM
    Is there a supported use case for Dendron as codespace docs? I'd like to have a docs folder in our repo and then be able to publish from that folder on deployment. Would we be able to have the entire project in dendron or would we have to just open the docs folder (which I'm assuming would be a vault). Any best practices or published workflows? I haven't been able to find any.
  • a

    andrey-jef

    06/08/2022, 12:03 PM
    can I use template variable in frontmatter? I want all my notes'
    title
    (in frontmatter) will have form
    research YYYY-MM-DD
  • h

    hikchoi

    06/08/2022, 1:46 PM
    The monorepo for Dendron actually has a Dendron workspace in the
    docs
    directory See: https://github.com/dendronhq/dendron/tree/master/docs
  • h

    hikchoi

    06/08/2022, 1:48 PM
    We don't directly publish from here at the moment but it should be possible with Github workflows.
  • a

    awaydiscordthrow

    06/08/2022, 2:01 PM
    What is the easiest way to export a group of linked notes as linked html files? I've tried following the guides in the documentation but I kept getting errors and it's too technical for me.
  • h

    hikchoi

    06/08/2022, 2:05 PM
    We recently introduced handlebars support for templates but unfortunately we don't currently support variable substitution in frontmatter I believe. (Correct me if I'm wrong @kevins8) You can however create a custom note trait and specify an
    OnCreate
    behavior to set the title. You can write plain javascript to customize what the note title will be on creation with note traits. See: https://wiki.dendron.so/notes/bdZhT3nF8Yz3WDzKp7hqh/
1...652653654...757Latest