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

    user

    10/29/2020, 6:30 PM
    I think most approaches to this kind of thing make the file fundamentally a markdown file. Or if it's a code file, it's a doc tool. Maybe there is a doc tool with a VS code extension. I'm just inspired by Dendron's lightweight approach. If you can view your file in your IDE, and export a website, that's all you really need (is the insight)
  • u

    user

    10/29/2020, 6:30 PM
    I suppose I could write my own extension (but sounds like more of a learning curve)
  • u

    user

    10/29/2020, 6:32 PM
    A specific question would be: where does MPE intercept scrolling
  • u

    user

    10/29/2020, 6:39 PM
    or can I configure VS code to activate an extension for files of a certain type. if this is too off-topic, no worries
  • u

    user

    10/29/2020, 6:42 PM
    ah darn I'd have to patch this line: https://github.com/shd101wyy/vscode-markdown-preview-enhanced/blob/701ac943c303088fa349d38d19fdd5736e1e0a72/src/preview-content-provider.ts#L856
  • k

    kevins8

    10/29/2020, 8:42 PM
    patching mpe for non-markdown is an interesting idea. you can override the language id of a doc in vscode which might be enough to make mpe recognize, for example, ts files
  • u

    user

    10/30/2020, 2:09 AM
    the only problem is I'm assuming I also definitely want the lang to be TypeScript, so the buffer is treated as a TypeScript file for all other purposes
  • u

    user

    10/30/2020, 2:11 AM
    hm unless I did something funky like point two workspaces at the same file tree, heh, with different file extension to language mappings
  • u

    user

    10/30/2020, 2:11 AM
    for now, I am just writing Markdown docs in separate files from the code and tabling my literate programming dreams for the time being
  • r

    robothor

    10/30/2020, 8:17 AM
    Did something change with the way templates are handled in the last few days? Maybe part of the server upgrade? Here is my setup: `journal.schema.yaml`:
    Copy code
    - id: journal
      parent: root
      children:
        - daily
    - id: daily
      namespace: true
      template:
        type: note
        id: journal.template.daily
    journal.template.daily.md
    Copy code
    ---
    id: 8e98e784-d8b3-458d-bf7b-f84f013455c9
    title: Daily
    desc: ''
    updated: 1601739257799
    created: 1601739257799
    stub: false
    ---
    
    #### Tasks
    
    #### Notes
    
    #### Plus / Minus
    
    #### Next
    This worked as expected on 2020-10-28, but did not do the template expansion on 2020-10-29. I did change the
    dendron.defaultJournalDateFormat
    because the server upgrade changed it to
    Y.MM.DD
    . Nothing useful in the logs. Does anyone have any suggestions?
  • s

    SeeDubLan

    10/30/2020, 8:18 AM
    Hmm
  • s

    SeeDubLan

    10/30/2020, 8:18 AM
    just verified, mine still applying
  • s

    SeeDubLan

    10/30/2020, 8:18 AM
    and I have similar schema and template
  • r

    robothor

    10/30/2020, 8:19 AM
    Ah, thanks for checking.
  • s

    SeeDubLan

    10/30/2020, 8:19 AM
    Still...
  • s

    SeeDubLan

    10/30/2020, 8:20 AM
    so what is your
    dendron.defaultJournalDateFormat
    config set to currently
  • r

    robothor

    10/30/2020, 8:20 AM
    I flipped it back to the previous default:
    "dendron.defaultJournalDateFormat": "Y-MM-DD",
  • s

    SeeDubLan

    10/30/2020, 8:21 AM
    So you do not want the hierarchy by year/month/day? Clarifying to make sure I understand
  • s

    SeeDubLan

    10/30/2020, 8:22 AM
    As far as I understand the - annotation will not provide parent/child for the year to month to day
  • r

    robothor

    10/30/2020, 8:22 AM
    No, I guess I could, but I have a bunch of notes I would need to rename.
  • s

    SeeDubLan

    10/30/2020, 8:22 AM
    Oh I gotcha... saying that you changed the setting since it was changed in the update?
  • s

    SeeDubLan

    10/30/2020, 8:22 AM
    To be consistent with your existing notes
  • r

    robothor

    10/30/2020, 8:22 AM
    I have a ton of notes in ISO 8601 format
  • s

    SeeDubLan

    10/30/2020, 8:23 AM
    gotcha
  • s

    SeeDubLan

    10/30/2020, 8:28 AM
    So currently you create a new journal note... with keybind and it creates the note, names it as expected 2020-10-29 but does not populate the template?
  • s

    SeeDubLan

    10/30/2020, 8:28 AM
    Er 30 I guess... time flies when I am having fun
  • r

    robothor

    10/30/2020, 8:30 AM
    Ah, I think I figured it out. All my schemas seem to be missing the following:
    Copy code
    version: 1
    schemas:
    If I add that, I get back to the working behavior. TIL
  • r

    robothor

    10/30/2020, 8:30 AM
    Thanks for poking at it as well 🙂
  • s

    SeeDubLan

    10/30/2020, 8:30 AM
    Yep no problem. Wonder how mine had it... I think my vault/workspace initiated more recently than yours?
  • s

    SeeDubLan

    10/30/2020, 8:30 AM
    I do remember Kevin mentioning that now that you came across it, doh
1...112113114...757Latest