jamalsenouci / sublimetext-syntaxfold

Sublime Text Plugin that provides a configurable command and popup for folding code based on syntax
MIT License
40 stars 6 forks source link

[feature] Automatically create folding regions #3

Closed nwoltman closed 8 years ago

nwoltman commented 9 years ago

It would be nice to have the folding arrow automatically appear once a valid folding region section has been typed. Hopefully you can see what I mean from this image:

foldingregion

jamalsenouci commented 9 years ago

I agree, it's one of the things that I always found annoying. I planned to implement this at one point but never got around to figuring out how. Unfortunately, I have limited time to work on it right now but maybe in a couple of months or so.

nwoltman commented 9 years ago

Yeah I understand it can be difficult to find time for open source work. Thank you for acknowledging this in the meantime.

jamalsenouci commented 9 years ago

It certainly can! No problem, thanks for the contribution.

Enteleform commented 9 years ago

+1

This would be a great feature : )

benruijl commented 9 years ago

+1

Would be great!

IPWright83 commented 8 years ago

+1

I actually assumed this is how it worked... when I couldn't seem to get any arrows (or actually locate my key bindings) I gave up and un-installed it. Now I'm thinking I was a little hasty. Maybe in the meantime the readme needs updating to just illustrate what it actually does.

jamalsenouci commented 8 years ago

I'm pretty sure it's not possible to do this, the control of the arrows is an internal function that is not exposed. So although it calls that function to create them when we fold a region, it is not possible to automatically detect a syntax region and create the arrows. I'll update the readme to note this