"Focus" Mode for Writing

My use cas is: get distracted when writing longer documents. I find myself losing focus when I can see the entire page structure (for me - this is my weekly note with lots of stuff laying around).

What I’m missing: The ability to “dive into” a specific header (or bullet point) and work on just that section - similar to how outliner apps let you zoom into a node. This doesn’t need to be a full outliner experience - just a way to slice your document visually for less distractions.

Possible approaches:

  • Diving navigation - treat headers as documents. Something like [[Article##Header]] or http://sb/article##header could open just that section in place
  • CSS-based hiding - hide everything except the current header/section you’re working on (maybe already doable with Space Style?)

Curious if others feel this need or if there’s already a way to achieve this I’m missing?

3 Likes

To answer the question if you’re missing anything: no, this is not a feature right now.

I see how it can be helpful though, sounds good. Feel free to create a github issue for it, maybe it can be picked up, or you want to try this yourself. :slight_smile:

Made a git issue of the idea - keeping my fingers crossed.

I’m not (nor have ever been) an experienced developer and I’m pretty sure it’s beyond my capabilities as a humble script coder.

I went for a little LLM-aided walk through the code base, and it looks it’s not a minor functionality considering current architecture. So fo now it’s just :crossed_fingers: for the idea to gain some community traction.

Thx

I wonder if it is feasible to do this with virtual pages.
Run a command to extract the current section (heading until next heading or end of file), open it in a virtual page. When page closes, replace original section in document?

Just a first idea that comes to mind, but maybe it’s over engineered or has other shortcomings (sync race conditions come to mind). :smiley:

Virtual pages can only be read only at the moment