Hi I'm new here. I just got dendron set up and loo...
# questions
r
Hi I'm new here. I just got dendron set up and looking forward to use it. I have 2 questions I am hoping to get answered. 1) I use Obsidian for my general notes and am bringing in dendron for my technical note taking and dev log. I currently have it set up so that my obsidian vault and dendron vault each have their own repos. Then a dendron directory in my obsidian vault contains a git submodule which has the dendron workspace and the dendron vault loaded as a remote vault. The only issue with this arrangement is that there are technically 2 dendron vaults within the obsidian vault. One is a local vault that lives under dendon/notes and the other remote vault (the one I use) lives under dendron/dependcies/.../devlog. I was wondering if anyone has a suggestion for how to get rid of the local vault and have the remote vault live at the dendron/ folder level without the need for the local vault
k
1. trying to understand the setup. let me know if this is correct?
Copy code
- obsidian vault/
  - ... (obsidian stuff)
  - dendron/ (git submodule)
    - dendron.yml
    - notes/
    - dependencies/
      - devlog/
you want to move
devlog
to where
notes
is right now? 2. currently no. we do have plans of supporting the reverse. please upvote this issue to help us prioritize https://github.com/dendronhq/dendron/issues/463
r
Just added a message to the issue, thank you for sharing @kevins8
And regarding question 1) the exact structure I currently have is
Copy code
- obsidian vault/
  - ... (obsidian stuff)
  - dendron/ 
    - dendron.yml
    - notes/
    - dependencies/
       - gitlab.com/user/repo/
          - devlog/ (git submodule)
What I want is to at least have devlop be in notes as you mentioned previously @kevins8 . However if it is possible, then I would love to have a setup where I can do the following (please don't mind the non canonical folder name usage)
Copy code
- obsidian vault
    - ... (obsidian stuff)
    - dendron/
        - dendron.yml
        - vaults/
             - devlog/ (git submodule)
             - project1vault/ (git submodule)
             - ... (any other vaults I want to integrate and interop with)
I am guessing I may be using the wrong type of workspace. And as for the dependencies/gitlab.com/... stuff, it just happens automatically whenever I paste the repo url into the add vault -> remote vault -> prompt
k
got it. in order to get to your desired configuraiton, you'll need to edit the
dendron.yml
file. specifically, you want to change the path for
devlog
and
project1vault
to the below
Copy code
yml
vaults:
  - fsPath: vaults/devlog
  - fsPath: vaults/project1vault
  ...
afterwards, you will move the submodules underneath
vaults
(create the directory if it doesn't exist) when this is done, run
> Reload Workspace
and then you should be good to go
r
So I shouldn't use the add vault command at all. Just modify the top lovel
dendron.yml
correct? Is there any modifications that need to be made for the
dendron.yml
that is within the remote vault?
k
yep. no modification is needed for the remote urls
r
Ok will execute the above shortly. thank you very much
Hi @kevins8, followed your instructions and everything worked perfectly. If I can ask you one more question, is it possible to remove the local vault that currently occupies the
dendron/notes
area? Is it unadvisable to do so? Can I just have any and all vaults within the
vaults/
directory we discussed?
k
yes. you can remove the entry in
dendron.yml
that has
fsPath: notes
in it
r
Ok simple
Thank you very much. Very excited to be using Dendron and be part of the community
k
glad to have you 🙂 whenever you have a moment, feel free to leave a blurb in #734966064957620294 to say hi to the rest of the community. we have a pinned template in the channel thats useful to find other folks with similar backgrounds/goals
2 Views