Replies: 2 comments 1 reply
-
Use can use unimparied mode to jump between TS nodes and |
Beta Was this translation helpful? Give feedback.
1 reply
-
Ki editor is out there now prioritizing tree-sitter based structured editing. Deleting/duplicating/reordering syntax nodes is VERY cool, I really want Helix to be able to do that. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Bringing up this idea from emacs' symex plugin. Essentially, any language with tree sitter can have navigation based on structures. E.g.
k
might select the next sibling in the structure.There's already a couple of tree sitter movements
alt-i/o
in helix, I'm wondering why there isn't a good bunch more. I didn't bother checking if I could already make a keymap like this, but if anybody has then please share!With tree sitter, there's also the opportunity to do simple refactors like "raise form" to lift something out of an
if
statement.These will probably work good as a plugin, once the time comes. I hope plugins will have access to tree sitter structures and LSP.
Beta Was this translation helpful? Give feedback.
All reactions