pub fn trigger_recent_preview(
app: &AppState,
preview_tx: &UnboundedSender<PackageItem>,
)Expand description
What: Trigger an asynchronous preview fetch for the selected Recent query when applicable.
Inputs:
app: Application state (focus, selection, recent list)preview_tx: Channel to send the previewPackageItem
Output:
- Spawns a task to resolve and send a preview item; no return payload; exits early when inapplicable.
Details:
- Requires: focus on Recent, a valid selection within the filtered view, and a query string present.
- Resolves via
fetch_first_match_for_queryand sends overpreview_tx; ignores send errors.