-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
tag textobject for working with html markup #6682
Comments
Is there any news on this issue now? |
I'm considering to use Helix and I thought this would be possible if Tree Sitter is installed. Doesn't having TS installed offer this functionality? Will having an html LSP server make it work? Sorry I'm asking before trying as I don't want to get into configuring it and find that something like Thanks for letting me know! |
@rifazn having Tresitter or an LSP installed is not enough to make this work. Helix needs to expose the Tresitter objects via keyboard shortcuts to enable something like vim's |
I've been using helix and I absolutely love it, but this one is a bit painful when working on HTML and React. |
would it be possible to simply copy the query files from the nvim repo? there is an can we simply copy them to https://github.com/helix-editor/helix/tree/master/runtime/queries/html ? how does html_tags play into it? |
Just use |
When working with html, having access to a tag textobject is very useful in vim to change content nested in a html-tag.
Here's an example for deleting text in a h1 tag:
Is something like this possible with current treesitter textobjects in helix? Could a tag be mapped to a function or would this interaction require a new textobject?
The text was updated successfully, but these errors were encountered: