liamcain / obsidian-creases

👕 Tools for effectively folding markdown sections in Obsidian
MIT License
228 stars 8 forks source link

Fold break functionality? #30

Open sisi-sh opened 2 years ago

sisi-sh commented 2 years ago

I came across this looking for a specific solution to my folding issue: I want the content following some folds to stay, denoted by some character. Here's an example, where in my journal I fold timestamps thorughout the day and want to leave the journal footnote intact: fold

I installed this plugin hoping the %% fold %% function would help me do this. Does this plugin do that or am I doing this wrong? I love the workflows with folding this enables nonetheless, so ty.

Lulullia commented 1 year ago

This is really late, but I hope it can help nonetheless – that's the intended functionality for folding, it'll fold everything beneath it until it finds a heading of the same or higher level. The Creases plugin doesn't help with that, its job is to remember WHAT is folded, not how.

One trick I use to get around this when I want something under a heading to be left alone, is to put an empty heading before it, so it looks like this: image

When folding the heading, the rest is not folded because it's under a heading of the same level. image

Or in your case you could just make the "remember" line a heading too!

chenyucheng0503 commented 1 year ago

This feature of Obsidian is really annoying!!!!!!