nvim-treesitter / nvim-treesitter/nvim-treesitter-textobjects
Question: HTML: how to select inner text of a tag ?
Open
Nobody has claimed this yet.
- Dominant language
- Tree-sitter Query
- Stars
- 2.8k
- Forks
- 271
- Avg merge
- 8d 8h
- Merged PRs (30d)
- 1
Description
Question: HTML: how to select inner text of a tag, i.e. <p>select_this_text<a href="https://example.com">link</a>and this too</p> while a cursor somewhere between <p> and </p> (including) but not between <a ...> and </a> (including) ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue asks how to select text inside an HTML tag while excluding nested link text, but it names no file, test, or entry point. First determine whether the existing textobject queries support this selection; done would be a documented usage pattern or a clearly scoped change request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, vim
- Domain
- tooling
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100