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

    vishal.gandhi

    02/16/2022, 3:40 AM
    How can i create dynamic notes ; i manage my tasks in taskwarrior and using handlebars.js and simple node application to convert tasks into markdown and create a markdown file in dendron workspace ; since i am generating the file using custom code i miss out the top block . How should i manage generating the top block ?
    Copy code
    ---
    id: F5ighB9g8cntQE8Mcbknr
    title: '2021-12-28'
    desc: ''
    updated: 1640877807111
    created: 1640666873028
  • b

    benhsm | Jack of N trades

    02/16/2022, 3:41 AM
    If I want more than that, I'll do something like
    Copy code
    markdown
    ^summarystart
    stuff I want to embed in another note
    [... as many lines as necessary]
    ^summaryend
    and then reference it with
    ![[note.example#^summarystart:#^summaryend]]
  • b

    benhsm | Jack of N trades

    02/16/2022, 3:41 AM
    are you able to use the CLI?
  • b

    benhsm | Jack of N trades

    02/16/2022, 3:42 AM
    I use taskwarrior with Dendron too btw
  • s

    SeriousBug

    02/16/2022, 3:44 AM
    You are free to generate the frontmatter yourself, you just need the same fields. The id is any random string, it can be anything. The rest you set for whatever you want too
  • v

    vishal.gandhi

    02/16/2022, 3:44 AM
    ## Generate JSON task project:work.product.abcd export rc.json.array=on | jq '{ task:[ group_by(.project,.status)[] | { project: .[0].project, status:.[0].status, "description": [.[]? | { desc: (.description) , tags: .tags|join(";"),"urgency":.urgency,priority:.priority } ] }] }' > ~/OneDrive\ vault/assets/abcd-task.json ## Generate Markdown node ~/development/taskmd/taskwtomd.js ~/OneDrive/vault/assets/abcd-task.json > ~/OneDrive/work/vault/product.abcd.task.md
  • b

    benhsm | Jack of N trades

    02/16/2022, 3:47 AM
    I could have been clearer; I meant the Dendron CLI. You could generate the frontmatter yourself as SeriousBug just suggested. Another option would be to use dendron's note lookup from the CLI. something like
    dendron note lookup --quiet --wsRoot "$DENDRON_WORKSPACE" --attach --useLocalEngine --enginePort 4040 --query "$NOTE"
    in a shellscript. It would generate the frontmatter for you.
    v
    • 2
    • 54
  • v

    vishal.gandhi

    02/16/2022, 3:48 AM
    @User @User will try generating the frontmatter
  • g

    glucinater21

    02/16/2022, 6:58 AM
    Has anyone ever made a dendron discord bot by chance?
  • s

    SeriousBug

    02/16/2022, 7:08 AM
    Not that I've heard of, what kinds of features did you have in mind?
  • g

    glucinater21

    02/16/2022, 7:09 AM
    Things like saving things like pinned messages, task management for projects, and just general documentation
  • g

    glucinater21

    02/16/2022, 7:09 AM
    Really geared more for trying to get documentation for projects from their servers
  • s

    SeriousBug

    02/16/2022, 7:12 AM
    That sounds like a good idea, I was recently reading a criticism that with Discord a lot of the discussion history is usually lost or is not easy to find. Being able to import useful information to Dendron would be a great use case to avoid that.
  • b

    benhsm | Jack of N trades

    02/16/2022, 7:12 AM
    there was a small discussion in #942085703968382996 about drafting emails and discord messages in dendron, and transferring by copy pasting
  • j

    jyeung

    02/16/2022, 9:46 AM
    I found docs-markdown has this functionality - I've found it to work well with Dendron so far: https://marketplace.visualstudio.com/items?itemName=docsmsft.docs-markdown
  • r

    rlh1994

    02/16/2022, 10:51 AM
    Is there a way to keep a particular note preview pinned, and then any new notes opened would use a different preview? Use case is I want to keep my daily journal preview open at all times (using tables for task management) but be able to open and edit and preview other notes throughout the day.
  • r

    ruph0us

    02/16/2022, 2:26 PM
    So I have uploaded & published a dendron workspace that contained a single vault
  • c

    cconrad

    02/16/2022, 2:30 PM
    If the daily journal does not have too much Dendron-specific Markdown, it is possible to use the built-in VS Code Markdown Preview in addition to Dendron's own preview
  • a

    aleksey

    02/16/2022, 4:56 PM
    Does workplace sync pushes into whatever branch is checked out or always into the
    master
    ?
  • k

    kevins8

    02/16/2022, 5:55 PM
    not atm, though its come up. feel free to submit a feature request šŸ™‚
  • m

    mikeman

    02/16/2022, 5:56 PM
    Is there a way that when I create a new journal it copies over the content from my last journal entry?
  • s

    SeriousBug

    02/16/2022, 6:06 PM
    It's possible with hooks, we have an example that uses hooks and a third party script: https://wiki.dendron.so/notes/61055b5f-6216-4fd3-b9a1-82f79017b59e/
  • u

    user

    02/17/2022, 12:58 AM
    Before the template variable update, I could generate yesterday's date by
    {{CURRENT_DAY - 1}}
    . Now I am trying to generate it by using
    <%=CURRENT_DAY-1%>
    but no luck, any advice on how to do this?
  • k

    kevins8

    02/17/2022, 12:59 AM
    we disabled it with the update since that feature relied on javascript execution. we want to minimize contexts where code can execute and are looking to limit it to specific features like hooks and note traits
  • u

    user

    02/17/2022, 1:00 AM
    I see...thanks!
  • k

    kevins8

    02/17/2022, 1:01 AM
    apologies for the disruption - we mentioned it in the changelog and had a discussion about it here -> https://github.com/dendronhq/dendron/discussions/2207
  • x

    Xanaus

    02/17/2022, 3:14 AM
    Will the features of the dendron markdown preview enhanced be integrated into the normal dendron preview?
  • s

    SeriousBug

    02/17/2022, 3:50 AM
    Yes, we're absolutely planning on it. There are a few issues that already to track the missing features, please feel free to comment on them if anything is not documented yet: https://github.com/dendronhq/dendron/issues/1360
  • s

    seadude

    02/17/2022, 6:02 AM
    Anyone know some strategies for breaking PDF pages where images span multiple pages?
  • s

    seadude

    02/17/2022, 6:02 AM
    https://github.com/yzane/vscode-markdown-pdf/issues/279
1...549550551...757Latest