//! Opening the selected file in the user's pager (to preview it).
use Path;
use cratelaunch;
/// Open `path` in the user's pager, blocking until it exits.
///
/// The command is `$PAGER`, falling back to `less`. The value is split on
/// whitespace so simple flags work (e.g. `less -R`, `bat --paging=always`).
/// The caller has already suspended the TUI.