nvim-tree / nvim-tree/nvim-tree.lua

Multi Instance: Refactor: API Accept winid

Open
#2,832 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
8.6k
Forks
639
Avg merge
1d 14h
Merged PRs (30d)
2

Description

Many API families such as api.marks operate globally.

Add options to all API that are window specific to take a winid.

      • {winid}          (number)         apply to the specified winid, otherwise first currently visible

This will be functional, however the fallback will be current behaviour.

A wrapper similar to node may be the solution.

2025-03-22: #3088 is required

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 reviewing the window-specific API families, including api.marks, and the wrapper approach suggested in the issue. Check the required dependency in #3088 before deciding how the APIs should accept winid. Done means all applicable window-specific APIs accept winid while preserving current behavior when it is omitted.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim
Domain
api
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.