Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code folding support #91

Open
NeomMob opened this issue May 1, 2016 · 2 comments
Open

code folding support #91

NeomMob opened this issue May 1, 2016 · 2 comments

Comments

@NeomMob
Copy link

NeomMob commented May 1, 2016

How difficult it is to add code folding support in fragaria?

@shysaur
Copy link
Owner

shysaur commented May 2, 2016

Implementing the folding itself is not particularly difficult. How to do it is covered in depth by an old WWDC session. Even though they store the folding ranges in the text storage (which is not really a great option if you support multiple text boxes having the same text storage like Fragaria does), it's not very difficult to store the folded ranges elsewhere.

On the other hand, detecting interesting folding ranges (like all blocks bounded by {}) is going to be hard because the current parsing code is totally inadequate for this purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@NeomMob @shysaur and others