Hacker News new | past | comments | ask | show | jobs | submit login

https://github.com/zenozeng/yafolding.el

has been around for at least a decade -- and that is basically helper code on top of functionality that's been available for longer than a fair few people reading this have been alive.






From the linked post:

> First, only method bodies are folded. This is a syntactic check — we are not folding the second level.


i’m also entirely sure you could do this “properly” with tree sitter and some small fiddling

edit: by way of https://github.com/mickeynp/combobulate/issues/27, it's been done: https://github.com/emacs-tree-sitter/ts-fold




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: