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

    moksha

    02/28/2022, 6:06 AM
    In the latest greenhouse talk, I noticed that something like $dd in the file names within the template. I assume this creates the file when the template is initiated with the current date. How does this exactly work? any documentation? The exact timestamp for this is @17:11
  • s

    SeriousBug

    02/28/2022, 6:11 AM
    See the response right above you from Kevin 😅 We do have a way to add the current date in templates but it looks different, see here: https://wiki.dendron.so/notes/GelEQPZrSgr3CK9y10Nrg/#template-variable-replacement It doesn't apply to note names though
  • c

    codeluggage

    02/28/2022, 6:48 AM
    I'm having some odd issues with vscodevim and
    ctrl+d
    /
    ctrl+u
    after opening another note. I don't have an exact repro yet, but it seems to be view specific, so I can keep moving up/down in the other split. 1. Split vscode so 2 files are open (ctrl+d/ctrl+u works) 2. cmd+p (or cmd+o in my case) to open a file 3. pick a markdown file 4. try ctrl+d/ctrl+u, see that it doesn't work 5. go to the other split, see that ctrl+d/ctrl+u works there These are the shortcuts I have set for this now. Been messing around with it but no success:
  • h

    hikchoi

    02/28/2022, 7:12 AM
    Have you tried
    Developer: Toggle Keyboard Shortcuts Troubleshooting
    to see what actually gets dispatched?
    c
    • 2
    • 4
  • h

    hikchoi

    02/28/2022, 7:12 AM
    https://code.visualstudio.com/docs/getstarted/keybindings#_troubleshooting-keybindings
  • c

    codeluggage

    02/28/2022, 7:14 AM
    I have not - will try this, thank you!
  • c

    codeluggage

    02/28/2022, 7:16 AM
    Interesting, can't reproduce with the troubleshooting enabled. I'll turn it on the next time it happens. EDIT: continuing in thread ^
  • m

    moksha

    02/28/2022, 7:37 AM
    Damn that's embarrassing, I should read more on the forum 😖 Thanks for the notice though
  • s

    Silviu

    02/28/2022, 8:21 AM
    Love the "Paste File" command. I was wondering if it's possible to rename a file already in the vault? "Rename Symbol" does not work.
  • s

    Silviu

    02/28/2022, 8:21 AM
    Oh, actually it does something: it I write [[assets/file.pdf]] instead of [file](assets/file.pdf), I can Rename Symbol. But, if I place the cursor on [[assets/file.pdf]] and "Rename Symbol" (say I want to rename it to file2.pdf), it actually moves vault/assets/file.pdf to assets/file2.pdf. i.e. it creates a folder "assets", that is different from the one under "vault" And another weird thing: If I rename [[vault/assets/file.pdf]], it does rename the file this time, and keeps it under vault/assets, but changes the link to [[file.pdf]] after renaming. I can't win 😢
  • s

    Silviu

    02/28/2022, 8:23 AM
    Because now if I open [[file.pdf]] it opens file.pdf.md.
  • s

    Silviu

    02/28/2022, 8:23 AM
    Any suggestions?
  • c

    ccamara

    02/28/2022, 8:33 AM
    Hello everyone! Some days ago my templates for the daily journal stopped working (they weren't applied). I posted a message on github about my schema: https://github.com/dendronhq/dendron/issues/2439 . After fixing a problem with my
    daily.schema.yml
    , they worked for a while, but they have stopped working again. I'm using the following config: One dendron workspace with 3 vaults: 1. Professional 2. Personal (where I want my journals to reside) 3. Templates (where all the schemas and templates reside) Everything is synced with several laptops via git (I use dendron's
    Sync Workspace
    feature). I'm quite lost in how to debug the problem. Can anyone help me with that?
  • c

    ccamara

    02/28/2022, 8:36 AM
    Also, related to that issue: I would like to create all my daily journal in a private vault, while I'd like most of the other content to be in a different vault. Is there any recommended workflow to do that? AFAIK, when using the calendar feature it will create /look for notes in the current vault, and the only way that current's vault is defined is based on the last opened file's location.
  • s

    SeriousBug

    02/28/2022, 9:18 AM
    I'd recommend sending in a feature request! This is just something Dendron doesn't support yet.
  • s

    Silviu

    02/28/2022, 9:20 AM
    Great, thanks!
  • m

    mihaiconstantin

    02/28/2022, 9:21 AM
    Haha, thanks for clarifying this. Good trick!
  • s

    Silviu

    02/28/2022, 9:24 AM
    Another quick question: When I select a text, say "foo", and press Cmd + Shift + S, a scratch note "scratch." is created. I would expect the originally selected text to be changed to [[foo | scratch.]], however that does not happen anymore. While "scratch." is created, no link is inserted, and the originally seleted text, "foo", stays the same. was this functionality changed? I have 0.83.0
  • s

    Silviu

    02/28/2022, 9:26 AM
    VSCode Version: 1.64.2 Commit: f80445acd5a3dadef24aa209168452a3d97cc326 Date: 2022-02-09T22:00:56.651Z (2 wks ago) Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Darwin arm64 21.3.0
  • s

    SeriousBug

    02/28/2022, 9:27 AM
    I think someone ( @User or @User I think? ) from the team noticed this too and is working on a fix. Feel free to send in a bug report though, I don't see one reported already.
  • s

    Silviu

    02/28/2022, 9:28 AM
    Oh ok. Any guildelines anywhere about how I to make a good bug report?
  • s

    SeriousBug

    02/28/2022, 9:29 AM
    I see in the linked issue was caused by a bad schema. Could this be related to a problem with the schema too? We currently don't have a nice way of debugging schemas, but I or someone else can take a look if you can share the schema.
  • s

    SeriousBug

    02/28/2022, 9:30 AM
    The only important thing is including enough information so we can reproduce the issue. What you posted here looks great in my opinion, if you create a bug report with all of this it should be perfect.
  • c

    ccamara

    02/28/2022, 9:32 AM
    Sure! Here's my schema (which is the same as that issue + the fix):
    Copy code
    yaml
    version: 1
    schemas:
    - id: daily
      title: daily
      desc: ""
      parent: root
      children:
        - journal
    - id: journal
      title: journal
      desc: ""
      parent: daily
      children:
        - year
    - id: year
      title: year
      pattern: "[0-2][0-9][0-9][0-9]"
      children: 
        - month
    - id: month
      title: month
      pattern: "[0-9][0-9]"
      children: 
        - day
    - id: day
      title: day
      pattern: "[0-9][0-9]"
      namespace: true
      template:
        # identifier for the template (for a note based template, it would be the name of the note)
        id: templates.journal.day
        # what sort of template we are creating. currently, only 'note' is supported
        type: note
  • s

    SeriousBug

    02/28/2022, 9:33 AM
    Just a whim, but would you mind trying it with
    parent: daily
    removed? Otherwise this looks very similar to the schema I use which works
  • s

    SeriousBug

    02/28/2022, 9:34 AM
    Oh also, I think
    namespace: true
    for the day might mean this will match
    daily.journal.2022.02.28.something
    but not
    daily.journal.2022.02.28
    . Removing that might also work
  • s

    SeriousBug

    02/28/2022, 9:35 AM
    Oh and the template should be
    template: templates.journal.day
    .
  • h

    hikchoi

    02/28/2022, 9:37 AM
    Just FYI that I'm working on the fix right now 🙂
  • h

    hikchoi

    02/28/2022, 9:51 AM
    You can set
    dailyVault
    to be the vault you want the daily journals to be created. like so:
    Copy code
    yaml
    # in dendron.yml
    ...
    workspace:
      journal:
        dailyVault: private
    ...
  • c

    ccamara

    02/28/2022, 10:00 AM
    cool! I'm going to try it!
1...558559560...757Latest