LaPingvino / zed-fountain

A Zed extension adding Fountain support
MIT License
0 stars 0 forks source link

Scene and section folds #1

Open gabrielmontagne opened 2 weeks ago

gabrielmontagne commented 2 weeks ago

Thanks so much for enabling Fountain support on Zed!

One feature that would be nice is support for folding the script based on scenes, sections, etc. Here is the feature on VSCode, for example, where sections, and scenes, can be recursively folded,

image image

Currently, zed-fountain only supports folds on header fields,

image image

Cheers!

LaPingvino commented 2 weeks ago

I looked into it, and it looks like Zed does this automatically based on indentation! I didn't manage to find a way to enable folding based on the document structure instead... The header field folds exactly because it is tabbed/indented. If you add the tabs to the rest of your document, it will add the folds too... If you find any other way to add support, let me know, happy to add it! Feel free to play around with the code, and if you get stuck, I can help you out as well!

gabrielmontagne commented 2 weeks ago

Thanks for checking @LaPingvino! Strange findings. Sure, I'll take a look on my end too. Cheers.