pub enum KeyAction {
Show 34 variants
ActivateKeyTable {
name: String,
mode: ActivateKeyTableMode,
replace_current: bool,
},
PopKeyTable,
ClearKeyTableStack,
ActivatePaneDirection(Direction),
AdjustPaneSize {
direction: Direction,
amount: i32,
},
SplitPane {
direction: SplitDirection,
},
ClosePane,
ZoomPane,
ActivateTab(i32),
ActivateTabRelative(i32),
SpawnTab,
CloseTab,
MoveTab(i32),
SpawnWindow,
CloseWindow,
ToggleFullscreen,
SendString(String),
SendKey {
key: KeyCode,
mods: KeyModifiers,
},
ScrollByPage(i32),
ScrollByLine(i32),
ScrollToTop,
ScrollToBottom,
ClearScrollback,
Copy,
Paste,
CopyTo(ClipboardKind),
PasteFrom(ClipboardKind),
ActivateCopyMode,
ActivateSearchMode,
CopyMode(CopyModeAction),
Search(SearchAction),
EmitEvent {
event: String,
args: Vec<String>,
},
RunCommand(String),
Noop,
}Expand description
Actions that can be triggered by key bindings
Variants§
ActivateKeyTable
Activate a key table by name
PopKeyTable
Pop the current key table from the stack
ClearKeyTableStack
Clear the entire key table stack
ActivatePaneDirection(Direction)
Activate pane in a direction
AdjustPaneSize
Adjust pane size
SplitPane
Split pane
Fields
direction: SplitDirectionClosePane
Close current pane
ZoomPane
Zoom/maximize current pane
ActivateTab(i32)
Activate tab by index (0-based)
ActivateTabRelative(i32)
Activate tab relative to current (+1, -1, etc)
SpawnTab
Create new tab
CloseTab
Close current tab
MoveTab(i32)
Move tab to index
SpawnWindow
Create new window
CloseWindow
Close current window
ToggleFullscreen
Toggle fullscreen
SendString(String)
Send a string to the terminal
SendKey
Send a specific key combination
ScrollByPage(i32)
Scroll by pages
ScrollByLine(i32)
Scroll by lines
ScrollToTop
Scroll to top
ScrollToBottom
Scroll to bottom
ClearScrollback
Clear scrollback buffer
Copy
Copy selection
Paste
Paste from clipboard
CopyTo(ClipboardKind)
Copy to specific clipboard
PasteFrom(ClipboardKind)
Paste from specific clipboard
ActivateCopyMode
Enter copy mode
ActivateSearchMode
Enter search mode
CopyMode(CopyModeAction)
Copy mode specific actions
Search(SearchAction)
Search mode specific actions
EmitEvent
Emit a custom event
RunCommand(String)
Run a shell command
Noop
No operation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyAction
impl<'de> Deserialize<'de> for KeyAction
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 KeyAction
impl StructuralPartialEq for KeyAction
Auto Trait Implementations§
impl Freeze for KeyAction
impl RefUnwindSafe for KeyAction
impl Send for KeyAction
impl Sync for KeyAction
impl Unpin for KeyAction
impl UnsafeUnpin for KeyAction
impl UnwindSafe for KeyAction
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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
key and return true if they are equal.