question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FR: make heading always folded

See original GitHub issue

It 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
liamcaincommented, Mar 19, 2022

Sorry for talking too much, but now that always fold is implemented. I don’t even know why anyone would use save current fold state. If they want to fold, they would add the %% fold %% and if they don’t, they’d leave it empty.

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.

3reactions
liamcaincommented, Mar 19, 2022

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:

image

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found