nvim-treesitter / nvim-treesitter/nvim-treesitter-textobjects

Question: HTML: how to select inner text of a tag ?

Open
#882 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.