Repository navigation
feat(neotree): add recursive tree search - #290
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Neo-tree can only navigate directories that have already been expanded, so finding a nested file requires manually opening folders or abandoning the tree for a separate picker. Large directory snapshots can also hide otherwise valid results.
What changed
/, directory-only search withD, and persistent filtering withf. Search complete workspace-relative paths, expand matching ancestors, highlight matching filename characters, and restore or preserve the tree with Escape,Shift-Enter,Ctrl-Enter, andCtrl-x.How to Test
cargo run --, pressCtrl-eto open Neo-tree, press/, and enterui pick. Confirmsrc/ui/file_picker.rsappears under its automatically expanded parent directories, matching filename characters are highlighted, and Enter opens the file.Dto confirm only matching directories appear. Pressf, enter a query, and press Enter to keep the filtered tree visible; pressCtrl-xto restore the complete tree. Start another/search and press Escape to confirm the original expansion state returns..gitand confirm neither appears; search for a visible dotfile such as.githuband confirm it remains discoverable. OpenCtrl-pafterward and confirm the existing file picker still lists normal workspace files.cargo test workspace_paths::tests --libandcargo test neotree --lib; expect the native search, collapsed-directory integration, directory-only, persistent-filter, and cache-invalidation regressions to pass.cargo run -p husk-cli -- test --locked plugins/neotree_core; expect all seven Neo-tree core tests, including highlighted match rendering, to pass.Also verified the complete workspace test suite,
cargo clippy --all-targets --all-features -- -D warnings, andcargo run -- --self-check.