nvim-tree / nvim-tree/nvim-tree.lua
Remove View Cached Windows And Buffers
Open
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
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 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