lostintangent / wikilens

🔎 VS Code extension that provides a Roam/Obsidian-like markdown-based notetaking experience for github.dev and VS Code
https://aka.ms/wikilens
128 stars 8 forks source link

Support multi-root workspaces #27

Open RossBarnie opened 2 years ago

RossBarnie commented 2 years ago

I have a multi-root workspace open with my daily code projects, this allows me to switch between the back-end and front-end code with ease.

Creating wiki pages using WikiLens commands (eg WikiLens: Open Today Page) creates a Daily folder within the first root folder in my workspace, which would appear to match the note in this document:

Note: If an extension doesn't yet support multiple folders, it will still work in the first folder of your multi-root workspace.

Ideally this extension would support multi-root workspaces so that I can have another root folder that contains all of my wiki entries, so I can seamlessly add wiki entries throughout the day.

Example workspace file:

{
    "folders": [
        {
            "path": "."
        },
        {
            "path": "../ui"
        },
        {
            "path": "../devops"
        },
        {
            "path": "../wiki"
        },
    ],
}

Current workaround is to change the above like so:

{
    "folders": [
        {
            "path": "../wiki"
        },
        {
            "path": "."
        },
        {
            "path": "../ui"
        },
        {
            "path": "../devops"
        }
    ],
}

However this relies on other extensions supporting multi-root workspaces.