#[non_exhaustive]pub enum Action<I: ApplicationInfo = EmptyInfo> {
Show 17 variants
NoOp,
Editor(EditorAction),
Macro(MacroAction),
Jump(PositionList, MoveDir1D, Count),
Repeat(RepeatType),
Scroll(ScrollStyle),
KeywordLookup,
RedrawScreen,
ShowInfoMessage(InfoMessage),
Suspend,
Search(MoveDirMod, Count),
Command(CommandAction),
CommandBar(CommandBarAction<I>),
Prompt(PromptAction),
Tab(TabAction<I>),
Window(WindowAction<I>),
Application(I::Action),
}Expand description
The result of either pressing a complete keybinding sequence, or parsing a command.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoOp
Do nothing.
Editor(EditorAction)
Perform an editor action.
Macro(MacroAction)
Perform a macro-related action.
Jump(PositionList, MoveDir1D, Count)
Navigate through the cursor positions in the specified list.
If the current window cannot satisfy the given Count, then this may jump to other windows.
Repeat(RepeatType)
Repeat an action sequence with the current context.
Scroll(ScrollStyle)
Scroll the viewport in the specified manner.
KeywordLookup
Lookup the keyword under the cursor.
RedrawScreen
Redraw the screen.
ShowInfoMessage(InfoMessage)
Show an InfoMessage.
Suspend
Suspend the process.
Search(MoveDirMod, Count)
Find the nth occurrence of the current application-level search.
Command(CommandAction)
Perform a command-related action.
CommandBar(CommandBarAction<I>)
Perform a command bar-related action.
Prompt(PromptAction)
Perform a prompt-related action.
Tab(TabAction<I>)
Perform a tab-related action.
Window(WindowAction<I>)
Perform a window-related action.
Application(I::Action)
Application-specific command.
Implementations§
Source§impl<I: ApplicationInfo> Action<I>
impl<I: ApplicationInfo> Action<I>
Sourcepub fn is_edit_sequence(
&self,
motion: SequenceStatus,
ctx: &EditContext,
) -> SequenceStatus
pub fn is_edit_sequence( &self, motion: SequenceStatus, ctx: &EditContext, ) -> SequenceStatus
Indicates how an action gets included in RepeatType::EditSequence.
motion indicates what to do with EditAction::Motion.
Sourcepub fn is_last_action(&self, ctx: &EditContext) -> SequenceStatus
pub fn is_last_action(&self, ctx: &EditContext) -> SequenceStatus
Indicates how an action gets included in RepeatType::LastAction.
Sourcepub fn is_last_selection(&self, ctx: &EditContext) -> SequenceStatus
pub fn is_last_selection(&self, ctx: &EditContext) -> SequenceStatus
Indicates how an action gets included in RepeatType::LastSelection.
Sourcepub fn is_switchable(&self, ctx: &EditContext) -> bool
pub fn is_switchable(&self, ctx: &EditContext) -> bool
Returns true if this Action is allowed to trigger a WindowAction::Switch after an error.