pub struct Selection<'s> {
pub path: &'s Path,
pub line: LineNumber,
pub stype: SelectionType,
pub is_exe: bool,
}
Expand description
light information about the currently selected file and maybe line number
Fields§
§path: &'s Path
§line: LineNumber
§stype: SelectionType
§is_exe: bool
Implementations§
source§impl Selection<'_>
impl Selection<'_>
sourcepub fn to_opener(self, con: &AppContext) -> Result<CmdResult, ProgramError>
pub fn to_opener(self, con: &AppContext) -> Result<CmdResult, ProgramError>
build a CmdResult with a launchable which will be used to 1/ quit broot 2/ open the relevant file the best possible way