Don't fold properties after viewing the note in a Page Preview popup

Use case or problem

Every time I use the page preview, the Properties section of that file previewed gets folded, and then when I open that file, the properties are folded. It drives me crazy, I don’t ever want to see that section folded.

Proposed solution

Not sure if there is a technical limitation on this, but I would love to see the properties in the page preview. If there is a limitation, or if people don’t want to see the properties section in the page preview, at least hide that section ONLY in the preview, and then when I open the file, the properties section will be unfolded.

Current workaround (optional)

Is there any workaround to solve this issue?

Example:

Properties on “Test 2” are unfolded:

The page preview shows the properties folded:

Now, when I open the “Test 2” file, the properties will be folded:

I may have not done your exact steps, but I don’t see this behavior in the Obsidian v1.11.1 Sandbox vault in a quick test.

Obsidian_yNGSycr8Z1


I’d follow all the steps in the troubleshooting guide to see if it’s a community plugin, theme, or CSS snippet causing the folding.

Changed title to describe the request instead of the problem (was “Property Section of a file gets folded after using Page Preview feature”).

1 Like

Thanks for the help @ariehen! In the sandbox I couldn’t reproduce the issue (everything works fine), but I tried applying default theme, turn off snippets and plugins, restarted de app, updated installer (and updated everything to last version), and the issue is still present:

1

1 Like

Not sure that this will fix it, but it couldn’t hurt to try the different selections in Settings > Editor > Properties in Documents:


I too have found my Properties unexpectedly collapsed, and I think it directly followed collapsing them in page preview, but I never got to the bottom of it. Expanding them again seemed to persist for me, so I assumed it was my configuration.

But in case it helps with troubleshooting, I’ll mention that the first time I noticed it was in the 1.9.7 release that included:

Fixed properties fold state not always saving correctly when file is in edit mode.

So I half figured Obsidian was now correctly saving something I didn’t realize I had set. But maybe it introduced this bug? Or maybe coincidental.

1 Like

Thanks for the info @dawni. In case this helps, I always had the “Properties in Documents” set to “Visible”.

I found the issue!

When you go to Settings > Editor > Fold heading AND Settings > Editor > Fold indent.

If BOTH options are enabled, there is no problem at all. But when one (or both) get disabled, it generates the issue.

I was able to replicate it in the obsidian sandbox.