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

Accept counts

Open
#8 6 comments 15 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Tree-sitter Query
Stars
2.8k
Forks
271
Avg merge
8d 8h
Merged PRs (30d)
1

Description

Would be nice if the move commands could accept counts. And also the select commands could accept counts to select an outer textobject in a nested structure.

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

Start by locating the move commands and select commands in the plugin and read how textobjects are resolved in nested structures. Define the expected count behavior for moving and for selecting an outer textobject, then add or update the relevant tests so both command groups accept counts and nested selection reaches the requested level.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.