Repository navigation
feat(tree): move reusable tree rendering into rust - #357
Merged
Merged
Conversation
Contributor
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
Broad Neo-tree searches can exhaust Husk's instruction budget while constructing matching rows and their ancestors, quarantining the plugin and closing the tree. Searching
needleacross 80 deeply nested files reproduces the failure even though the result set is capped at 48 matches.Route browsing and search through the existing Rust
TreePanelModel, preserving icons, Git and clipboard decorations, Unicode match highlights, selection, and viewport rendering. Remove the duplicate Husk tree/status renderer and exposeUpdateTreePanel,TreePanelSpec, andTreePanelChildrenin host API 0.18 so other plugins can supply custom node IDs and styled rows. Filesystem actions and path helpers remain in Husk; the general instruction-budget policy and search-index cap remain separate work.Also prevent Vim repeat counts from consuming digits in active panel searches: typing
needle-079.rspreviously producedneedle-0.rs.How to Test
cargo test --lib neotree_search_virtualizes_deep_results_without_husk_rendering. The deep fixture should produce 385 native rows with highlighted matches, preserve the first result selection, and cancel successfully without exhausting Husk's budget.cargo test --lib custom_treeandcargo test --lib plugins_can_publish_a_native_tree_without_neotree. Custom trees should retain their row order, styles, selection, and panel actions; invalid parents, duplicate IDs, and reserved IDs should be rejected.needle-079.rsin a scratch workspace and launch it withcargo run --bin red -- --root <workspace>. Open:NeoTree, press/, and type the filename one character at a time. Every digit should remain in the query, and Enter should open the matching file. Repeat and press Escape to restore browsing. Check thatDsearches directories andfkeeps a filter until Ctrl-X clears it. The numeric-input regression is also covered bycargo test --lib panel_search_accepts_digits_without_starting_a_vim_repeat_count.Validated on the code committed as
97bc40df: 2,491 library tests passed (3 ignored), Clippy passed with--all-targets --all-features -- -D warnings, and build/format checks passed. Seven terminal captures were byte-identical to the baseline across browsing, exact search, cancellation, directory search, persistent filtering, clearing the filter, and opening a result. The broad-search and typed-prefix terminal checks also passed.