pub enum Action {
Show 100 variants
Noop,
AppendToOutputBuffer {
bufid: usize,
content: String,
},
BalanceActiveColumn,
BalanceAll,
BalanceColumns,
BalanceWindows,
ChangeDirectory {
path: Option<String>,
},
CleanupChild {
id: u32,
},
ClearScratch,
CommandMode,
Delete,
DeleteBuffer {
force: bool,
},
DeleteColumn {
force: bool,
},
DeleteWindow {
force: bool,
},
DotCollapseFirst,
DotCollapseLast,
DotExtendBackward(TextObject, usize),
DotExtendForward(TextObject, usize),
DotFlip,
DotSet(TextObject, usize),
DotSetFromCoords {
coords: Coords,
},
DragWindow {
direction: Arrow,
},
EditCommand {
cmd: String,
},
EnsureFileIsOpen {
path: String,
},
ExecuteDot,
ExecuteString {
s: String,
},
Exit {
force: bool,
},
ExpandDot,
FindFile {
new_window: bool,
},
FindRepoFile {
new_window: bool,
},
FocusBuffer {
id: usize,
},
InsertChar {
c: char,
},
InsertString {
s: String,
},
JumpListForward,
JumpListBack,
KillRunningChild,
LoadDot {
new_window: bool,
},
LspCompletion,
LspFormat,
LspGotoDeclaration,
LspGotoDefinition,
LspGotoTypeDefinition,
LspHover,
LspReferences,
LspRename,
LspRenamePrepare,
LspShowCapabilities,
LspShowDiagnostics,
LspStart,
LspStop,
MarkClean {
bufid: usize,
},
MbSelect(MbSelector),
NewEditLogTransaction,
NewColumn,
NewWindow,
NextBuffer,
NextColumn,
NextWindowInColumn,
OpenFile {
path: String,
},
OpenFileInNewWindow {
path: String,
},
OpenTransientScratch {
name: String,
txt: String,
},
OpenVirtualFile {
name: String,
txt: String,
},
Paste,
Plumb {
txt: String,
new_window: bool,
},
PreviousBuffer,
PreviousColumn,
PreviousWindowInColumn,
RawInput {
i: Input,
},
Redo,
ReloadActiveBuffer,
ReloadBuffer {
id: usize,
},
ReloadConfig,
RenameActiveBuffer {
name: String,
},
ResizeActiveColumn {
delta: i16,
},
ResizeActiveWindow {
delta: i16,
},
RunMode,
SamMode,
SaveBuffer {
force: bool,
},
SaveBufferAll {
force: bool,
},
SaveBufferAs {
path: String,
force: bool,
},
SearchInCurrentBuffer,
SendKeys {
ks: Vec<Input>,
},
SelectBuffer,
SetViewPort(ViewPort),
SetMode {
m: &'static str,
},
SetStatusMessage {
message: String,
},
ShellPipe {
cmd: String,
},
ShellReplace {
cmd: String,
},
ShellRun {
cmd: String,
},
ShellSend {
cmd: String,
},
ShowHelp,
ToggleScratch,
TsShowTree,
Undo,
ViewLogs,
XDotSetFromCoords {
coords: Coords,
},
XInsertString {
s: String,
},
Yank,
DebugBufferContents,
DebugEditLog,
}Expand description
Supported actions for interacting with the editor state
Variants§
Noop
AppendToOutputBuffer
BalanceActiveColumn
BalanceAll
BalanceColumns
BalanceWindows
ChangeDirectory
CleanupChild
ClearScratch
CommandMode
Delete
DeleteBuffer
DeleteColumn
DeleteWindow
DotCollapseFirst
DotCollapseLast
DotExtendBackward(TextObject, usize)
DotExtendForward(TextObject, usize)
DotFlip
DotSet(TextObject, usize)
DotSetFromCoords
DragWindow
EditCommand
EnsureFileIsOpen
ExecuteDot
ExecuteString
Exit
ExpandDot
FindFile
FindRepoFile
FocusBuffer
InsertChar
InsertString
JumpListForward
JumpListBack
KillRunningChild
LoadDot
LspCompletion
LspFormat
LspGotoDeclaration
LspGotoDefinition
LspGotoTypeDefinition
LspHover
LspReferences
LspRename
LspRenamePrepare
LspShowCapabilities
LspShowDiagnostics
LspStart
LspStop
MarkClean
MbSelect(MbSelector)
NewEditLogTransaction
NewColumn
NewWindow
NextBuffer
NextColumn
NextWindowInColumn
OpenFile
OpenFileInNewWindow
OpenTransientScratch
OpenVirtualFile
Paste
Plumb
PreviousBuffer
PreviousColumn
PreviousWindowInColumn
RawInput
Redo
ReloadActiveBuffer
ReloadBuffer
ReloadConfig
RenameActiveBuffer
ResizeActiveColumn
ResizeActiveWindow
RunMode
SamMode
SaveBuffer
SaveBufferAll
SaveBufferAs
SearchInCurrentBuffer
SendKeys
SelectBuffer
SetViewPort(ViewPort)
SetMode
SetStatusMessage
ShellPipe
ShellReplace
ShellRun
ShellSend
ShowHelp
ToggleScratch
TsShowTree
Undo
ViewLogs
XDotSetFromCoords
XInsertString
Yank
DebugBufferContents
DebugEditLog
Trait Implementations§
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl !RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl !UnwindSafe for Action
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.