nvim-treesitter / nvim-treesitter/nvim-treesitter-textobjects
[Question] Peeking both @function.outer & @class.outer with the same keybind
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
I am wondering if it is possible to somehow map both @function.outer & @class.outer to 'gp' keymap and peeking each one regarding cursor's position
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 names no file, test, or entry point. Start by tracing how the @function.outer and @class.outer text objects are mapped and how the cursor position selects a target; determine whether one gp keymap can support both behaviors. Done means the intended mapping works for each object at the relevant cursor positions and is covered by an agreed validation path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- neovim
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100