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

Remove View Cached Windows And Buffers

Open
#2,628 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

View.tabpages and BUFNR_PER_TAB are cached an not always correct. See #2624

Remove the caches and always determine the actual.

Ensure no O(n) calls to View.

get_bufnr
is_visible
get_winnr
open_in_win
abandon_current_window
abandon_all_windows
_prevent_buffer_override

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 tracing View.tabpages and BUFNR_PER_TAB, then inspect the listed View methods and issue #2624 for the cache inconsistency. Done means the cached values are removed, actual state is determined where needed, and the listed paths do not make O(n) View calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, vim
Domain
tooling
Issue type
Refactor
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.