trigger_recent_preview

Function trigger_recent_preview 

Source
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 preview PackageItem

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_query and sends over preview_tx; ignores send errors.