bsegraves / custom-folds

Atom plugin for defining custom markers for foldable regions.
MIT License
24 stars 9 forks source link

Auto-folding on focus gained or lost #39

Open saivan opened 6 years ago

saivan commented 6 years ago

Would it be possible to have a situation where you automatically fold some piece of text and then perhaps unfold it when the cursor leaves the folded area. This would be super useful when writing something like markdown, where we'd want an image to hide the path unless we are on top of it. eg:

![some super long file path](some really crazy custom text)

Could just display in our text editor as:

![{...}]({...})

Which just becomes really nice to help us manage clutter 😃 Thoughts?