# Outline does not remember state between restarts

**URL:** <https://forum.obsidian.md/t/outline-does-not-remember-state-between-restarts/75202>\
**Category:** Feature requests\
**Tags:** outline, ui-ux\
**Created:** [January 18, 2024, 11:28am UTC](https://forum.obsidian.md/t/outline-does-not-remember-state-between-restarts/75202 "2024-01-18T11:28:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zwergziege](https://forum.obsidian.md/user_avatar/forum.obsidian.md/zwergziege/32/60510_2.png) [@Zwergziege](https://forum.obsidian.md/u/Zwergziege)\
**Post date:** [January 18, 2024, 11:28am UTC](https://forum.obsidian.md/t/outline-does-not-remember-state-between-restarts/75202/1 "2024-01-18T11:28:57Z")

</div>

### Use case or problem

Currently, the document outline does not remember its state regarding folding between restarts.

I have a few longer documents with several sections and subsections. I actively work on only a few of the sections at a period of time, for some I just want to look up stuff there and many are irrelevant. The outline really helps when looking stuff up, but the sections that are momentarily irrelevant often get in the way. So I collapse them. And again on the next day 😅 It’s not tragic but a bit annoying nonetheless.

### Proposed solution

You guessed it: Save the state of the outline between restarts. Either as part of the current workspace or as meta information attached to the document (same as for the folding state).

### Workaround

This could be worked around by using the outline or document search. I find that argument weak because you could also employ it to the existence of the outline. Also I don’t always know what to search for, but seeing the headings I’d know which to pick.

### Related feature requests

The FR below is probably the better option and easier to implement, since folding is already remembered for notes and all you have to do is copy that state to the outline. The only benefit I could see in my FR is that it allows having different folding states in the document and the outline, but I don’t know whether there is a proper use case for that.

> [@Sync editor/preview folds with outline view](https://forum.obsidian.md/t/sync-editor-preview-folds-with-outline-view/59039):
>
> Sometimes a document can be quite long, and the outline view in the sidebar is used to jump to relevant positions in the document without having to manually scroll down. It would be great if the headers in editor/preview would fold/unfold when you fold/unfold a header in the outline view. There was an obsidian plugin that did this - [Creases](https://github.com/liamcain/obsidian-creases) - but that feature broke at the end of last year. Currently, in the Creases plugin, the outline will fold/unfold when a header is folded/unfolded in the e…

This FR is a duplicate of the FR below which was merged with another (implemented) FR as an implementation detail that sadly never made it.

> [@Note Outline's folded-state memory](https://forum.obsidian.md/t/note-outlines-folded-state-memory/1640):
>
> 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 i…

Edit: There also seems to be a regression. The FR below was said to be implemented but the same issue occurs for me on v1.5.3. Also it mentions relaunching in the title, which I overlooked in my original search. So maybe this should be transformed into a bug report?

> [@Outline does not remember state—expands when note is edited, when app is relaunched, etc](https://forum.obsidian.md/t/outline-does-not-remember-state-expands-when-note-is-edited-when-app-is-relaunched-etc/22317):
>
> Steps to reproduce Make an outline Collapse outline Start typing in the main note Expected result I expected the outline to stay collapsed while I typed. Actual result It expands spontaneously while I type. When working with longer notes this is very annoying, as I might want the bird’s eye view of the note rather than all the subheadings. Environment Operating system: Windows 10 Obsidian version: 0.12.12 Additional information

---

<div class="post-metadata">

**Author:** ![CawlinTeffid](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cawlinteffid/32/82899_2.png) [@CawlinTeffid](https://forum.obsidian.md/u/CawlinTeffid)\
**Post date:** [January 20, 2024, 5:24am UTC](https://forum.obsidian.md/t/outline-does-not-remember-state-between-restarts/75202/2 "2024-01-20T05:24:05Z")

</div>

I tested once each (without following the [debugging steps](https://forum.obsidian.md/t/24/11)) on MacOS, where the outline was forgotten, and iOS, where it was remembered.

---

<div class="post-metadata">

**Author:** ![Zwergziege](https://forum.obsidian.md/user_avatar/forum.obsidian.md/zwergziege/32/60510_2.png) [@Zwergziege](https://forum.obsidian.md/u/Zwergziege)\
**Post date:** [January 22, 2024, 10:09am UTC](https://forum.obsidian.md/t/outline-does-not-remember-state-between-restarts/75202/3 "2024-01-22T10:09:54Z")

</div>

Thx for bringing this up. I observed the “forget state between launches”-issue on Linux in a new vault. I observed the “expand on edit”-issue in an existing vault but did not try it in a new one.

---

<div class="post-metadata">

**Author:** ![dandv](https://forum.obsidian.md/user_avatar/forum.obsidian.md/dandv/32/22611_2.png) [@dandv](https://forum.obsidian.md/u/dandv)\
**Post date:** [February 15, 2025, 6:20pm UTC](https://forum.obsidian.md/t/outline-does-not-remember-state-between-restarts/75202/4 "2025-02-15T18:20:23Z")

</div>

On Linux, folded state in the outline is reliably forgotten simply by deleting a paragraph in Source mode.

I’ve also seen mismatched folding states in Source mode - the heading showing as folded (`>` and the `...` at the end), but the text within expanded.

I’d be happy to construct a minimal repro test case and screencast if the team has the bandwidth and priority to fix these issues, just let me know.

---

<div class="post-metadata">

**Author:** ![shumadrid](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/s/ea5d25/32.png) [@shumadrid](https://forum.obsidian.md/u/shumadrid)\
**Post date:** [February 19, 2025, 7:17pm UTC](https://forum.obsidian.md/t/outline-does-not-remember-state-between-restarts/75202/5 "2025-02-19T19:17:57Z")

</div>

Adding to the outline cache issues:

On Mac, if you search for a term in the outline plugin and then delete the search, and restart Obsidian, the previous term that you searched for will come back to the search field, requiring you to keep deleting search terms to use the plugin properly.

---

<div class="post-metadata">

**Author:** ![CawlinTeffid](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cawlinteffid/32/82899_2.png) [@CawlinTeffid](https://forum.obsidian.md/u/CawlinTeffid)\
**Post date:** [February 20, 2025, 8:09am UTC](https://forum.obsidian.md/t/outline-does-not-remember-state-between-restarts/75202/6 "2025-02-20T08:09:44Z")

</div>

That might be worth reporting separately as a bug.

---

<div class="post-metadata">

**Author:** ![dandv](https://forum.obsidian.md/user_avatar/forum.obsidian.md/dandv/32/22611_2.png) [@dandv](https://forum.obsidian.md/u/dandv)\
**Post date:** [February 25, 2025, 12:12pm UTC](https://forum.obsidian.md/t/outline-does-not-remember-state-between-restarts/75202/7 "2025-02-25T12:12:35Z")

</div>

> [@dandv](#):
>
> On Linux, folded state in the outline is reliably forgotten simply by deleting a paragraph in Source mode.

Reported this separately at [Outline tab does not stay collapsed and scrolls while typing (expands, unfolds headings) - #25 by dandv](https://forum.obsidian.md/t/outline-tab-does-not-stay-collapsed-and-scrolls-while-typing-expands-unfolds-headings/74905/25)

> [@dandv](#):
>
> I’ve also seen mismatched folding states in Source mode - the heading showing as folded (`>` and the `...` at the end), but the text within expanded.

@CawlinTeffid I’ll file a separate report when I encounter this reliably again.
