Augmenting Workspaces as an Alternative to Nested Vaults

Use case or problem

I posted a comment on the below linked feature request, which I feel should be it’s own request as that request is somewhat old and this idea is different enough.

I’m proposing an alternative to nested vaults that should be much simpler to implement than the linked request and avoid adding too much cognitive load for new users.

Proposed solution

It’d be nice if, in any workspace other than the default workspace, the graph and link auto-completion don’t show any notes that haven’t already been opened or created in the workspace.

I.e. if I switch to a new workspace, the graph would be empty, and typing brackets wouldn’t show any autocomplete results (other than the current note). The files would show up, however, in the file-open modal as usual, so you could search for any file in the vault

The file browser would have a toggle to only show files in the workspace, and when toggled off you could bulk add multiple files to the workspace without having to open all of them by right clicking and selecting the option in the context menu. Potentially, the search view and graph view could have the same toggle, so you can switch between the workspace and global graph/search without having to switch workspaces.

Related feature requests (optional)

4 Likes

I certainly feel that this alternative idea has more merit. I do not personally like the idea of nested vaults at all as it makes the concept of a vault ambiguous and brings with it a lot of unnecessary complexities.

In my use case I would like to be able to switch to a clean workspace of the type you describe when I start on a major project. While in that workspace I only want see what I have added to it as default but have a hotkey/button override to see links to the wider universe of notes when I am collecting information from the vault. IMHO it extends the concept of a workspace into something more useful than its current implementation as a form of stash.

3 Likes

I see no reason to pose the request as an alternative to nested vaults. It should stand, or not, on its own merits.
Nested vaults are not a feature of Obsidian, they are simply a possibility in the way it is used. And they offer possibilities that expanded workspaces do not. People choose to use them or they don’t.

Noob question: what is a “workspace” in the sense that you’re referring to? Is it a user-facing concept? (I’ve seen it in the plugin API, but as far as I can tell there’s just the singleton workspace there.)

In any case, what you’re suggesting sounds like exactly the sort of feature I’m hoping for. (I recently posted about it here.) Presumably it would be easy to create a workspace from a folder.

EDIT: I did some digging and figured out how to enable the workspaces plugin. I’m not sure I 100% grok how workspaces are supposed to be used, but it does seem like tying a workspace to a set of “files I’m interested in” would be a sensible approach.

1 Like

Such as? All I can think of is using a different set of plugins, which could also potentially be workspace specific (much like vscode has workspace specific settings)

I pose it as an alternative because that’s what it is, a safer alternative that accomplishes the same goal in a simpler way than other suggested solutions

Workspaces are pretty much just a way to save a view layout. IMO it makes more sense currently to call them layouts than workspaces, and making them true workspaces (as they are seen in various other applications) is part of the motivation for this suggestion

What you’re saying here resonates with me a lot. When I think “workspace” I think of my desk — where I might get out some papers, rearrange them, put some away…and then, the next time I come back, I expect everything to be the way I left it. It’s weird that when I load a workspace it’s just a snapshot of the first time I saved it.

2 Likes

Just a few off the top of my head:

  • Faster
  • Much better interoperability with other programs
  • Enables multiple windows

Your suggestion doesn’t achieve the same advantages as nested vaults, and nested vaults are perfectly safe with a modicom of knowledge.
There’s nothing wrong with your suggestion, it simply isn’t the same type of thing as nested vaults.

What do you mean by faster? Why exactly would workspaces be slow? Files outside of the current workspace could be lazily loaded and evicted when switching workspaces, no need to process the whole vault. And I don’t see that being a problem in the first place unless you have a very large vault on a slower machine.

Nested vaults don’t, themselves, make interoperability with other programs better, the file structure does. One could easily have all files in a workspace under one directory, so that’s not really a distinction between the two, and in fact, the proposed workspaces would be even better as they allow linking across directories which doesn’t work well with nested vaults.

Enabling multiple windows on one vault is potentially something the devs could allow, but they haven’t for a reason. Yes people can be safe with a ‘modicom’ of background knowledge of possible snafu’s, but that’s bad UX. This is a general application for a wide range of users including non-technical people who have expectations for how workspaces should work derived from experience in other applications.

There may be other use cases of nested vaults that workspaces can’t accomplish (I doubt it) but regardless of what technically can and can’t be done with either at this moment in time, I do think that most users looking at using nested vaults are doing so with the same objectives outlined here, which is why this is suggested as an alternative. I.e. they may not be the entirely the same thing, but they’re intended, and would most commonly be used, to fulfil the same purpose, and I believe this is a better way of doing it. But this is just semantics at this point and it really doesn’t add anything meaningful to the conversation to argue about whether or not it’s an alternative or it’s own thing.

2 Likes

Use case or problem

I have two vaults, WORK and PERSONAL. I don’t want the UI to be different between them (hotkeys, plugins, themes), but at the same time, I don’t want them to be merged into a single vault.

I don’t want my favorite movies note popping up when I’m at work. It’s clutter and distracting.

Proposed solution

Like many others, having multiple vaults = a lot of maintenance keeping the settings/plugins the same across them. I read many posts about this with many hacks and work arounds to keep them synced. A lot of feature requests for .obsidian folder synchronization.

My idea is taking a different approach. I say, have a single vault with all your settings, but change what is visible. Like the core plugin Workspaces, where it saves tab layout and positioning; why not take it one step further to add what type of notes you want visible. This could use Tags or utilize the new properties feature to filter what you want to see.

An example is I would have all my WORK notes tagged #work, in the Workspaces plugin, you could setup a workspace to only show files with #work. This means only these files would be shown in the File Explorer pane (or maybe a new workspace pane where the files are filtered). To obsidian, the other files do not exist. You can’t link to “hidden” files and they won’t show up in a search or quick switcher.

This way when I’m at work with my WORK workspace turned on, it will be just like it’s own vault. Same goes for when I go home, I can choose my HOME workspace, or if I desire, go back to default Obsidian that shows everything.

All the pros of separate vaults, but keeping the same Obsidian setup.

Of course, the separate vaults would still be available for when you want to have different setups for different activities.

Current workaround (optional)

Right now, I don’t have any workarounds. Best I can do is merge everything together. Make two high level root folders for WORK and PERSONAL, and tag them all or give them a property. Each time I search something and know it was for work, I’d have to always include the #work as part of the search query.

Related feature requests (optional)

Here’s a post with lots of requests for the vault settings sync. I think my solution would be simpler and easier to implement.

2 Likes

All the pros of separate vaults

Actually, it’s missing at least two of the pros of separate vaults:

  • Sometimes you need to keep information completely separate, including where it’s stored. Work and personal is one example—this can be critical, depending on what you do and who you work for.

  • If you use Obsidian Sync, you can have up to five vaults, each up to 10 GB. You can fit twice as much in two separate vaults as you can in a single one.

I’m not saying your idea isn’t interesting or valuable in its own right, but it wouldn’t negate the need to sync settings and customizations across multiple vaults.

1 Like

I think this could be cool and could be a step toward something that would be nice for even my job. I like to keep notes and use some things day in and day out.
Some parts of my life I am fine with IT seeing in my vault others, I don’t want them to be aware of.

Possibly a duplicate of:

Related:

I agree. That’s why I mentioned that the separate vault functionality is still there to use and is valuable. Good points of the data size and separate storage locations, I did not think of those. I tend not to put super confidential data in my work one so I didn’t value the separate file locations. Thanks for the reply!

1 Like

Oh wow. I did search this a lot, I promise! lol. I must of not had the wording right; but yea, all of these are exactly what I’m talking about. Too bad obsidian didn’t have a more organized way of feature requests like how github works. Maybe they have their own thing on keeping track of these. Thanks for linking to all of these.

Searching is tricky sometimes. :upside_down_face:

The forum is how the team tracks this stuff. And to help with that, I’ll merge this thread into that first one. (For posterity: thread title was “Add note visibility to the Workspaces plugin”.)