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

    SeriousBug

    03/15/2022, 9:37 PM
    We don't have a built in feature for that, but you could use hooks to achieve this: https://wiki.dendron.so/notes/12551d19-04c2-4d26-ac1e-d23ff3181a9c/ You can also submit a feature request to add this as a feature!
  • x

    xg

    03/15/2022, 9:41 PM
    Thanks! Will probably not create a hook right now, but its nice to know that the option exists!
  • d

    Daniel Silverstone

    03/15/2022, 10:24 PM
    If I add a remote workspace as a seed, the "copy url" feature works, but if I add it as a remote vault it doesn't - can I edit seeds I add, if I have permission to push to that repository, or do I have to add it as a vault to do that? Of course, I only seem to be able to add seeds which are defined already (not my own repos) and I can't work out what's missing if I add my own repo as a seed manually to make it able to copy urls anyway. So I guess that's moot.
  • a

    aleksey

    03/16/2022, 1:42 AM
    Trait to open daily note for the current month or year
  • s

    SeriousBug

    03/16/2022, 1:50 AM
    Yes, you can use any git service. Dendron doesn't have any github-only features, you need to create a repository on Gitlab and use the clone URL for it.
  • h

    hikchoi

    03/16/2022, 1:54 AM
    > Dendron doesn't have any github-only features We do have some configuration for publishing that is Github-only. See: https://wiki.dendron.so/notes/l0jasjfkFhVag7c9NQMdY/ It is used to specify the CNAME and how the Github edit link behaves. You may need to disable edit links if you plan to use Gitlab and also publish
  • s

    SeriousBug

    03/16/2022, 2:00 AM
    No, that should be fine. Dendron uses regular git commands to pull and push stuff so it should work.
  • c

    codeluggage

    03/16/2022, 2:18 AM
    Does anyone know of a pod (or other tool/code that does the same) that extracts top-level comments and signatures from a file of code, into a hierarchical structure? Example: Given a project that has a structure like this:
    src/models/routine.ts
    The file has a
    class Routine
    with comments above it. The class has
    function start(offsetSeconds: number)
    with comments above it. It generates:
    models.routine.md
    with
    ## class Routine
    that has
    ### function start
    , with the comments as the content within each header. This would open for many things, one of the most exciting ones being: - Predictable "dendron-note-to-generated-note" linking - Guarding against comment rot through dendron discovering missing references after pod export run - Guarding against inverse documentation rot through dendron discovering missing references to notes from inside the generated markdown For comment rot: Given that text in
    r.routines.lifecycle.md
    referred to the code with
    [[Routine model|models.routines#routine]]
    , the missing link detection would identify if
    src/models/routines.ts
    or its (top level) signatures are renamed or removed. For "inverse documentation rot": Given that a comment in
    src/models/routine.ts
    said something like
    The full routine lifecycle is visualized in [[r.routines.lifecycle#visualized]]
    , the missing link detection would identify if
    r.routines.lifecycle.md
    or the
    visualized
    header, are renamed or removed.
    k
    • 2
    • 4
  • u

    user

    03/16/2022, 2:42 AM
    The Calendar view section is not showing up on my UI. I've followed the instructions on the wiki and added
    enableWebUI: true
    to my dendron.yml file. Any help would be greatly appreciated.
    k
    • 1
    • 2
  • k

    kevins8

    03/16/2022, 2:47 AM
    extract-top-level comments from code
  • h

    hikchoi

    03/16/2022, 11:50 AM
    I see that Gitlab does have a web editor so yes. It's possible. But it's not something we support right now. If you submit a feature request, we can track it in our backlog
  • g

    Gander7

    03/16/2022, 4:14 PM
    I'm trying to set up my vault to be tracked by git. I can't use vscode commands to do it for security reasons, and just wondering about best practices. My understanding was that each vault in my workspace would/could be tracked to a different git repo. Is the best practice to just
    git init
    each vault (NOT the workspace) and then push it? Is there a best practice way to track the root files such as
    dendron.yml
    or should that be different per computer and "local-first"?
  • k

    kevins8

    03/16/2022, 4:19 PM
    > Is the best practice to just git init each vault (NOT the workspace) and then push it? yep. if you already have a remote setup, you can use [vault convert](https://wiki.dendron.so/notes/6682fca0-65ed-402c-8634-94cd51463cc4.html#vault-convert) to auto initialize (but since you don't want to run vscode commands, maybe just do it manually) > Is there a best practice way to track the root files such as dendron.yml or should that be different per computer and "local-first"? the workspace itself should be a repo (the .gitignore is already set to ignore the given vaults). also see https://wiki.dendron.so/notes/24b176f1-685d-44e1-a1b0-1704b1a92ca0.html
  • g

    Gander7

    03/16/2022, 4:22 PM
    Thanks, checked the
    .gitignore
    and my vault wasn't listed but I added it. I might have set up the vault wrong then 😛
  • k

    kevins8

    03/16/2022, 4:24 PM
    hmm, should be when you use the
    vault add
    command. but this is why plaintext & git is nice - you have full autonomy to make your own actions 🙂
  • g

    Gander7

    03/16/2022, 4:31 PM
    So, I may have done something stupid. my vault was called
    vault
    so I renamed the folder to
    work-brain
    . Dendron failed and I facepalmed remembering there was a command to rename the vault. So I changed it back. Now I don't think Dendron is initializing since all I get is this when I open the workspace:
  • g

    Gander7

    03/16/2022, 4:31 PM
    can you help me fix my stupidity? NOTE: I upgraded to 86 while I had the folder name changed. 🤦‍♂️
  • g

    Gander7

    03/16/2022, 4:33 PM
    Dev Logs:
    Copy code
    json
    {"level":30,"time":1647448186625,"pid":9760,"hostname":"hostname","name":"dendron","ctx":"Logger:configure","msg":"exit","logLevel":"info"}
    {"level":30,"time":1647448186676,"pid":9760,"hostname":"hostname","name":"dendron","ctx":"_activate","stage":"prod","isDebug":false,"logLevel":"info","logPath":"c:\\Users\\zacha\\AppData\\Roaming\\Code\\logs\\20220316T132729\\exthost4\\dendron.dendron","extensionPath":"c:\\Users\\zacha\\.vscode\\extensions\\dendron.dendron-0.86.1","extensionUri":"c:\\Users\\zacha\\.vscode\\extensions\\dendron.dendron-0.86.1","workspaceFolders":["c:\\repos\\work-brain"]}
    {"level":30,"time":1647448186677,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"No cache path for Segment specified. Failed event uploads will not be retried."}
    {"level":30,"time":1647448186680,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"user telemetry setting: enabled by config"}
    {"level":30,"time":1647448186680,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"telemetry initializing"}
    {"level":30,"time":1647448186680,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"using existing id"}
    {"level":30,"time":1647448186681,"pid":9760,"hostname":"hostname","name":"dendron","ctx":"DendronExtension","msg":"initialized"}
    {"level":30,"time":1647448186746,"pid":9760,"hostname":"hostname","name":"dendron","ctx":"_activate","msg":"initializeWorkspace","wsType":"NATIVE","currentVersion":"0.86.1","previousWorkspaceVersion":"0.86.1","previousGlobalVersion":"0.86.1","extensionInstallStatus":"NO_CHANGE"}
  • g

    Gander7

    03/16/2022, 4:34 PM
    Copy code
    json
    {"level":30,"time":1647448186787,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"user telemetry setting: enabled by config"}
    {"level":30,"time":1647448186787,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"telemetry initializing"}
    {"level":30,"time":1647448186787,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"using existing id"}
    {"level":30,"time":1647448186788,"pid":9760,"hostname":"hostname","name":"dendron","msg":"Telemetry is disabled? false"}
    {"level":30,"time":1647448186788,"pid":9760,"hostname":"hostname","name":"dendron","msg":"Segment Residual Cache Path is at c:\\Users\\zacha\\AppData\\Roaming\\Code\\User\\globalStorage\\dendron.dendron\\segmentresidualcache.log"}
    {"level":30,"time":1647448186788,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"Attempting to flush residual segment data from file."}
    {"level":50,"time":1647448186822,"pid":9760,"hostname":"hostname","name":"dendron","stack":"TypeError: i.ConfigUtils.getVaults(...).filter is not a function\n    at w.syncVaults (c:\\Users\\zacha\\.vscode\\extensions\\dendron.dendron-0.86.1\\dist\\extension.js:2:468196)\n    at w.initialize (c:\\Users\\zacha\\.vscode\\extensions\\dendron.dendron-0.86.1\\dist\\extension.js:2:458835)\n    at Ui (c:\\Users\\zacha\\.vscode\\extensions\\dendron.dendron-0.86.1\\dist\\extension.js:8:3223078)","type":"Error","msg":"i.ConfigUtils.getVaults(...).filter is not a function"}
    {"level":30,"time":1647448304004,"pid":9760,"hostname":"hostname","name":"dendron","ctx":"dendron.dev.openLogs:run","msg":"pre-execute"}
    {"level":30,"time":1647448304004,"pid":9760,"hostname":"hostname","name":"dendron","ctx":"execute","opts":{}}
    {"level":30,"time":1647448304039,"pid":9760,"hostname":"hostname","name":"dendron","ctx":"dendron.dev.openLogs:run","msg":"post-execute"}
  • s

    SeriousBug

    03/16/2022, 5:04 PM
    If you can open your
    dendron.yml
    file, you just need to change the name under the vaults section:
    Copy code
    vaults:
        - fsPath: vault # change this to work-brain
  • s

    ScriptAutomate

    03/16/2022, 5:13 PM
    @User This may also require updating the
    dendron.code-workspace
    file, in addition to the
    dendron.yml
    file mentioned above. Then probably doing a reload window command to bring Dendron back up
  • g

    Gander7

    03/16/2022, 5:22 PM
    So I changed the folder name back to vault, so I could do it the right way after I fix it.
    Copy code
    md
    # dendron.code-workspace
    {
      "folders": [
        {
          "path": "vault"
        }
      ],
      ...
    }
    Copy code
    md
    # dendron.yml
    workspace:
        vaults:
            -fsPath: vault
    I opened and closed vscode and tried the
    Developer: Reload Window
    but received the same empty json error both times.
  • g

    Gander7

    03/16/2022, 5:37 PM
    Dev Logs showed it tried to flush residual segment data. Would deleting or emptying that
    segmentresidualcache.log
    file help?
    Copy code
    json
    {"level":30,"time":1647448186788,"pid":9760,"hostname":"hostname","name":"dendron","msg":"Segment Residual Cache Path is at c:\\Users\\zacha\\AppData\\Roaming\\Code\\User\\globalStorage\\dendron.dendron\\segmentresidualcache.log"}
    {"level":30,"time":1647448186788,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"Attempting to flush residual segment data from file."}
    {"level":50,"time":1647448186822,"pid":9760,"hostname":"hostname","name":"dendron","stack":"TypeError: i.ConfigUtils.getVaults(...).filter is not a function\n    at w.syncVaults (c:\\Users\\zacha\\.vscode\\extensions\\dendron.dendron-0.86.1\\dist\\extension.js:2:468196)\n    at w.initialize (c:\\Users\\zacha\\.vscode\\extensions\\dendron.dendron-0.86.1\\dist\\extension.js:2:458835)\n    at Ui (c:\\Users\\zacha\\.vscode\\extensions\\dendron.dendron-0.86.1\\dist\\extension.js:8:3223078)","type":"Error","msg":"i.ConfigUtils.getVaults(...).filter is not a function"}
    k
    • 2
    • 2
  • k

    kevins8

    03/16/2022, 5:40 PM
    no, that shouldn't affect this
  • g

    Gander7

    03/16/2022, 6:02 PM
    Thanks @User @User @User for your time on that 🙂 (Resolved with a new workspace)
  • d

    Daniel Silverstone

    03/16/2022, 8:06 PM
    @User Is there a way to get workspace vaults to have their copy-note-url work properly when added to another workspace? I have seen this work for seeds, but I'm not sure I can add my own repos as seeds. An easy reproduction is: "Have a new dendron workspace, add the dendron site seed, and see how you can copy URLs to the dendron site when in notes in the seed. Now remove the seed and instead add it as a remote vault. Notice how you can't look up note URLs any more."
  • s

    SeriousBug

    03/16/2022, 8:07 PM
    No unfortunately. You might be able to get it working by writing a seed config for your own workspace vault by hand, but I've never tried it. We do have improvements to vaults coming that will make this possible though. I'm actively working on it, it should be available in a month or two.
  • d

    Daniel Silverstone

    03/16/2022, 8:08 PM
    @User Aha, cool. I wasn't sure if it would be part of what you were up to - you told me you were working on being able to publish different vaults differently, but I'd not learned of adding a vault which is actually a workspace before, so I was excited until it didn't work 😄
  • d

    Daniel Silverstone

    03/16/2022, 8:10 PM
    If I managed to add my own workspace thingy as a seed, would I be able to still edit it, or are seeds treated as read-only?
  • s

    SeriousBug

    03/16/2022, 8:11 PM
    Seeds are regular vaults, so I think it should work.
1...569570571...757Latest