obsidian-workspaces-plus icon indicating copy to clipboard operation
obsidian-workspaces-plus copied to clipboard

Feature Request: Workspace Switch per note

Open chrisgrieser opened this issue 4 years ago • 6 comments

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
---

chrisgrieser avatar Nov 03 '21 21:11 chrisgrieser

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?

jsmorabito avatar Nov 04 '21 01:11 jsmorabito

a bunch of them, something like:

  • for big notes, switch workspace to a sidebar with in-note-navigation, e.g. outliner plugin, for smaller notes, switch workspace to a sidebar with inter-notes-navigation (outgoing links / backlinks)
  • when switching to your writing notes, change to a workspace where the longform plugin's sidebar replaces the the file explorer

chrisgrieser avatar Nov 04 '21 09:11 chrisgrieser

@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 🙏

jsmorabito avatar Nov 08 '21 19:11 jsmorabito

@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?

nothingislost avatar Nov 09 '21 22:11 nothingislost

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?

chrisgrieser avatar Nov 11 '21 09:11 chrisgrieser

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

promethean avatar Aug 06 '22 08:08 promethean