Skip to main content

Command

Enum Command 

Source
pub enum Command {
Show 108 variants Move(Direction, bool), Newline, Type(char), Indent, Outdent, DeleteBackward, DeleteForward, Undo, Redo, Copy, Cut, Paste, SelectAll, SelectNextMatch, Save, CloseTab, NextTab, PreviousTab, SplitPane, FocusNextPane, ToggleSidebar, QuickOpen, CommandPalette, FindInProject, OpenDiff, AddComment, BlameLine, ReplaceInProject, MarkdownPreview, OpenInBrowser, FocusAgent, BuildPdf, ExportPdf, ComparePlanVersions, ShowInPdf, MaximizePane, MaximizeEditor, ToggleComment, MoveLineUp, MoveLineDown, DuplicateLine, DeleteLine, InsertLineBelow, InsertLineAbove, SelectAllMatches, AddCursorAbove, AddCursorBelow, NextChange, PreviousChange, NextProblem, PreviousProblem, GoToLine, DeleteWordLeft, DeleteWordRight, DeleteToLineStart, DeleteToLineEnd, FindInFile, ReplaceInFile, Format(Format), SendToAgent, MentionSelection, AcceptProposal, RejectProposal, ApprovePlan, SendBackPlan, ShowAgents, CloseDock, ShowOutline, ShowSourceControl, ToggleTerminal, NewTerminal, ShowComments, ShowBrowser, ListAgents, RunCell, ClearOutputs, RunAllCells, InterruptKernel, RestartKernel, ShowGuide, NewDocument, ToggleTracking, AcceptChange, RejectChange, ToggleSpelling, AcceptAllChanges, RejectAllChanges, ReviewPreviousTurn, UndoTurn, Commit, OpenClaude, OpenCodex, OpenGemini, OpenSettings, SwitchBranch, GoToDefinition, QuickFix, ShowHover, GoBack, GoForward, GoToReferences, FormatDocument, Complete, RenameSymbol, SelectLines(usize), PasteLine, Cancel, Quit,
}
Expand description

Anything the user can ask for. Each entry is also a command-palette item unless it needs arguments.

Variants§

§

Move(Direction, bool)

§

Newline

§

Type(char)

Types one character, as a key would.

§

Indent

§

Outdent

§

DeleteBackward

§

DeleteForward

§

Undo

§

Redo

§

Copy

§

Cut

§

Paste

§

SelectAll

§

SelectNextMatch

§

Save

§

CloseTab

§

NextTab

§

PreviousTab

§

SplitPane

§

FocusNextPane

§

ToggleSidebar

§

QuickOpen

§

CommandPalette

§

FindInProject

§

OpenDiff

§

AddComment

§

BlameLine

§

ReplaceInProject

§

MarkdownPreview

§

OpenInBrowser

§

FocusAgent

Moves the keyboard between the file and the side pane.

§

BuildPdf

Builds the paper in view, and shows the PDF.

§

ExportPdf

Writes the document as a PDF beside it.

§

ComparePlanVersions

The plan in review against the version before it, as suggestions.

§

ShowInPdf

Scrolls the PDF to the line the caret is on.

§

MaximizePane

The side pane, or the editor in front, takes the window, or gives it back.

§

MaximizeEditor

§

ToggleComment

§

MoveLineUp

§

MoveLineDown

§

DuplicateLine

§

DeleteLine

VS Code’s Ctrl+Shift+K.

§

InsertLineBelow

A new line below this one, or above, without splitting it: Ctrl+Enter, Ctrl+Shift+Enter.

§

InsertLineAbove

§

SelectAllMatches

Every place the selection or word appears, as cursors: Ctrl+Shift+L.

§

AddCursorAbove

A cursor on the line above or below as well: Ctrl+Alt+Up and Down.

§

AddCursorBelow

§

NextChange

The next suggestion in the document, or the one before: Alt+F5, Shift+Alt+F5.

§

PreviousChange

§

NextProblem

The next problem in the file, or the one before: F8, Shift+F8.

§

PreviousProblem

§

GoToLine

§

DeleteWordLeft

§

DeleteWordRight

§

DeleteToLineStart

§

DeleteToLineEnd

§

FindInFile

§

ReplaceInFile

Find with the replace row open.

§

Format(Format)

§

SendToAgent

§

MentionSelection

§

AcceptProposal

§

RejectProposal

§

ApprovePlan

§

SendBackPlan

§

ShowAgents

§

CloseDock

§

ShowOutline

Shows the document’s headings in the sidebar.

§

ShowSourceControl

Shows what’s changed, to stage and commit, in the sidebar.

§

ToggleTerminal

Brings a terminal up in the pane, starting one if there is none, or puts it away.

§

NewTerminal

Starts another terminal in the pane.

§

ShowComments

Brings the comments up in the pane, or puts them away.

§

ShowBrowser

Brings the pane’s browser up, or starts one, or puts it away.

§

ListAgents

Brings the list of agents up in the pane, or puts it away.

§

RunCell

Runs the notebook cell the caret is in.

§

ClearOutputs

Clears what every cell printed.

§

RunAllCells

§

InterruptKernel

Stops what the notebook’s kernel is doing.

§

RestartKernel

Starts the notebook’s kernel again, forgetting what it held.

§

ShowGuide

Opens the guide to getting started.

§

NewDocument

Starts a new document.

§

ToggleTracking

Keeps typing in this document as suggested changes.

§

AcceptChange

§

RejectChange

§

ToggleSpelling

Turns spelling and grammar checks on or off.

§

AcceptAllChanges

§

RejectAllChanges

§

ReviewPreviousTurn

§

UndoTurn

§

Commit

§

OpenClaude

§

OpenCodex

§

OpenGemini

§

OpenSettings

§

SwitchBranch

§

GoToDefinition

§

QuickFix

The language server’s fixes and refactors at the caret: Ctrl+. in VS Code.

§

ShowHover

What the language server says about the symbol at the caret.

§

GoBack

Back to where the last jump left from, as VS Code’s Go Back and Vim’s Ctrl+O.

§

GoForward

§

GoToReferences

§

FormatDocument

§

Complete

§

RenameSymbol

§

SelectLines(usize)

Selects this many whole lines from the cursor.

§

PasteLine

Pastes after the cursor, or below it for a copied line.

§

Cancel

§

Quit

Trait Implementations§

Source§

impl Clone for Command

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Command

Source§

impl Debug for Command

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Command

Source§

impl PartialEq for Command

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Command

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.