Skip to content

fix(neotree): restore recursive tree search - #327

Merged
fcoury-oai merged 1 commit into
mainfrom
fcoury/neotree-search-restore
Aug 23, 2026
Merged

fcoury-oai merged 1 commit into
mainfrom
fcoury/neotree-search-restore

Conversation

@fcoury-oai

Copy link
Copy Markdown
Collaborator

NeoTree recursive search landed in #290 but disappeared from main when unbounded tree virtualization landed. As a result, pressing / in an open NeoTree panel currently does nothing.

Summary

  • restore inline recursive search with ranked, ignore-aware workspace path discovery
  • support / search, D directory-only search, persistent f filtering, and Ctrl-x clearing
  • preserve the unbounded virtual tree for normal browsing and use a bounded row projection only while search results are visible
  • keep search indexes current after watched filesystem changes and document the user-facing controls

How to Test

  1. Open Red in a workspace containing files in collapsed nested directories, press Ctrl-e, then /, and enter part of a nested filename. Expect matching paths and their ancestry to appear inline; press Enter and expect the selected file to open.
  2. Repeat the search and press Escape. Expect NeoTree to restore its prior expansion state and return to normal virtualized browsing.
  3. Press D and enter a query matching both a directory and a file. Expect only the directory result. Press f, enter a query, and press Enter; expect the filtered projection to remain navigable until Ctrl-x clears it.

Targeted validation:

  • cargo run --locked -p husk-cli -- test --locked plugins/neotree_core
  • cargo test --locked --all-features workspace_paths
  • cargo test --locked --all-features neotree_
  • cargo test --locked --all-features row_panel_search
  • cargo clippy --all-targets --all-features -- -D warnings

@fcoury
fcoury force-pushed the fcoury/neotree-search-restore branch from eadaff7 to 6b4a578 Compare August 23, 2026 16:44
@fcoury-oai
fcoury-oai merged commit 8d09bfd into main Aug 23, 2026
19 checks passed
@fcoury-oai
fcoury-oai deleted the fcoury/neotree-search-restore branch August 23, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant