Wire browsing a user's shared files into the TUI as a modal tree popup: - press 'b' on a highlighted search result to browse that result's owner, or 'b' elsewhere to type a username (new CommandBarMode::Browse); - a new models/browse.rs synthesizes the flat SharedDirectory list into a nested, collapsible tree (intermediate folders reconstructed from the backslash paths; file download paths kept byte-exact from the original names), with expand/collapse state and a flatten-to-rows renderer — fully unit-tested; - the popup polls take_browse_result each tick (with a timeout), navigates with arrows/hjkl, expands/collapses folders, and queues downloads: Enter on a file, 'd' on a file or an entire folder subtree (recursively) — all funneled into the existing Downloads pane; - shortcuts bar advertises browse keys and surfaces our own sharing status.
12 lines
351 B
Rust
12 lines
351 B
Rust
mod browse_pane;
|
|
mod download_info_pane;
|
|
mod downloads_pane;
|
|
mod results_pane;
|
|
mod searches_pane;
|
|
|
|
pub use browse_pane::render_browse_pane;
|
|
pub use download_info_pane::render_download_info_pane;
|
|
pub use downloads_pane::render_downloads_pane;
|
|
pub use results_pane::{ResultsPaneParams, render_results_pane};
|
|
pub use searches_pane::render_searches_pane;
|