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

    runlevelrobot

    08/23/2020, 9:03 PM
    trial and error
  • r

    ric03uec

    08/24/2020, 12:18 AM
    hi @User , there's a schema-based use-case i need some help with. my notes hierarchy is this
    Copy code
    tech
    tech.readings
    tech.readings.papers
    tech.readings.books
    tech.readings.articles
    now im trying to do two things: 1. create a schema for
    readings
    parent which can be used for any parent (other than
    tech
    ) e.g.
    personal.readings.books
    etc 2. apply different templates to each child i.e.
    papers
    ,
    books
    and
    articles
    i currently have a file called
    tech.schema.yml
    that looks like this:
    Copy code
    version: 1
    schemas:
    - id: tech
      desc: all notes in tech hierarchy 
      parent: root
      namespace: true
      children:
        - articles
        - books
        - papers
    
    - id: articles
      desc: notes based on articles i've read
    
    - id: books
      desc: notes based on books i've read
    
    - id: papers
      desc: notes based on whitepapers i've read
      template: 
        id: readings.papers.template
        type: note
    but when i create a note using
    tech.readings.papers.foo
    , the template
    readings.papers.template
    is not applied to the note. am i doing something wrong here?
  • i

    imalightbulb

    08/24/2020, 12:21 AM
    did you ran Reload Index @User
  • r

    ric03uec

    08/24/2020, 12:21 AM
    yep, bunch of times, just to be sure 😄
  • k

    kevins8

    08/24/2020, 12:24 AM
    hmm, trying to re-create it but seems to be working on my end https://www.loom.com/share/d4b51424d8f94d1db0627b7d9e29d63b
  • k

    kevins8

    08/24/2020, 12:25 AM
    can you do a
    Developer: Reload Workspace
    , create
    tech.foo.papers
    and then send me the output of
    Dendron: Open Log
    ?
  • r

    ric03uec

    08/24/2020, 12:33 AM
    ah! it was a miss on my part(as expected). instead of doing
    tech.baz.papers
    (like you did), i was trying
    tech.papers.baz
    which does not really match the glob pattern of the schema. i changed the schema to this:
    Copy code
    version: 1
    schemas:
    - id: tech
      desc: all notes in tech hierarchy 
      parent: root
      children:
        - readings
    
    - id: readings
      desc: technical readings 
      children:
        - articles
        - books
        - papers
    
    - id: articles
      desc: notes based on articles i've read
    
    - id: books
      desc: notes based on books i've read
    
    - id: papers
      desc: notes based on whitepapers i've read
      namespace: true
      template: 
        id: readings.papers.template
        type: note
    and create a note using
    tech.readings.papers.baz
    which applied the template correctly
  • k

    kevins8

    08/24/2020, 12:36 AM
    👍
  • k

    kevins8

    08/24/2020, 12:37 AM
    also, nice going adopting version 1 schemas 🙂
  • r

    ric03uec

    08/24/2020, 12:41 AM
    i'm still wrapping my head around it to be honest but i can definitely how're they're super useful. thanks for helping out!
  • k

    kevins8

    08/24/2020, 12:42 AM
    yeah, it's probably the most complicated topic in dendron at the moment but working on simplifying it (and everything else) over the next couple of weeks
  • r

    ric03uec

    08/24/2020, 12:48 AM
    cool! that'd be awesome. i think schemas can support quite complex scenarios(im trying to squeeze a few of mine with current functionality). looking forward to all the changes in future!
  • k

    kevins8

    08/24/2020, 12:50 AM
    yeah, definitely. with imports, it will be a lot easier to make re-usable schemas. will be awesome once people can start sharing and building off each others schemas
  • k

    kevins8

    08/24/2020, 12:51 AM
    its a little messy but i've been fleshing out my schema for programming languages
  • r

    ric03uec

    08/24/2020, 12:54 AM
    definitely! once enough templates and real examples are available, it'll be much easier to onboard (and re-use) the schemas
  • k

    kevins8

    08/24/2020, 12:54 AM
    that's the plan 🙂
  • r

    runlevelrobot

    08/24/2020, 4:08 PM
    kevin: Any way to customize the daily.journal command? My journals are made without dashes...
  • k

    kevins8

    08/24/2020, 4:09 PM
    yep. daily journal notes use the same configuration as the journal command
  • k

    kevins8

    08/24/2020, 4:09 PM
    https://www.dendron.so/notes/5c213aa6-e4ba-49e8-85c5-1bdcb33ce202.html#configuration
  • r

    runlevelrobot

    08/24/2020, 4:26 PM
    awesome thx
  • h

    HeroP

    08/25/2020, 6:21 AM
    > @User i think this is the same issue that we saw earlier. can you tell me what version of dendron markdown preview enhanced you have? if you un-install the extension and re-install or upgrade, it should make it go away @User Here is another issue, and no, reinstalling 0.5.17 didn't do the trick: enhanced.openPreviewToTheSide' not found Please help me out here...
  • r

    runlevelrobot

    08/25/2020, 2:53 PM
    kevin: Is there anyway to put all the daily.journal files in a folder so I don't have 365 of them in my main tree?
  • i

    imalightbulb

    08/25/2020, 2:56 PM
    @User I would also like to know if this is possible or not
  • k

    kevins8

    08/25/2020, 3:28 PM
    @User > @User Here is another issue, and no, reinstalling 0.5.17 didn't do the trick: enhanced.openPreviewToTheSide' not found Please help me out here... @User that was my bad. a regression in the 0.8.0 version. if you upgrade to 0.8.4 (just pushed), the issue should be fixed!
  • k

    kevins8

    08/25/2020, 3:32 PM
    @User @User the current model for dendron is to have all files in a single folder (eg. my main dendron vault has around 6000 notes). you'll be able to partition your notes into multiple folders when support for multi-root workspaces is shipped (https://github.com/dendronhq/dendron/issues/9). meanwhile, if you really want to separate your notes, I would recommend initializing a separate workspace (eg.
    Dendron-journals
    ) though that would mean losing the ability to create links between your journal notes and your other notes. is there a specific reason you don't want your journals in the main tree?
  • r

    runlevelrobot

    08/25/2020, 3:34 PM
    I guess I just like getting to my files using the tree. But I can see once I get a lot of notes then using the lookup would be better. Its fine
  • k

    kevins8

    08/25/2020, 3:38 PM
    got it! would something like this work for your use case? https://github.com/dendronhq/dendron/issues/125
  • r

    runlevelrobot

    08/25/2020, 3:43 PM
    yes!!
  • r

    runlevelrobot

    08/25/2020, 3:43 PM
    that would work great
  • r

    runlevelrobot

    08/25/2020, 3:43 PM
    thanks man
1...222324...757Latest