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

    alexis<3

    04/06/2022, 7:51 PM
    i see in the documentation that its recomended to not commit your vault and your workspace together, is there a reason for this? it seems like workspace and vault are tightly coupled, at least the default vault generated with startup
  • d

    d1onys1us

    04/06/2022, 8:14 PM
    where do you see this? personally i commit my root workspace, and also have git repos in both my public/private vaults
  • k

    kevins8

    04/06/2022, 8:25 PM
    the main benefit is to use your vault in other workspaces. putting things together in a single repo makes it harder to re-use the vault. that being said - this is a big point of friction which is why we're moving away from workspaces so that every vault can act as its own workspace
  • a

    alexis<3

    04/06/2022, 8:48 PM
    that makes sense @kevins8 and feels inline with how id "expect" it to work given the docs
  • a

    alexis<3

    04/06/2022, 8:49 PM
    @d1onys1us in the quick start it says to add vault to your git ignore i can't remember which page right now im still learning my way around it all
  • a

    alexis<3

    04/06/2022, 8:50 PM
    one quick question with publishing i hae setup a multi vault thing (two concurrent related projects) I would like to publish both in the same space. when i use the publish command it seems to set the landing page as one project - is there a way to setup a landing page that can point at both vaults? or be th eparent of both vaults i guess
  • s

    SeriousBug

    04/06/2022, 8:51 PM
    That's not possible automatically, but you could link or reference the other vault from the one that has the landing page. For example if you add
    ![[dendron://other-vault/root]]
    , the contents of that note will appear in this note. Or without the
    !
    if you just want to link to it.
  • a

    alexis<3

    04/06/2022, 8:52 PM
    its weird how it auto resolves it then... it chose one of the vaults as root, maybe by alphabetical order? and then marked notes in the other vault as children of itself
  • a

    alexis<3

    04/06/2022, 8:53 PM
    i guess publishing multi vault spaces is not a common usecase?
  • a

    alexis<3

    04/06/2022, 8:55 PM
    im experimenting with a setup so i am potentially doing very bizarre things wrt the intentions of dendron :P
  • a

    alexis<3

    04/06/2022, 9:00 PM
    one other question, lets say i want to run an end of the month report - looks like the recommendation is to work with elastic search to do that?
  • i

    IrishAndyB

    04/06/2022, 9:34 PM
    Is it possible to have a remote vault that is a native vault (a subdirectory within a vscode workspace) and not a vscode workspace type vault in itself? I have a vscode project in which I have initialized a "Native" Dendron workspace inside a directory called 'documentation'. I have a second vscode project in which I would like to have the first project as a remote vault.
  • s

    SeriousBug

    04/06/2022, 9:36 PM
    No, but you could convert the vault in the native workspace into a remote vault (give it it's own repository). Then you can have it in both workspaces.
  • i

    IrishAndyB

    04/06/2022, 9:39 PM
    Thank you. I hit send before I finished, there is an error that it cannot find a workspace file. Understood that it is not supported. Not something strictly necessary, it is quite an edge case.
  • a

    alexis<3

    04/06/2022, 9:45 PM
    i wonder, can a remote vault specify which git branch to use? because if thats the case you could create an orphaned docs branch in the project repo (keeping the docs and cod in the same repo) then pull the vault from that orphaned branch. maybe you could do something similar with branch specific git submodules
  • a

    alexis<3

    04/06/2022, 9:45 PM
    basically letting you have the vault be a remote vault in all cases but still part of the code repository instead of needing two repos
  • s

    SeriousBug

    04/06/2022, 9:47 PM
    Not at the moment, but it is planned. You can always manually check out what you need as well, or skip Dendron's remote functionality and use git submodules.
  • a

    alexis<3

    04/06/2022, 9:47 PM
    yeah i was thinking this could be done with git submodules as well, but seems nicer if it could be done in the yml
  • k

    kevins8

    04/06/2022, 9:48 PM
    > its weird how it auto resolves it then... it chose one of the vaults as root, maybe by alphabetical order? and then marked notes in the other vault as children of itself yeah, I believe the behavior today is whatever comes first > i guess publishing multi vault spaces is not a common usecase? publishing of multiple vaults is quite common, just not out of the same workspace 😅 with self contained vaults, you can specify a different publishing configuration on a per vault level so that it becomes easier to publish vaults individually. you can do the same thing today but you would need to create a new workspace for each published destination > one other question, lets say i want to run an end of the month report - looks like the recommendation is to work with elastic search to do that? depends on what goes into your report. are you looking to tally up tasks done? meetings had? etc? depending on what your measuring, scripts may be more lightweight
  • a

    alexis<3

    04/06/2022, 9:49 PM
    so what im wanting to do is create a note for each jira i'm working on and then tag it with the current state (say backlog/in progress/complete) then run a report to find completed in the last month so something like
    modified in <date range> && hasTag(complete)
  • a

    alexis<3

    04/06/2022, 9:53 PM
    what im playing with is a script that runs the publish server locally and auto refreshes the build, because i share my screen a lot as a remote worker and having a nice place to display some findings/graph/etc is easier to do in the browser than from vscode (less clutter) which is why i was trying to publish both vaults from one workspace
  • k

    kevins8

    04/06/2022, 11:26 PM
    got it. so you can actually query dendron interactively since the core of dendron is an express server that runs locally. we haven't published the api yet but its relatively simple to query. plus you can export your entire workspace as json which will let you write scripts over it [JSON Pod](https://wiki.dendron.so/notes/28dfaaf8-4944-447c-be30-39c514a80bb0)
  • a

    alexis<3

    04/07/2022, 1:02 AM
    awesome i will take a look!
  • a

    alexis<3

    04/07/2022, 1:03 AM
    is there a trick to get a new tag to show up in y tree view? i tried reindexing but it won't show up until i restart
  • s

    SeriousBug

    04/07/2022, 1:24 AM
    Thy sounds like a bug. We're currently working on fixing bugs with the tree view, would you mind sending a bug report for it? I'll also tag @hikchoi because I think he's working on it
  • u

    user

    04/07/2022, 2:21 AM
    I wrote a script to pull everything out of the vault except markdown files:
    Copy code
    python
    import os
    import shutil
    
    path = os.getcwd()
    md_list = []
    dst = path + "/references/"
    for root, dirs, files in os.walk("./", topdown=True):
        for filename in files:
            #print(os.path.join(root, filename))
            if not filename.endswith('.md'):
                md_list.append(os.path.join(root,filename))
    
    
    for md in md_list:
        #if not os.path.isfile(md):
        try:
            shutil.move(md, dst)
        except Exception as e:
            print(f"An error was raised but the script will continue: {e}")
            continue
    I tried the
    Import Markdown
    pod again and still got the
    exceeds maximum call stack
    error. However, I tried it on a single directory and it worked except for a file it couldnt resolve. Ill open a bug report and continue to dig into the issue.
  • u

    user

    04/07/2022, 2:44 AM
    Done! https://github.com/dendronhq/dendron/issues/2710
  • k

    kevins8

    04/07/2022, 3:59 AM
    @User when you have cycles, could you do a first pass at ☝️ ?
  • u

    user

    04/07/2022, 4:20 AM
    I realized I had some notes that were 10k lines long. When I removed those from the equation, I was able to import the subdirs, however, still not the entire vault in one go. Ive ensured to remove any long md files and any files that arent md.
  • t

    Tika

    04/07/2022, 10:09 AM
    i think this has been discussed a while back, the hover preview does not render images for me. cannot see an issue on that, has that been closed?
1...601602603...757Latest