pub enum Action<A: ActionExt = NullActionExt> {
Show 52 variants
Select,
Deselect,
Toggle,
CycleAll,
ClearSelections,
Accept,
Quit(i32),
ToggleWrap,
Up(u16),
Down(u16),
Pos(i32),
PageDown,
PageUp,
CyclePreview,
Preview(String),
Help(String),
SetPreview(Option<u8>),
SwitchPreview(Option<u8>),
TogglePreviewWrap,
PreviewUp(u16),
PreviewDown(u16),
PreviewHalfPageUp,
PreviewHalfPageDown,
HScroll(i8),
PreviewHScroll(i8),
PreviewScroll(i8),
PreviewJump,
Column(usize),
CycleColumn,
ColumnLeft,
ColumnRight,
ScrollLeft,
ScrollRight,
Execute(String),
Become(String),
Reload(String),
Print(String),
ForwardChar,
BackwardChar,
ForwardWord,
BackwardWord,
DeleteChar,
DeleteWord,
DeleteLineStart,
DeleteLineEnd,
Cancel,
SetQuery(String),
QueryPos(i32),
Char(char),
Redraw,
Custom(A),
Overlay(usize),
}Expand description
Variants§
Select
Add item to selections
Deselect
Remove item from selections
Toggle
Toggle item in selections
CycleAll
Toggle all selections
ClearSelections
Clear all selections
Accept
Accept current selection
Quit(i32)
Quit with code
ToggleWrap
Toggle wrap
Up(u16)
Move selection index up
Down(u16)
Move selection index down
Pos(i32)
PageDown
PageUp
CyclePreview
Cycle preview layouts
Preview(String)
Show/hide preview for selection
Help(String)
Show help in preview
SetPreview(Option<u8>)
Set preview layout; None restores the command of the current layout.
SwitchPreview(Option<u8>)
Switch or toggle preview: If an index is provided and the index is already current, the preview is hidden.
TogglePreviewWrap
Toggle wrap in preview
PreviewUp(u16)
Scroll preview up
PreviewDown(u16)
Scroll preview down
PreviewHalfPageUp
Scroll preview half page up in rows. If wrapping is enabled, the visual distance may exceed half a page.
PreviewHalfPageDown
Scroll preview half page down in rows. If wrapping is enabled, the visual distance may exceed half a page.
HScroll(i8)
Horizontally scroll either results or preview based on mouse location and wrapping configuration. (TODO) 0 to reset.
PreviewHScroll(i8)
Persistent horizontal scroll 0 to reset.
PreviewScroll(i8)
Persistent single-line vertical scroll 0 to reset.
PreviewJump
Jump between start, end, last, and initial locations. (unimplemented).
Column(usize)
Set active column
CycleColumn
Cycle columns
ColumnLeft
ColumnRight
ScrollLeft
ScrollRight
Execute(String)
Execute command and continue
Become(String)
Exit and become
Reload(String)
Reload matcher/worker
Print(String)
Print via handler
ForwardChar
Move cursor forward char
BackwardChar
Move cursor backward char
ForwardWord
Move cursor forward word
BackwardWord
Move cursor backward word
DeleteChar
Delete char
DeleteWord
Delete word
DeleteLineStart
Delete to start of line
DeleteLineEnd
Delete to end of line
Cancel
Clear input
SetQuery(String)
Set input query
QueryPos(i32)
Set query cursor pos
Char(char)
Insert char into input
Redraw
Force redraw
Custom(A)
Custom action
Overlay(usize)
Activate the nth overlay
Trait Implementations§
impl<A: ActionExt> StructuralPartialEq for Action<A>
Auto Trait Implementations§
impl<A> Freeze for Action<A>where
A: Freeze,
impl<A> RefUnwindSafe for Action<A>where
A: RefUnwindSafe,
impl<A> Send for Action<A>
impl<A> Sync for Action<A>
impl<A> Unpin for Action<A>where
A: Unpin,
impl<A> UnsafeUnpin for Action<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for Action<A>where
A: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more