Sublime Forum

Custom code folding with mouse

#1

Is there any way to customize folded regions? I am programming in Lua and I would like to fold all my function blocks so that the block ending line (containing “end”) is also folded. I created a plugin to do this when user folds/unfolds functions by using keyboard. There just does not seem to be any way to customize mouse behavior to be the same.

Apparently the syntax file “foldingStopMarker” is ignored and the API documentation does not list any mouse events where I could hook my own plugin code. Any ideas?

0 Likes