zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.97k stars 2.7k forks source link

Markdown outline and folding support #4924

Open StephenSmithwick opened 1 year ago

StephenSmithwick commented 1 year ago

Check for existing issues

Describe the feature

Currently the html editor breaks editor content into a hierarchy which can be folded (hidden) by clicking on the carrot() in the margin.

Can we have a similar capability added to markdown.

The suggested behaviour would be similar to vscode's current solution:

⌄ # Header 1
  Some content
⌄ ## Sub Header
  Some more content
⌄ ## Header 2
  The final content
  1. Clicking on carrot beside Header 1 would hide all content below Header 1 up to Header 2
  2. Clicking on carrot beside Sub Header would hide content below Sub Header up to Header 2
  3. Editing the header line can be edited in place without expanding.
  4. Editing the line below the hidden content would re-expand the hidden content

If applicable, add mockups / screenshots to help present your vision of the feature

No response

notpeter commented 1 month ago

More Markdown folding ideas: