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

    Hawk

    02/23/2022, 2:09 PM
    you know anything about this ^?
  • h

    Hawk

    02/23/2022, 2:09 PM
    this is a screenshot of vs code preview pane btw
  • b

    benhsm | Jack of N trades

    02/23/2022, 2:12 PM
    could you share the markup that that was rendered from? and is that the Dendron preview or the vscode built-in preview
  • k

    kzilla

    02/23/2022, 2:17 PM
    When I click the "dendron.markdown publish markdown" option then all I get is a message saying "contents copied to clipboard". I'm not sure how to convert the markdown text into pdf.
    k
    • 2
    • 3
  • k

    kzilla

    02/23/2022, 2:31 PM
    pandoc - pdf
  • h

    hikchoi

    02/23/2022, 2:40 PM
    Not sure if I'm understanding correctly. Do you mean to convert wikilinks into markdown links?
  • c

    Chairos

    02/23/2022, 2:42 PM
    Hi! Yes, I mean that I think
    h
    j
    • 3
    • 31
  • j

    jaweiss2305

    02/23/2022, 2:55 PM
    How would one create a hot key for automatically generating a new note? For example CTRL + SHIFT + I, will automatically create a daily journal note. How would you create it for scratch notes?
  • b

    benhsm | Jack of N trades

    02/23/2022, 2:59 PM
    something like:
    Copy code
    json
    /* in keybindings.json. 
    * Use `Preference: Open Keyboard Shortcuts (JSON)` to open.
    */ 
    [
      ...
      {
        "key": "{desired keybinding}",
        "command": "dendron.lookupNote",
        "args": {
          "noteType": "scratch"
        }
      },
      ...
    ]
    here are the relevant docs for reference:
  • h

    hikchoi

    02/23/2022, 3:48 PM
    There is also a
    Create Scratch Note
    command, and the default keybinding is
    cmd/ctrl+shift+s
    https://wiki.dendron.so/notes/eea2b078-1acc-4071-a14e-18299fc28f47/#create-scratch-note If you want to go further and skip the confirmation, you can add
    noConfirm: true
    to the keybinding
    args
    property like so:
    Copy code
    md
    [
      ...
      {
        "key": "{desired keybinding}",
        "command": "dendron.createScratchNote",
        "args": {
          "noConfirm": true
        }
      },
      ...
    ]
  • h

    Harsha

    02/23/2022, 3:54 PM
    Hello team I am following this page https://wiki.dendron.so/notes/2340KhiZJWUy31Nrn37Fd/ for publishing my content. I see some errors related to yml parsing. Can I get some guidance on how to debug this further ?
    Copy code
    --query and --vault parameter not implemented for podType export
    {"level":50,"time":1645631239376,"pid":9030,"hostname":"hghanta-a02.vmware.com","name":"publish <cmd>","name":"DendronError","status":"unknown","payload":"error: [{\"instancePath\":\"\",\"schemaPath\":\"#/additionalProperties\",\"keyword\":\"additionalProperties\",\"params\":{\"additionalProperty\":\"Inc/notes/dd/.next\"},\"message\":\"must NOT have additional properties\"}]","stack":"DendronError: validation errors: data must NOT have additional properties\n    at Function.validate (/usr/local/lib/node_modules/@dendronhq/dendron-cli/node_modules/@dendronhq/pods-core/lib/utils.js:213:19)\n    at NextjsExportPod.execute (/usr/local/lib/node_modules/@dendronhq/dendron-cli/node_modules/@dendronhq/pods-core/lib/basev3.js:97:26)\n    at ExportPodCLICommand.execute (/usr/local/lib/node_modules/@dendronhq/dendron-cli/lib/src/commands/exportPod.js:34:19)\n    at PublishCLICommand._buildNextData (/usr/local/lib/node_modules/@dendronhq/dendron-cli/lib/src/commands/publishCLICommand.js:210:34)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async PublishCLICommand.build (/usr/local/lib/node_modules/@dendronhq/dendron-cli/lib/src/commands/publishCLICommand.js:372:27)\n    at async PublishCLICommand.execute (/usr/local/lib/node_modules/@dendronhq/dendron-cli/lib/src/commands/publishCLICommand.js:138:25)\n    at async Object.CLICommand.eval [as handler] (/usr/local/lib/node_modules/@dendronhq/dendron-cli/lib/src/commands/base.js:58:25)","type":"Error","msg":"validation errors: data must NOT have additional properties"}
  • h

    Hawk

    02/23/2022, 3:54 PM
    I'm sorry for the late reply. It was indeed a vscode preview (I'm still learning how dendron works) but the dendron preview doesn't look good either:
  • b

    benhsm | Jack of N trades

    02/23/2022, 4:08 PM
    I'm not really able to reproduce this; it might be something about your setup
  • h

    Hawk

    02/23/2022, 5:27 PM
    seems like its a known issue
  • h

    Hawk

    02/23/2022, 5:27 PM
    https://github.com/dendronhq/dendron/issues/1747
  • h

    Harsha

    02/23/2022, 5:28 PM
    Hello team , If this is a wrong channel, can someone atleast let me know if there is one for figuring out issues like the one I am facing?
  • s

    SeriousBug

    02/23/2022, 6:07 PM
    Can you share the command line you used to publish?
  • h

    Harsha

    02/23/2022, 6:24 PM
    Thanks for the reply, once I deleted everything in the workspace and then following the steps, I was able to publish, I could see my data at localhost:3000. I should have kept the workspace intact , sorry about that . On an unrelated note: Do you foresee why the it is so slow to access the pages saved locally? Like whenver I try to access pages on localhost:3000 I find the site to be really really slow.
  • s

    SeriousBug

    02/23/2022, 6:25 PM
    When you are in the development mode, Dendron has to build pages when you open them. When you publish the pages, all the pages are built so it will be faster.
  • p

    p0lyg0n

    02/23/2022, 9:17 PM
    Is there any way I can open a static file via a link like:
    Copy code
    markdown
    [file.txt](/docs/assets/txt/file.txt)
    with a command? Tried both:
    >Dendron: Open Link
    >Open Link
    Neither of which worked
  • p

    p0lyg0n

    02/23/2022, 9:20 PM
    Never mind 🤦🏼‍♂️ There was a typo in the file name I was trying.
    >Open Link
    works fine
  • s

    smokedoors

    02/23/2022, 9:28 PM
    Getting an error when I try ctrl-L to open a file “No available file name. This error should never occur!”
  • s

    smokedoors

    02/23/2022, 9:28 PM
    Which log file should I look at, to troubleshoot?
  • j

    joneshf

    02/23/2022, 10:09 PM
    Is there a way to turn off publishing completely? Like, if I know for certain I never want to accidentally publish my notes, can I make it so I can't do that?
    s
    • 2
    • 11
  • s

    ScriptAutomate

    02/23/2022, 10:21 PM
    disable-publishing
  • s

    ScriptAutomate

    02/23/2022, 10:29 PM
    For opening Dendron logs: - Open command palette -
    Dendron:Dev: Open Logs
    For troubleshooting, depending on if it is a weird problem with cache or note frontmatters, can try a few things: - Run
    Dendron: Reload Index
    command, then test - Run
    Developer: Reload Window
    command, then test - Run
    Dendron: Doctor
    ->
    fixFrontmatter
    , then
    Dendron: Reload Index
    , then test
  • t

    Tychronos

    02/23/2022, 10:44 PM
    I noticed there are no docs on making more complex links between notes, where we can specify headings along with how many lines to include. When I make a link while hovering over a header with
    cmd+shift+r
    , I get something like this
    Copy code
    ![[mynote#first-heading,1]]
    I noticed that the
    1
    here represents the first line onward. If I increment it, it's the second line onwards, and so on. I assume this would allow us to more intelligently select "only lines 1 and 2" as well, but I don't see this in the documentation https://wiki.dendron.so/notes/3472226a-ff3c-432d-bf5d-10926f39f6c2/
  • h

    hikchoi

    02/23/2022, 10:45 PM
    You can find more info about these here: https://wiki.dendron.so/notes/f1af56bb-db27-47ae-8406-61a98de6c78c/
  • t

    Tychronos

    02/23/2022, 10:52 PM
    so it seems like I can only use Headers or Anchors to delimit what I want to show in the preview? I'm looking to just display the first line of the note
  • s

    ScriptAutomate

    02/23/2022, 10:59 PM
    Yeah, you'd have to use a block anchor to a particular line, or create a new header if only wanting a small section embedded. This is done because of the fragility of direct line references. Linking to lines in source code has a similar problem, with a recent update to our file links pointing out the benefit of header/anchor links vs. lines: > Block anchors are more reliable because they will always refer to the marked line, but Dendron has to modify the file to insert a block anchor which looks like
    ^this
    . You are free to move the anchor anywhere in the file or to put comment markers like
    //
    or
    #
    or anything else before them.
1...555556557...757Latest