pub enum CoreEvent {
Show 14 variants
SelectAll,
MoveFocus {
delta: i32,
modifiers: Modifiers,
},
ClickEntry {
id: EntryId,
modifiers: Modifiers,
},
DoubleClickEntry {
id: EntryId,
},
SelectByPrefix(String),
ActivateFocused,
NavigateUp,
NavigateTo(PathBuf),
NavigateBack,
NavigateForward,
Refresh,
FocusAndSelectById(EntryId),
ReplaceSelectionByIds(Vec<EntryId>),
ClearSelection,
}Expand description
Input event for driving the dialog core without direct UI coupling.
Variants§
SelectAll
Ctrl+A style select all visible entries.
MoveFocus
Move focus by row/column delta.
Fields
ClickEntry
Click an entry row/cell.
Fields
DoubleClickEntry
Double-click an entry row/cell.
SelectByPrefix(String)
Type-to-select prefix.
ActivateFocused
Activate focused entry (Enter).
Navigate to parent directory.
Navigate to a target directory.
Navigate backward in directory history.
Navigate forward in directory history.
Refresh
Refresh the current directory view (forces a rescan on next tick).
FocusAndSelectById(EntryId)
Focus and select one entry by id.
ReplaceSelectionByIds(Vec<EntryId>)
Replace current selection by entry ids.
ClearSelection
Clear current selection/focus/anchor.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoreEvent
impl RefUnwindSafe for CoreEvent
impl Send for CoreEvent
impl Sync for CoreEvent
impl Unpin for CoreEvent
impl UnsafeUnpin for CoreEvent
impl UnwindSafe for CoreEvent
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