Skip to main content

Crate hjkl_picker

Crate hjkl_picker 

Source
Expand description

Fuzzy picker subsystem for hjkl-based apps.

Provides the non-generic Picker harness driven by a Box<dyn PickerLogic>, built-in file (FileSource) and grep (RgSource) sources, a fuzzy scorer, and preview infrastructure. The PickerLogic trait allows apps to add custom sources without modifying picker internals.

Re-exports§

pub use logic::PickerAction;
pub use logic::PickerEvent;
pub use logic::PickerLogic;
pub use logic::RequeryMode;
pub use picker::Picker;
pub use preview::PREVIEW_MAX_BYTES;
pub use preview::PreviewSpans;
pub use preview::build_preview_spans;
pub use preview::load_preview;
pub use score::score;
pub use source::FileSource;
pub use source::GrepBackend;
pub use source::RgMatch;
pub use source::RgSource;
pub use source::detect_grep_backend;
pub use source::extract_json_string;
pub use source::extract_json_u32;
pub use source::parse_grep_line;
pub use source::parse_rg_json_line;

Modules§

logic
picker
Modal fuzzy picker — popup overlay over the editor pane.
preview
score
source