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

[Question] Peeking both @function.outer & @class.outer with the same keybind

Open
#514 0 comments 2 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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.