Remembering heading and indent collapse in notes

When I collapse/fold a heading in a particular note, and I navigate off of that note and then navigate back to that note, it should remember if I collapsed/folded the heading. I don’t know if this should be the behavior when you close and reopen the note, but I do think this should be the behavior for navigation.

Steps to reproduce:

  1. Open note that thas headings
  2. Collapse a heading
  3. Navigate off the note
  4. Navigate back to that note
  5. the heading that was collapsed is no longer collapsed

Expected result:
the heading that was collapsed should still be collapsed.

16 Likes

We had discussions in the past about this. The devs would like to have this feature (if possible).

13 Likes

Saving the status of collapse/expand is a must-have IMO. Without I don’t see much of a use-case of the fold arrow feature in the first place because one intuitively assumes the status will be saved.

This is supported in Org-Mode/Emacs e.g.

5 Likes

when I collapse the content and change to another file , then come back to origin file, the collapse content was expand, hope it will stay the same collapse.

collapse:
image

come back to edit :
image

6 Likes

It’d be great if collapse and expand (with memory) worked as well on lists, so I can collapse the sub bullet points like in Roam

1 Like

I make heavy use of the outlining capability within notes.

As I flesh out an outline, I collapse (fold) sections, to keep just the level of detail I want to be looking at visible.

What’s not working so well with this and needs improvement is, when I navigate away from this note and then return to it, the folded-state that I left it in is gone, and the outline is always completely expanded at every level.

I would like to see the note’s folded state when I left it be retained when I return to it.

33 Likes

Previously requested, albeit combined with the popular fold-in-preview request:

6 Likes

Ah, very good. I did a search before submitting but missed that sentence. Thanks.

+1 to that, I’d also love to see folding work in Preview.

5 Likes

I really need folded-state memory too…

3 Likes

I requested that feature too. I hope obsidian will take the matter seriously.

4 Likes

This sounds close to a P2 UI bug where element state should be respected, even across app restarts.

2 Likes

One of the use cases I can think of is active recall for studying - this would mean SO MUCH and only is a small tweak.

5 Likes

I find folding of bullets very useful for keeping my daily notes easily readable, but I frequently leave my daily note to view something else and then return to take a note. When I return, the folding has been reset.

Persisting fold information (and perhaps any other formatting Obsidian applies to markdown files) would be very useful.

3 Likes

There’s already a feature request for that Note Outline's folded-state memory

But I agree, it would be very helpful.

4 Likes

If I fold a title then re-open the file again, by default it is unfolded. maybe it will be a good feature if the file knows which title was folded before because for some file I just want to see the main title, not the whole thing.

– Me too. A genuine outline mode could be a very popular feature? Thanks.

3 Likes

+1
Dynalist is a role model to follow in this matter.

3 Likes

I don’t understand. Is the outline mode an alternative for the current text editor for notes?

Or do you propose we can switch a particular note between outline mode and ‘note taking mode’?

Short answer: I don’t see them as alternative either/or modes of a note, but rather as different note (information) structuring techniques that should be able to be freely intermixed in a single note.

Three use cases to help illustrate:

  1. During development/iteration of a note: Very often, the earliest written form for me is an outline structure with simple bullet-point sentence fragments, to quickly capture the essential parts and some basic relationships, and then as I iterate on it, over time, parts progressively may get fleshed out into complete paragraphs, headings, etc.
  2. Final representation of a note: The ‘final’ form of a stable note may very likely still have some parts that are best presented as a true outline with outlining features. For example, the various meta-notes that are discussed elsewhere on this forum like TOCs, MOCs, and the like.
  3. Edit vs Preview: It is super useful when editing a longer note to have it structured in an outline fashion, with folding, hoisting (focusing), node annotations, hotkeys that move children with parents, etc, even if the final reader rendering is not going to have all this (e.g., for a PDF publication).

I should add: when thinking of outline mode, it is tempting to think purely of each node containing just short sentence fragments, like a list (which is certainly a legit and common use case), but this is limiting; each node may be a full paragraph itself.

+1

I’d also like to see this feature, but I guess the problem is where to store the folding-state information, as being folded or not is not part of the .md content. But aren’t there other plain text editors which achieve that?

2 Likes