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

    grndstt

    05/22/2022, 9:12 AM
    Coming back to this issue. Are schema still vault independant ?
  • g

    grndstt

    05/22/2022, 9:13 AM
    By the way I tried the second option you proposed @SeriousBug that is setting up a custom trait. With no success. This is the type of title I get in my newly created notes.
  • g

    grndstt

    05/22/2022, 9:13 AM
    Copy code
    ---
    id: exyg82texwv60f0ch7r1i7m
    title: |-
      sdgjsgd,,module.exports = {
        /**
         * Creates a note name with a year.month.name format.
         */
        OnWillCreate: {
          setNameModifier(props) {
    
            // placeholder name:
            let nameModifier = "John Doe";
    
            // Try to get the name first from selected Text, and secondly from the clipboard
            if (props.selectedText) {
              nameModifier = props.selectedText
            }
            else if (props.clipboard) {
              nameModifier = props.clipboard;
            }
    
            // Add a date component with year and month
            const curDate = new Date();
            const year = curDate.getFullYear();
            const month = curDate.getMonth() + 1; // getMonth is 0 indexed
    
            return {
              name: [year, month, nameModifier].join('.'),
              promptUserForModification: true
            };
          }
        },
        /**
         * Extracts the name component of the note title and capitlizes it
         */
        OnCreate: {
          setTitle(props) {
            const fName = props.currentNoteName;
    
            if (fName.includes(".") && fName.lastIndexOf(".") < fName.length) {
              const namepart = fName.substring(fName.lastIndexOf(".") + 1);
              const capitilized = namepart.split('-').map(element => element[0].toUpperCase() + element.substring(1));
    
              return capitilized.join(' ');
            }
            else {
              return fName;
            }
          }
        }
      }
    desc: ''
    updated: 1653210612441
    created: 1653210612441
    traitIds:
      - professional-connections
    ---
  • g

    grndstt

    05/22/2022, 9:13 AM
    Not exactly what is expected I guess ...
  • m

    Maarrk

    05/22/2022, 1:14 PM
    Hi, does anyone have an example of making an HTTP request from a hook function? Thanks in advance ^^
  • p

    Paul_J

    05/23/2022, 9:03 AM
    does anybody know how I can move a vault from one part of my file system to another. I was hoping I could just 'move' the main Dendron directory with the yaml file? will this work?
  • s

    SeriousBug

    05/23/2022, 9:03 AM
    Yes, just make sure to open it with the
    dendron.code-workspace
    file after moving to make sure you get all features.
  • p

    Paul_J

    05/23/2022, 9:14 AM
    thanks for that. I did that and it looks okay. all the open editors that I had before are now closed. where were they saved.
  • s

    SeriousBug

    05/23/2022, 9:15 AM
    VSCode remembers them by the folder I think. I'm not sure where it actually saves the information. You can move the folder back if you really need the last open editors
  • j

    jokaro

    05/23/2022, 11:29 AM
    Is it possible to change the template used for task notes?
  • t

    Tika

    05/23/2022, 11:34 AM
    I have an article with a
    #
    in the title that Dendond thinks is a tag. Is there a way to escape this?
  • p

    personjerry

    05/23/2022, 6:59 PM
    There's a bit of configuration available using the customizing display functionality https://wiki.dendron.so/notes/SEASewZSteDK7ry1AshNG/#customizing-display But also you can create your own template and apply it using schemas!
  • d

    d1onys1us

    05/23/2022, 7:45 PM
    two questions: 1) can i override the dendron preference for single quotes in the frontmatter? i use prettier with double quotes preferred and 2) is it possible for dendron to write a lexicographically sorted gitignore with a newline, or, do a diff check so it doesnt overwrite my .gitignore which i prefer to be in a certain way
  • s

    SeriousBug

    05/23/2022, 8:01 PM
    1. You can't right now unfortunately, if you send in a feature request we might be able to add it. You can also have prettier reformat your note to fix it, Dendron should be able to read single quotes too. 2. Again not supported at the moment, but you can send a feature request. Dendron only touches your gitignore when you add a new vault (or something like migrating an existing vault), so the gitignore shouldn't keep changing once you have your workspace set up. Feature requests: https://github.com/dendronhq/dendron/issues/new?assignees=&labels=&template=feature_request.md&title=
  • d

    d1onys1us

    05/23/2022, 8:14 PM
    I got prettier to fix it for me and that makes me happy / works perfect for me
  • d

    d1onys1us

    05/23/2022, 8:14 PM
    Oh okay cool! So I probably won’t see the gitignore diff again. Thanks
  • u

    uFzK3VbZ8aAVmt2h

    05/23/2022, 8:25 PM
    I think wrapping it with a pair of backticks may help, for example: # hello
    #nottag
  • i

    ilt

    05/24/2022, 1:51 AM
    hey folks, when creating a journal note with command
    create a journal note
    I see that title template is Journal-year-month-date
  • i

    ilt

    05/24/2022, 1:51 AM
    Copy code
    ---
    id: fvhu8mzyrec1rnsi21d0at3
    title: Journal-2022-05-23
    desc: ''
    updated: 1653356983970
    created: 1653356976413
    traitIds:
      - journalNote
    ---
  • i

    ilt

    05/24/2022, 1:52 AM
    is there anywhere to modify that template? thanks in advance
  • p

    Paul_J

    05/24/2022, 10:20 AM
    in vscode when I scroll up and down the preview of the markdown does not line up with the markdown itself. I thought it it used to? is there a particular setting that does this?
  • j

    Joshi

    05/24/2022, 12:04 PM
    This is not currently supported in the Preview. Here's an open feature request for the same. Feel free to upvote it on GitHub so that we can prioritize it https://github.com/dendronhq/dendron/issues/1978
  • m

    Maarrk

    05/24/2022, 12:29 PM
    There's a wiki on that, you need to change the settings in
    dendron.yml
    https://wiki.dendron.so/notes/5c213aa6-e4ba-49e8-85c5-1bdcb33ce202/#configuration
  • s

    Sarvy

    05/24/2022, 12:38 PM
    Hi guys. My calendar view has disappeared. Any idea how I can bring it back?
    j
    • 2
    • 3
  • t

    toxygen

    05/24/2022, 3:06 PM
    Hi, I'm trying to show note graph and I'm getting this message (no matter how long I wait)
    p
    j
    • 3
    • 17
  • t

    toxygen

    05/24/2022, 3:07 PM
    It used to work some time ago but after the updates it seems to stop working
  • p

    Paul_J

    05/24/2022, 3:33 PM
    do people edit the format of their notes in preview? how do you do that?
  • p

    Paul_J

    05/24/2022, 4:43 PM
    how do I vote for it?
  • j

    Joshi

    05/24/2022, 4:45 PM
    Reacting with πŸ‘
  • p

    Paul_J

    05/24/2022, 4:46 PM
    where? on GitHub
1...640641642...757Latest