I've got most of the functionality working but I'm stumped on how to get it to respect folded areas of code. Currently it lets you jump to folded areas which it should not do.
The documented API gives us
- Code: Select all
View.visible_region()
The documented API doesn't give any way to query for the folded areas that I can see. Unless there is a key that I can use to retrieve them from
- Code: Select all
View.get_regions(key)
If there is a way for me to get the folded regions in the visible_region, I could easily create a list of Regions out of them that really only decorates the truly visible text with jump targets.