nvim-treesitter / nvim-treesitter/nvim-treesitter-textobjects
Number repeat
Nobody has claimed this yet.
- Dominant language
- Tree-sitter Query
- Stars
- 2.8k
- Forks
- 271
- Avg merge
- 8d 8h
- Merged PRs (30d)
- 1
Description
Is your feature request related to a problem? Please describe.
When I type 2<leader>a I expect the parameter to be moved twice. It does not.
Describe the solution you'd like
To be able to type a number before the keybind and for the function to be repeated that number of times.
Describe alternatives you've considered
Record a macro with the movement and then repeat it. This does work.
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
Start by locating the keybind handling for tree-sitter textobject movement and trace how a typed count reaches the movement command. Compare the requested count behavior with the existing macro alternative, then verify that a count such as 2 repeats the movement twice without changing ordinary keybind behavior.
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
- 25/100