nothingislost / obsidian-workspaces-plus

Quickly switch and manage Obsidian workspaces
GNU General Public License v3.0
197 stars 6 forks source link

Feature Request: Workspace Switch per note #60

Open chrisgrieser opened 2 years ago

chrisgrieser commented 2 years ago

I'd love to see a feature where you can define a workspace in the YAML and when you switch to that note, it also automatically switches workspaces. For example:

---
workspace: Writing
---
jsmorabito commented 2 years ago

I'd love to see a feature where you can define a workspace in the YAML and when you switch to that note, it also automatically switches workspaces. For example:

---
workspace: Writing
---

Interesting idea! Do you have a particular use case in mind for this kind of workflow?

chrisgrieser commented 2 years ago

a bunch of them, something like:

jsmorabito commented 2 years ago

@chrisgrieser these look like workflows that we'll be able to support with our Workspace Modes idea #59. And I think the automatic switching to a mode upon loading the note via YAML would work as well! I've added the idea to that issue. Thanks for sharing 🙏

nothingislost commented 2 years ago

@chrisgrieser how do you see this working when you have multiple panes open? lets say you have 4 active panes in the root section. when you open one of these documents with workspace: Writing in one of the 4 active panes, does that trigger a workspace change? does it leave the existing 4 panes open?

what happens if you open a document with workspace: Writing and then in a different pane, you open a different document with workspace: Reading?

chrisgrieser commented 2 years ago

Hmmm, you raise a good point, I haven't thought about that initially. I think the changes via YAML should probably only affect the sidebars and not the editor itself.

I think you could either have only the left-most pane count, or the most recently opened pane count. Maybe with a setting for the user to decide which one suits them best?

promethean commented 2 years ago

100% want this as a feature. One beauty of Obsidian is designing workspaces for different contexts. I have one for planning, one for writing, one for notes on people etc etc

I was Googling for exactly this idea - to set a workspace in the yaml of a note to open it in a specific workspace.

please do this ! +1