pub enum Command {
Show 111 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,
NextWorkspace,
PreviousWorkspace,
OpenWorkspace,
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
NextWorkspace
Moves to the next workspace in the bar along the bottom.
PreviousWorkspace
OpenWorkspace
Opens another folder beside this one, as a workspace of its own.
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.