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

    hikchoi

    04/26/2022, 11:57 AM
    We currently only support using the provided template variables listed here: https://wiki.dendron.so/notes/GelEQPZrSgr3CK9y10Nrg/#template-variables we don't allow arbitrary arithmetics because of security concerns. Some related feature requests: - https://github.com/dendronhq/dendron/issues/2241 - https://github.com/dendronhq/dendron/issues/2580 I'm realizing that something like
    <%= YESTERDAY %>
    would be generally useful. Do you mind creating a feature request or adding to the discussion in the listed issues?
  • a

    anonrunner

    04/26/2022, 11:59 AM
    Thank you Hikchoi. Unfortunatelly I don't have github.com account 😦
  • h

    hikchoi

    04/26/2022, 12:00 PM
    No worries. I'll add a note to the relevant issues.
  • a

    anonrunner

    04/26/2022, 12:00 PM
    Many thanks!
  • a

    anonrunner

    04/26/2022, 12:01 PM
    And in terms of Security concerns that you mentioned, out of curiosity, would you be more specific what risks do you see allowing some basic math on variables?
  • h

    hikchoi

    04/26/2022, 12:08 PM
    If we can limit the template resolution to a known set of safe expressions, it wouldn't be a problem. We briefly toyed with the idea of resolving inline javascript expressions (blanking on the exact detail on how much we allowed) which we reverted since that's definitely not safe. Due to bandwidth, we settled with just supporting a fixed number of variables at that time. We do have plans to revisit this in the future.
  • a

    anonrunner

    04/26/2022, 12:53 PM
    Thank you for the details! Wow, being able to have javascript flexibility in templates would push it to the next level. Maybe we could have it by enabling some secret variable? I wouldn't see much concern for solo users like myself, but it would be a great addition. I hope this will be revisited in the future. Many thanks for the details!
  • h

    hikchoi

    04/26/2022, 1:00 PM
    In the meantime, this is a bit more involved than adding template variables, but we have support for note lifecycle hooks: https://wiki.dendron.so/notes/12551d19-04c2-4d26-ac1e-d23ff3181a9c/ The example here goes over how to add a hook that moves all incomplete todo items when you create a new daily journal: https://wiki.dendron.so/notes/61055b5f-6216-4fd3-b9a1-82f79017b59e/
  • r

    RenStrike

    04/26/2022, 2:02 PM
    So, I've been writing my daily notes in OneNote, in a GIANT table, that just has a column for the date, and column for the note. Nothing else. What would be the fastest route to getting those notes generated into a list of notes in Dendron? I want to start creating a suite of tools that makes things like this easier for me (i.e. iterate through this kind of stuff and generate a dendron note/hierarchy out of them). Down the line it may be a folder structure, with some data in certain files that I want to pull from to add to notes. Stuff like that.
  • k

    kevins8

    04/26/2022, 3:49 PM
    we have a guide on migrating from one note: [OneNote](https://wiki.dendron.so/notes/f9b4fc21-7613-4c8a-9257-cec4c06b67f9) you can probably parse the output here to be one note per file easiest way to make this work is to just write the notes on disk (eg.
    daily.journal.{date}
    ) and then run [fixFrontmatter](https://wiki.dendron.so/notes/ZeC74FYVECsf9bpyngVMU) to auto-add the metadata
  • r

    RenStrike

    04/26/2022, 5:36 PM
    Thanks!
  • u

    user

    04/26/2022, 6:21 PM
    Hey there! I'd love to get started using Meeting notes, but I'd like them to be created as children of the current note. (projects.my-project.meeting1) Dendron Config lets me set up addBehavior for journal, scratch and task, but I don't see how to do that for meeting.
    k
    • 1
    • 2
  • r

    RenStrike

    04/26/2022, 7:51 PM
    I see from the Dendron CLI documentation that I can Query/Add a note. I'm likely just missing it, but I don't see how to append to an existing note. Is that possible? https://wiki.dendron.so/notes/RjBkTbGuKCXJNuE4dyV6G/ Also, how would I go about telling VSCode to submit my changes via CLI? That's probably separate from Dendron, right? Oh, also, do Dendron CLI changes to notes get marked as changed in source control? Thanks!
  • s

    SeriousBug

    04/26/2022, 7:57 PM
    You can append to a note just like any regular text file, you don't need the Dendron CLI for that. You also don't need to tell Dendron (or VSCode) that the note changed, it should automatically recognize the changes.
  • r

    RenStrike

    04/26/2022, 7:58 PM
    AH, that makes sense! Thank you!
  • b

    bradw

    04/27/2022, 2:06 AM
    Yep. That is exactly what I was doing. 😒 I worked it out through a process of elimination, by comparing with the existing working notes hierarchy. Thanks though.
  • j

    josh

    04/27/2022, 12:55 PM
    Hi, is it possible to publish vaults by themselves yet? I remember that it was on the roadmap earlier this year
  • a

    awlego

    04/27/2022, 1:26 PM
    Copy code
    version: 1
    schemas:
    - id: daily
      title: daily
      parent: root
      children:
        - journal
    - id: journal
      title: journal
      children:
        - day
    - id: day
      title: day
      namespace: true
      pattern: "[1-2][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]"
      template:
        id: daily.journal.template
        type: note
    Above is my
    daily.journal.schema.yml
    that lives in my dendron vault. I've edited my
    daily.journal.template.md
    file. On one computer the update works great, but on my other one, the new journal note command creates a note using my old schema, despite my
    daily.journal.template.md
    file being up to date. Any idea what might not be synced correctly and what I need to fix/investigate?
  • k

    kevins8

    04/27/2022, 1:39 PM
    is the new schema up to date in both computers? for your old computer, can you run
    reload window
    and then create a new note and see if that fixes it?
  • a

    awlego

    04/27/2022, 1:41 PM
    yes the schema is up to date.
    reload window
    did in fact fix it. Thank you very much! Was the old one cached or something?
  • r

    rlh1994

    04/27/2022, 1:42 PM
    If I create some custom frontmatter in a note is there a way to publish this kind of like GitHub does when you look at the markdowns? Tried looking at the docs as I thought I remembered something but couldn't find anything
  • h

    hikchoi

    04/27/2022, 2:10 PM
    Do you mean like how Github displays the rendered blob like this?:
  • r

    rlh1994

    04/27/2022, 2:24 PM
    Yeah like that, although ideally only some specified frontmatter tags
  • c

    C A

    04/27/2022, 2:36 PM
    Hi, I updated to 92 and the show note graph command no longer works. On my primary workspace I get this error. I've tried downgrading the dendron extension and it's doing the same thing. I also have a tutorial vault open in a different workspace/window, and when I try the graph command there I just get a "still connecting to engine". Any ideas how I can debug this?
  • h

    hikchoi

    04/27/2022, 2:43 PM
    frontmatter tags will be shown under
    Tags
    at the bottom of the page if you set
    enableFrontmatterTags
    to true: https://wiki.dendron.so/notes/XDpVGHqZ1aqSiG1j0VYGO/ If you don't want to globally, you would have to add frontmatter variable substitution on the notes you want them displayed: https://wiki.dendron.so/notes/ba97866b-889f-4ac6-86e7-bb2d97f6e376/#frontmatter-variable-substitution
  • r

    rlh1994

    04/27/2022, 3:10 PM
    The second link is perfect for what I wanted, thank you!
  • k

    kzilla

    04/27/2022, 3:20 PM
    I'm sure I can figure this out, but if someone can point me in the right direction that would help greatly. So, Ctrl+Shift+i opens a daily journal for the day. How would I go about creating a monthly journal for the month, and assign a shortcut to it? I would like a monthly journal because it is easier to look at my journal notes in one page per month since I may not journal everyday and don't have much to journal everyday, for work at least.
    h
    • 2
    • 6
  • k

    kzilla

    04/27/2022, 3:35 PM
    I m sure I can figure this out but if
  • k

    kzilla

    04/27/2022, 7:15 PM
    I have the same problem.
    s
    c
    +2
    • 5
    • 12
  • a

    AshSimmonds

    04/27/2022, 10:11 PM
    I'm getting the "Dendron has upgraded from x.x.x to x.x.x" every time I open VSCode now. I use 2-4 different machines a day and open/close VSC dozens of times, so it's becoming annoying having to read and dismiss it so frequently. Is there a way to only notify if it was ACTUALLY upgraded since last time?
1...618619620...757Latest