How to get a list of foldable lines from editor



I am trying to create a package which would navigate to foldable lines within the editor window.

How can I get a list of foldable lines ?

I have tried


However these only contains “folds/markers/lines” which are already folded.

But when you look at my screenshot … there must be a list of these foldable lines available somewhere within the code because when you hover over the line number area you instantly get a list of them displaying.

Does anybody know how to get hold of this list ? Thank you for helping :slight_smile: