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

Partial Collapse

Open
#2,119 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

#2112

Method to recursively collapse a partial tree up to the root level folder.

As per collapse_all but within one sub-tree.

Recursively collapse a node. As per open.edit on an open node however also recursively collapses contents.

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 the existing collapse_all behavior and the open.edit operation referenced in the issue. Implement recursive collapsing for a selected node and its contents without affecting other subtrees, then verify that the selected subtree reaches its root-level collapsed state.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.