FR: make heading always folded
See original GitHub issueIt would be amazing if we could write %% folded %%
and have the heading always fold whenever we open the file, regardless of its previous state.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Collapse or expand parts of a document - Microsoft Support
To collapse or expand all the headings in your document, right-click the heading and click Expand/Collapse > Expand All Headings or Collapse All...
Read more >liamcain/obsidian-creases: Tools for effectively folding ...
In your template file, just make sure that %% fold %% appears on the same line as the heading or list item that...
Read more >Preserve heading/indent foldings on desktop after file is edited ...
Navigate to another file, then back, to confirm that the fold is remembered. Wait a moment for the changes to sync. Navigate to...
Read more >How can I have *both* Markdown header folding and indent ...
You could also use two windows in a tab, each pointing at the same buffer, and set different fold methods locally for each...
Read more >Folding sections of Markdown in Vim - bitcrowd
Only the way lines are displayed is affected by folding. The advantage of folding is that you can get a better overview of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, exactly. I think this makes the most sense, I just didn’t make it the default since it’s a bit more intrusive. But I agree, users likely expect creases to always be folded.
I like the idea, I’m just not sure I want to introduce an extra syntax for always folded creases. I think
%% fold %%
is already confusing enough for new users that this will just add too much complexity. So for now I added a setting to configure how creases work:I think this solves the primary use case for having headings folded so I’ll mark this as complete for now. Feel free to reopen if you feel like there’s a valid use case that requires having both
%% fold %%
and%% folded %%
though!