Expand description
Picker driver for reovim.
This driver defines the interface for pluggable fuzzy finder data sources. Following the mechanism/policy separation:
- Mechanism (this driver):
Pickertrait, types,PickerRegistry,PickerEngine - Policy (modules): Implementations like
FilesPicker,BuffersPicker,GrepPicker
§Architecture
server/lib/drivers/picker/ -> Trait + Types + Registry + Engine (MECHANISM)
server/modules/microscope/ -> Picker implementations + orchestration (POLICY)Structs§
- Buffer
Info - Information about an open buffer.
- Command
Info - Information about a registered command.
- Engine
Item - A single item stored in the nucleo engine.
- Option
Info - Information about a registered option.
- Picker
Context - Context available to picker implementations.
- Picker
Engine - Streaming fuzzy matching engine.
- Picker
Item - A single item in picker results.
- Picker
Registry - Custom registry for picker implementations.
- Preview
Content - Preview content for the selected item.
- Preview
Highlight - A syntax highlight span in preview content.
- Session
Runtime - Runtime that implements all session API traits.
- Tick
Status - Status returned by
PickerEngine::tick.
Enums§
- Picker
Action - Action to perform when a picker item is selected.
- Picker
Data - Data associated with a picker item, determines action on selection.
Traits§
- Picker
- Trait for pluggable data sources in the fuzzy finder.
Functions§
- file_
type_ icon - Get a Nerd Font icon char for a file extension.
- icon_
for_ path - Get icon char from a file path string by extracting the extension.
- push_
item - Push a single item into the engine via an injector.
- push_
items - Push multiple items into the engine via an injector.