https://www.dendron.so/ logo
Join Discord
Powered by
# chat
  • k

    kevins8

    08/17/2020, 5:21 AM
    global
  • i

    imalightbulb

    08/17/2020, 5:22 AM
    Like this?
  • k

    kevins8

    08/17/2020, 5:27 AM
    yep
  • i

    imalightbulb

    08/17/2020, 5:28 AM
    so i just go any .md file in vault, type
    todo
    and tab?
  • k

    kevins8

    08/17/2020, 5:28 AM
    type β€œto” and tab
  • i

    imalightbulb

    08/17/2020, 5:33 AM
    It doesn't work, anything wrong here?
  • k

    kevins8

    08/17/2020, 4:34 PM
    can i see the whole file? probably badly formed json would be my guess
  • u

    user

    08/17/2020, 5:31 PM
    I think I see the problem: the snippet is outside of the first brackets
  • u

    user

    08/17/2020, 5:32 PM
    @User move the snippet up so it's inside of the first set of brackets, then it should work
  • a

    Aum

    08/17/2020, 6:03 PM
    Hi all. @User am trying to replicate your journal snippet, I am having trouble making a multi-line string as the body text, any hint?
  • a

    Aum

    08/17/2020, 6:03 PM
    Copy code
    "daily.journal": {
        "prefix": "dj",
        "scope": "markdown",
        "body": |\n
      #Journal\n
      \n    
      ## Thoughts\n
      \n
      ## Mantra\n
      \n
      ## Grateful\n
      \n
      ## Great\n
      \n
      ## Events\n
      \n
      ## Plus\n
      \n
      ## Minus\n
      \n
      ## Next\n
      
        ,
        "description": "journal template"
      }
  • a

    Aum

    08/17/2020, 6:03 PM
    this (my attempt) is not working
  • k

    kevins8

    08/17/2020, 6:04 PM
    close. vscode wants you to use list syntax for multi line strings
    Copy code
    "daily.journal": {
        "prefix": "daily.journal",
        "body": [
          "",
          "## Thoughts",
          "",
          "## Mantra",
          "",
          "## Grateful",
          "",
          "## Tasks",
          "",
          "---",
          "",
          "## Events",
          "",
          "## Plus",
          "",
          "## Minus",
          "",
          "## Next"
        ],
        "description": ""
      },
  • a

    Aum

    08/17/2020, 6:05 PM
    awesome, works!
  • k

    kevins8

    08/17/2020, 6:07 PM
    working on an extension to help write snippets based on a text selection. that should make these things easier in the future πŸ™‚
  • a

    Aum

    08/17/2020, 6:22 PM
    @User thanks! out of curiosity: how do you use the plus, minus and next sections?
  • k

    kevins8

    08/17/2020, 6:22 PM
    plus: things that went well, minus: things that did not, next: things to do next
  • a

    Aum

    08/17/2020, 6:23 PM
    thanks
  • a

    Aum

    08/17/2020, 6:34 PM
    Is there a way to make the journal command (CMD+SHIFT+J) use
    journal.template.daily
    ?
  • a

    Aum

    08/17/2020, 6:39 PM
    (not really necessary with such an easy snippet function but thought I'd ask anyway)
  • k

    kevins8

    08/17/2020, 6:42 PM
    dendron supports
    schema templates
    which let you apply templates to newly created notes
  • k

    kevins8

    08/17/2020, 6:42 PM
    https://www.dendron.so/notes/c5e5adde-5459-409b-b34d-a0d75cbb1052.html#template
  • k

    kevins8

    08/17/2020, 6:43 PM
    unfortunately, it would be difficult to create the schema for daily journals because of the limited expressivity of schemas right now
  • k

    kevins8

    08/17/2020, 6:43 PM
    in the future, you would be able to support this with the following schema
    Copy code
    - id: daily
      title: daily
      desc: ""
      parent: root
      children:
        - journal
    - id: journal
      children:
        - year
    - id: year
      pattern: "[02][0-9][0-9][0-9]"
      children:
        - month
    - id: month
      pattern: "[0-3][0-9]"
      children:
        - day
    - id: day
      pattern: "[0-3][0-9]"
      template: "journal.template.daily"
  • u

    user

    08/18/2020, 1:57 AM
    I had an awesome idea.
  • u

    user

    08/18/2020, 1:58 AM
    What about we make this project some command to build an jekyll or gatsby website?
  • u

    user

    08/18/2020, 1:59 AM
    In gatsbu we can use the wide used theme called theme-brain to make everything easy.
  • i

    imalightbulb

    08/18/2020, 1:59 AM
    making it an local app @User ? I don't know much about jekyll and gastby πŸ˜…
  • u

    user

    08/18/2020, 2:00 AM
    They build local but we can put it in to the github pages.
  • i

    imalightbulb

    08/18/2020, 2:00 AM
    making dendron an React app?
1...8910...148Latest