expand_selection should take comments into account (like VS Code does) #8888
Unanswered
jasonwilliams
asked this question in
Ideas
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm going to assume this may be some tree sitter question rather than the internals of Helix itself.
When using
expand_selection
its useful to include the comment as part of the same block, this is because you may select the function to move it somewhere else, but the problem right now is the comment doesn't move with it.This is something I think VS Code gets right because the expansion treats the comment above as part of the function.
VS Code selects the comment above the function as part of the expansion

Helix does not recognise the comment

Can this be fixed in Helix or does it need to be applied somewhere else?
Beta Was this translation helpful? Give feedback.
All reactions