pub struct KeymapsPicker { /* private fields */ }Expand description
Picker for viewing keymaps
Implementations§
Source§impl KeymapsPicker
impl KeymapsPicker
Sourcepub fn set_keymaps(&mut self, keymaps: Vec<KeymapEntry>)
pub fn set_keymaps(&mut self, keymaps: Vec<KeymapEntry>)
Set keymaps from bind module
Trait Implementations§
Source§impl Default for KeymapsPicker
impl Default for KeymapsPicker
Source§impl Picker for KeymapsPicker
impl Picker for KeymapsPicker
Source§fn fetch(
&self,
_ctx: &PickerContext,
) -> Pin<Box<dyn Future<Output = Vec<MicroscopeItem>> + Send + '_>>
fn fetch( &self, _ctx: &PickerContext, ) -> Pin<Box<dyn Future<Output = Vec<MicroscopeItem>> + Send + '_>>
Fetch items asynchronously
Source§fn on_select(&self, _item: &MicroscopeItem) -> MicroscopeAction
fn on_select(&self, _item: &MicroscopeItem) -> MicroscopeAction
Handle selection of an item
Source§fn preview(
&self,
item: &MicroscopeItem,
_ctx: &PickerContext,
) -> Pin<Box<dyn Future<Output = Option<PreviewContent>> + Send + '_>>
fn preview( &self, item: &MicroscopeItem, _ctx: &PickerContext, ) -> Pin<Box<dyn Future<Output = Option<PreviewContent>> + Send + '_>>
Optional: preview content for the selected item
Source§fn supports_live_filter(&self) -> bool
fn supports_live_filter(&self) -> bool
Whether this picker supports live filtering vs full re-fetch
If true, the picker only needs to fetch once and nucleo handles filtering
If false, the picker needs to re-fetch on each query change (e.g., live grep)
Auto Trait Implementations§
impl Freeze for KeymapsPicker
impl RefUnwindSafe for KeymapsPicker
impl Send for KeymapsPicker
impl Sync for KeymapsPicker
impl Unpin for KeymapsPicker
impl UnwindSafe for KeymapsPicker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more