Skip to main content

Module interactive

Module interactive 

Source

Structsยง

IndexedSkimItem ๐Ÿ”’
SearchCorpusEngine ๐Ÿ”’
SearchCorpusEngineFactory ๐Ÿ”’

Functionsยง

base_skim_options ๐Ÿ”’
Shared [SkimOptions] base: reverse layout, no info line, accept/abort keybindings, input-order preserved during filtering.
build_ansi_display_items ๐Ÿ”’
clip_match_range ๐Ÿ”’
get_item_from_cli_args_or_select
Returns an item derived from CLI args or asks the user to select one.
minimal_multi_select
Provides a minimal interactive multi-select prompt.
minimal_select
Minimal interactive single-select returning Option::None if opts is empty or the user cancels.
require_single
Require exactly one selected item.
run_simple_prompt ๐Ÿ”’
Runs [skim] with plain-text input lines and returns Option::None on abort.
run_skim_prompt ๐Ÿ”’
Feeds display-text items into [skim] via [SkimItemReader] and returns the selection output alongside the original display texts for index recovery.
run_skim_with_matcher ๐Ÿ”’
select_options ๐Ÿ”’
Configures [SkimOptions] for single or multi-select mode with ANSI support.
simple_prompt_options ๐Ÿ”’
Lightweight prompt options with a visible prompt string and fixed height.
text_prompt
Displays a text input prompt with the given message, allowing cancellation via Esc / Ctrl-C.
yes_no_select
Displays a yes/no selection prompt.