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

    SeriousBug

    04/25/2022, 8:58 AM
    This is not possible to do with schemas at the moment. There are some alternatives: 1. You could use the "Dendron: Insert Note" command to manually pick which template to apply instead. 2. You could use note traits to add your own daily note trait, then write code to insert text based on which vault the note is in: https://wiki.dendron.so/notes/EQoaBI8A0ZcswKQC3UMpO/
  • d

    dvy

    04/25/2022, 9:26 AM
    this instruction worked, I'm good to go https://blog.dendron.so/notes/P1DL2uXHpKUCa7hLiFbFA/
  • g

    grndstt

    04/25/2022, 11:16 AM
    Tried option 2. but I get the content of the .js module directly inserted afetr the Title of the note.
  • g

    grndstt

    04/25/2022, 11:17 AM
    Copy code
    ---
    id: 00krsfao13iy20bhfttocd4
    title: |-
      fdfd,,module.exports = {
        /**
         * Specify behavior to modify the name of the note. If
         * promptUserForModification is true, the modified name will appear in a
         * lookup control to allow the user to further edit the note name before
         * confirming.
         */
        OnWillCreate: {
          setNameModifier(props) {
            return {
              name: [props.currentNoteName, props.selectedText, props.clipboard].join(','),
              promptUserForModification: true
            };
          }
        },
        /**
         * Specify behavior for altering the title of the note when it is created.
         */
        OnCreate: {
          setTitle(props) {
            return [props.currentNoteName, props.selectedText, props.clipboard].join(',');
          }
        }
      }
    desc: ''
    updated: 1650885343487
    created: 1650885343487
    traitIds:
      - daily-lab-book
    ---
  • g

    grndstt

    04/25/2022, 11:18 AM
    Also another question
  • g

    grndstt

    04/25/2022, 11:18 AM
    Copy code
    ---
    id: 87i2ekrqek8kjrlxhkxrtur
    title: '2022-04-25'
    desc: ''
    updated: 1650882441379
    created: 1650872864376
    traitIds:
      - journalNote
    ---
    `
  • g

    grndstt

    04/25/2022, 11:19 AM
    Can I acess to the .js defining the journalNote trait ?
  • g

    grndstt

    04/25/2022, 11:19 AM
    In this case I could just copy paste it and have one specifiy journalNote and a second journalNotevaultX
  • g

    grndstt

    04/25/2022, 11:20 AM
    also to understand how these daily notes are constructed
  • r

    RenStrike

    04/25/2022, 11:27 AM
    Thanks! I remade my repo and decided to go the “Add Vault” route. Seems to make the most sense to have local notes and pull in other vaults as needed. Thanks again!
  • r

    RenStrike

    04/25/2022, 11:45 AM
    So, I’m fully anticipating using Dendron as my primary note taking solution on PC. But I’m still trying to solve how I’ll handle quick notes while on the go (iPhone). I don’t need it to fully support Dendron editing at the drop of a hat (I can sit down and VNC into my machine if I need full access), but I’d like to be able to quickly add a scratch note at least, at a moments notice (and maybe get a bit more elaborate later if possible). My initial thoughts are to use iOS Shortcuts to send an SSH command to my PC, which fires up a Dendron CLI command to add a note with the passed in string (I guess I’d have to create a .md file actually… hm…). My guess is that is what the ImportPod command does? It also looks like I can even tell it to submit the added note to Git as well, which is awesome!
  • b

    bradw

    04/25/2022, 4:57 PM
    Hi there. I have a vault with a structure like this: root - First - Next level - and some more I am trying to add another node directly under the root, but it keeps becoming disconnected, such that it does not appear in the Tree, nor does it Preview. Any ideas on fixing this?
  • a

    aleksey

    04/25/2022, 6:18 PM
    Are you using names like
    root.first.md
    ? If so, you don't need the
    root
    prefix.
    root
    is a funny note, it's like a readme for your vault; it's required, but it's not the point you need to attach all your notes too.
  • s

    SeriousBug

    04/25/2022, 6:22 PM
    If you are conecting to your PC with SSH, the easier action would be to just create the note file yourself. Dendron will recognize the file automatically. You just need to have the same frontmatter format, and have a random ID. The ID can be any random string. Otherwise there are some Dendron-compatiable mobile apps. See this blog post: https://blog.dendron.so/notes/fDCVPEo3guCFWPdxokXHU/
  • p

    pdina

    04/25/2022, 7:01 PM
    Hi! Is it possible to delete multiple notes (or a whole hierarchy) from within VS Code? I did a lot of mess trying to get my first schema work (and still stuck) and I need to delete a good number of notes. Hope not to miss something obvious, any help appreciated.
  • p

    pdina

    04/25/2022, 7:02 PM
    in my case, multiple CTRL+SHIFT+D is boring at best
  • a

    aleksey

    04/25/2022, 7:06 PM
    Yes, you can just delete the files whichever way you want (like though the default VSCode explorer view) and then reload VSCode, so Dendron can rescan what changed.
  • p

    pdina

    04/25/2022, 7:21 PM
    Maybe "Reload index" can be used as well (to avoid to reload/restart VS Code)
  • p

    pdina

    04/25/2022, 8:12 PM
    definition lists don't work anymore in md preview. anyone would help to sort out why? I'm doing a glossary and they worked till the other day (in case it matters I updated VS Code in between)
  • s

    SeriousBug

    04/25/2022, 8:34 PM
    You shouldn't even need to reload, Dendron should automatically recognize the notes were deleted
  • s

    SeriousBug

    04/25/2022, 8:36 PM
    Could you try an older version of Dendron to see if the problem happened due to a Dendron upgrade? If you go to the extensions and right click on Dendron, there should be an option that says "Install Another Version"
  • p

    pdina

    04/25/2022, 8:42 PM
    I tried 0.90 and 0.89 with no success, it could be the update to VS Code (or something specific to my setup). Hopefully I'll try to downgrade later/tomorrow and get back to you. Currently I'm using 1.66.2 - dfd34e8260c270da74b5c2d86d61aee4b6d56977. Thanks
  • a

    aleksey

    04/25/2022, 9:08 PM
    To my knowledge, definition lists have never worked: https://github.com/dendronhq/dendron/issues/617
  • r

    RenStrike

    04/25/2022, 9:12 PM
    I cloned the Dendron Template for auto-updating the Github Pages, and got it all working and updating correctly, but i see two Vault folders in my Workspace view. I don't remember seeing this when dabbling with other test Dendron repos. Is this normal?
  • k

    kevins8

    04/25/2022, 9:54 PM
    so this looks like you might have the contents on the js copied in your clipboard? the default title (we should probably change it) sets the title to be current note + selection + clipboard contents
  • k

    kevins8

    04/25/2022, 9:56 PM
    which dendron template did you clone?
  • r

    RenStrike

    04/25/2022, 10:22 PM
    https://github.com/dendronhq/template.publish.github-action
  • k

    kevins8

    04/25/2022, 11:02 PM
    got it - yeah this is correct. this is because the vscode workspace file (https://github.com/dendronhq/template.publish.github-action/blob/main/dendron.code-workspace) is including both the vault (vault) and the top level directory (.). it affects what the explorer window shows and makes it easier to navigate to files outside of the vault
  • r

    RenStrike

    04/25/2022, 11:29 PM
    That makes sense. Thanks for the explanation!
  • a

    anonrunner

    04/26/2022, 11:44 AM
    Hello, I'm trying to embed part of a note from yesterday into today's note. I'm using templates trying to achieve that like this: ![[daily.journal...#done:#Yesterday-Done]] The problem is, that it looks like this operation doesn't work: Maybe I missed something?
1...617618619...757Latest