md-writer icon indicating copy to clipboard operation
md-writer copied to clipboard

[Feature Request] Show heading-folding toggles always

Open davemacdo opened this issue 5 years ago • 1 comments

Issue

I find it frustrating that I can open a collapsed heading by clicking the "folded" symbol in the left-hand gutter, but that the toggle disappears and I can't recollapse it after. I know the commands to close and open are available, but I would like to have the toggle show all the time (or at least on hover) as when writing code with indents.

Proposed solution

I would like to either by default or optionally enable heading folding toggles displayed for all headings that would show expand/collapse state.

Alternatives

I haven't yet found another package that includes this feature for Markdown, though the feature is part of the core in similar circumstances.

As you can see in this screenshot, if I indent the UL, I can get the desired behavior from the heading, but obviously, that's different Markdown.

Screen Shot 2020-01-12 at 7 59 05 PM

davemacdo avatar Jan 13 '20 02:01 davemacdo

At the time when I implemented the folding command, I have not figured out how to register the toggle automatically.

zhuochun avatar Jan 14 '20 10:01 zhuochun