pub enum Action<A: ActionExt = NullActionExt> {
Show 58 variants
Select,
Deselect,
Toggle,
CycleAll,
ClearSelections,
Accept,
Quit(i32),
ToggleWrap,
CycleSort,
CyclePreview,
Preview(String),
Help(String),
SetPreview(Option<u8>),
SwitchPreview(Option<u8>),
ToggleWrapPreview,
HScroll(i8),
PreviewHScroll(i8),
PreviewScroll(i8),
PreviewJump,
SetInput(String),
SetHeader(Option<String>),
SetFooter(Option<String>),
SetPrompt(Option<String>),
Column(usize),
CycleColumn,
ColumnLeft,
ColumnRight,
ScrollLeft,
ScrollRight,
Execute(String),
Become(String),
Reload(String),
Print(String),
HistoryUp,
HistoryDown,
ChangePrompt,
ChangeQuery,
ForwardChar,
BackwardChar,
ForwardWord,
BackwardWord,
DeleteChar,
DeleteWord,
DeleteLineStart,
DeleteLineEnd,
Cancel,
InputPos(i32),
Up(u16),
Down(u16),
PreviewUp(u16),
PreviewDown(u16),
PreviewHalfPageUp,
PreviewHalfPageDown,
Pos(i32),
Input(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
CycleSort
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;
ToggleWrapPreview
Toggle wrap in preview
HScroll(i8)
Horizontally scroll either results or preview based on mouse location and wrapping configuration. (unimplemented) 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).
SetInput(String)
Set input query
SetHeader(Option<String>)
Set header
Set footer
SetPrompt(Option<String>)
Set prompt
Column(usize)
Set 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
HistoryUp
History up (TODO)
HistoryDown
History down (TODO)
ChangePrompt
Change prompt (TODO)
ChangeQuery
Change query (TODO)
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
InputPos(i32)
Set input cursor pos
Up(u16)
Move selection index up
Down(u16)
Move selection index down
PreviewUp(u16)
Scroll preview up
PreviewDown(u16)
Scroll preview down
PreviewHalfPageUp
Scroll preview half page up
PreviewHalfPageDown
Scroll preview half page down
Pos(i32)
Jump to absolute position
Input(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