Skip to main content

find_selected_index

Function find_selected_index 

Source
pub(crate) fn find_selected_index(
    display_texts: &[String],
    item: &Arc<dyn SkimItem>,
) -> Option<usize>
Expand description

Recovers the original source-vector index by matching a selected item’s output text against the display texts collected before running skim.