pub struct FilesPicker { /* private fields */ }Expand description
Picker for finding files in the project
Implementations§
Source§impl FilesPicker
impl FilesPicker
Trait Implementations§
Source§impl Default for FilesPicker
impl Default for FilesPicker
Source§impl Picker for FilesPicker
impl Picker for FilesPicker
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 FilesPicker
impl RefUnwindSafe for FilesPicker
impl Send for FilesPicker
impl Sync for FilesPicker
impl Unpin for FilesPicker
impl UnwindSafe for FilesPicker
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