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

[WiP] New idea: fold all selected types #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mattiasdrp
Copy link
Contributor

Allow the user to chose exactly the type of nodes they want to fold when folding all.

The current implementation expects the user to know the values in the tree-sitter syntax tree which is not really user-friendly.

My idea would be to put this function behind an imenu or something like this to show exactly what are the possible syntax values that can be folded

Allow the user to chose exactly the type of nodes they want to fold
when folding all.

The current implementation expects the user to know the values in the
tree-sitter syntax tree which is not really user-friendly.

My idea would be to put this function behind an imenu or something
like this to show exactly what are the possible syntax values that can
be folded
@jcs090218
Copy link
Member

The feature looks interesting!

My idea would be to put this function behind an imenu or something like this to show exactly what are the possible syntax values that can be folded

This is definitely a great idea! I think completing-read should be sufficient at the moment. Of course, it would be really cool if imenu is supported!

Just ping me once this PR is ready to be review! Thanks! ❤️

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

Successfully merging this pull request may close these issues.

2 participants