pub enum Action {
}Expand description
A fully-resolved editor action — what the keymap emits, what the buffer consumes.
Variants§
Move(Motion)
Move every cursor by motion.
Operator(Operator)
Begin an operator (the d/c/y key). The editor enters
operator-pending: the next motion composes into an Action::ApplyOperator.
Resolved by the operator-pending FSM, never executed directly.
ApplyOperator
Apply a pending operator over a motion (delete-word, yank-line, etc.).
Edit(Edit)
Apply a primitive edit at each cursor.
ChangeMode(Mode)
Enter the given mode.
Command
Run a named command (via the command registry).
InsertChar(char)
Insert a character at each caret. Separate from Edit so the keymap can stay ignorant of rope details.
SubmitCommand
Submit a minibuffer / command-mode line (e.g. :w, :q).
Undo
Undo / redo one change.
Redo
Save
Save the current buffer.
Quit
Quit the editor.
Pending
No-op — used when a key sequence is pending but not yet complete.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Action
Source§impl JsonSchema for Action
impl JsonSchema for Action
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more