-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Fold the nearest node in the line #57
Comments
I'm using I don't have a strong opinion and don't know what provides the best UX. Therefore, I didn't choose to improve it until I knew what to do. 🤔 |
I see, I believe it makes more sense to have this behavior in |
Also coming from |
Thanks for showing interest in this feature! Please give the first post upvote 👍, so I know how many people are interested in this feature. 🤔 |
Upvoted. Thank you for your work on this package (and others) 🙂 |
Assume I have the following line and my cursor is at the beginning of the line.
Calling
ts-fold-open
does not open the fold, I have to move my cursor to the folding overlay to be able to open that. I am really accustomed to this flow from other folding modes, so it would be nice to have this kind of feature. I am currently using AndrewSwerlick's treesit.el fork1, let me know if this works on the original case but not in the fork. Currently I have no way of confirming this but assumed that the behavior is the same in upstream.To fix this, I added the following function:
and replaced all
ts-fold--foldable-node-at-pos
calls with this function. Probably a sub-optimal solution but it works for me.The text was updated successfully, but these errors were encountered: