Tag textobjects #315
christianholman
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
If you're fine with simple RegExp-based selections, you can use the For more advanced usages, Dance can interface with Tree Sitter but you need to build and install the Tree Sitter API extension first. Also, the only commands which use Tree Sitter are |
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
-
Was wondering if there's any work done on this already? I'm using a helix-like keybinding settings, and being able to match in/around tags for JSX etc would be amazing. I've tried to emulate the effect with commands to no luck. Seriously the only thing that the vim extensions have over the other modal editors for me right now. I implemented it in meow-edit for emacs by using Treesitter jsx nodes so that could be an approach I imagine.
Here's the tagMatcher.ts from VsCodeVim:
https://github.com/VSCodeVim/Vim/blob/master/src/common/matching/tagMatcher.ts
Beta Was this translation helpful? Give feedback.
All reactions