Skip to main content

Crate reovim_driver_picker

Crate reovim_driver_picker 

Source
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): Picker trait, 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§

BufferInfo
Information about an open buffer.
CommandInfo
Information about a registered command.
EngineItem
A single item stored in the nucleo engine.
OptionInfo
Information about a registered option.
PickerContext
Context available to picker implementations.
PickerEngine
Streaming fuzzy matching engine.
PickerItem
A single item in picker results.
PickerRegistry
Custom registry for picker implementations.
PreviewContent
Preview content for the selected item.
PreviewHighlight
A syntax highlight span in preview content.
SessionRuntime
Runtime that implements all session API traits.
TickStatus
Status returned by PickerEngine::tick.

Enums§

PickerAction
Action to perform when a picker item is selected.
PickerData
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.