Enum zellij_utils::input::actions::Action
source · pub enum Action {
Show 93 variants
Quit,
Write(Vec<u8>),
WriteChars(String),
SwitchToMode(InputMode),
SwitchModeForAllClients(InputMode),
Resize(Resize, Option<Direction>),
FocusNextPane,
FocusPreviousPane,
SwitchFocus,
MoveFocus(Direction),
MoveFocusOrTab(Direction),
MovePane(Option<Direction>),
MovePaneBackwards,
ClearScreen,
DumpScreen(String, bool),
DumpLayout,
EditScrollback,
ScrollUp,
ScrollUpAt(Position),
ScrollDown,
ScrollDownAt(Position),
ScrollToBottom,
ScrollToTop,
PageScrollUp,
PageScrollDown,
HalfPageScrollUp,
HalfPageScrollDown,
ToggleFocusFullscreen,
TogglePaneFrames,
ToggleActiveSyncTab,
NewPane(Option<Direction>, Option<String>),
EditFile(PathBuf, Option<usize>, Option<PathBuf>, Option<Direction>, bool, bool, Option<FloatingPaneCoordinates>),
NewFloatingPane(Option<RunCommandAction>, Option<String>, Option<FloatingPaneCoordinates>),
NewTiledPane(Option<Direction>, Option<RunCommandAction>, Option<String>),
NewInPlacePane(Option<RunCommandAction>, Option<String>),
TogglePaneEmbedOrFloating,
ToggleFloatingPanes,
CloseFocus,
PaneNameInput(Vec<u8>),
UndoRenamePane,
NewTab(Option<TiledPaneLayout>, Vec<FloatingPaneLayout>, Option<Vec<SwapTiledLayout>>, Option<Vec<SwapFloatingLayout>>, Option<String>),
NoOp,
GoToNextTab,
GoToPreviousTab,
CloseTab,
GoToTab(u32),
GoToTabName(String, bool),
ToggleTab,
TabNameInput(Vec<u8>),
UndoRenameTab,
MoveTab(Direction),
Run(RunCommandAction),
Detach,
LeftClick(Position),
RightClick(Position),
MiddleClick(Position),
LaunchOrFocusPlugin(RunPluginOrAlias, bool, bool, bool, bool),
LaunchPlugin(RunPluginOrAlias, bool, bool, bool, Option<PathBuf>),
LeftMouseRelease(Position),
RightMouseRelease(Position),
MiddleMouseRelease(Position),
MouseHoldLeft(Position),
MouseHoldRight(Position),
MouseHoldMiddle(Position),
Copy,
Confirm,
Deny,
SkipConfirm(Box<Action>),
SearchInput(Vec<u8>),
Search(SearchDirection),
SearchToggleOption(SearchOption),
ToggleMouseMode,
PreviousSwapLayout,
NextSwapLayout,
QueryTabNames,
NewTiledPluginPane(RunPluginOrAlias, Option<String>, bool, Option<PathBuf>),
NewFloatingPluginPane(RunPluginOrAlias, Option<String>, bool, Option<PathBuf>, Option<FloatingPaneCoordinates>),
NewInPlacePluginPane(RunPluginOrAlias, Option<String>, bool),
StartOrReloadPlugin(RunPluginOrAlias),
CloseTerminalPane(u32),
ClosePluginPane(u32),
FocusTerminalPaneWithId(u32, bool),
FocusPluginPaneWithId(u32, bool),
RenameTerminalPane(u32, Vec<u8>),
RenamePluginPane(u32, Vec<u8>),
RenameTab(u32, Vec<u8>),
BreakPane,
BreakPaneRight,
BreakPaneLeft,
RenameSession(String),
CliPipe {
pipe_id: String,
name: Option<String>,
payload: Option<String>,
args: Option<BTreeMap<String, String>>,
plugin: Option<String>,
configuration: Option<BTreeMap<String, String>>,
launch_new: bool,
skip_cache: bool,
floating: Option<bool>,
in_place: Option<bool>,
cwd: Option<PathBuf>,
pane_title: Option<String>,
},
KeybindPipe {
name: Option<String>,
payload: Option<String>,
args: Option<BTreeMap<String, String>>,
plugin: Option<String>,
configuration: Option<BTreeMap<String, String>>,
launch_new: bool,
skip_cache: bool,
floating: Option<bool>,
in_place: Option<bool>,
cwd: Option<PathBuf>,
pane_title: Option<String>,
},
ListClients,
}
Expand description
Actions that can be bound to keys.
Variants§
Quit
Quit Zellij.
Write(Vec<u8>)
Write to the terminal.
WriteChars(String)
Write Characters to the terminal.
SwitchToMode(InputMode)
Switch to the specified input mode.
SwitchModeForAllClients(InputMode)
Switch all connected clients to the specified input mode.
Resize(Resize, Option<Direction>)
Shrink/enlarge focused pane at specified border
FocusNextPane
Switch focus to next pane in specified direction.
FocusPreviousPane
SwitchFocus
Move the focus pane in specified direction.
MoveFocus(Direction)
MoveFocusOrTab(Direction)
Tries to move the focus pane in specified direction. If there is no pane in the direction, move to previous/next Tab.
MovePane(Option<Direction>)
MovePaneBackwards
ClearScreen
Clear all buffers of a current screen
DumpScreen(String, bool)
Dumps the screen to a file
DumpLayout
Dumps
EditScrollback
Scroll up in focus pane.
ScrollUp
ScrollUpAt(Position)
Scroll up at point
ScrollDown
Scroll down in focus pane.
ScrollDownAt(Position)
Scroll down at point
ScrollToBottom
Scroll down to bottom in focus pane.
ScrollToTop
Scroll up to top in focus pane.
PageScrollUp
Scroll up one page in focus pane.
PageScrollDown
Scroll down one page in focus pane.
HalfPageScrollUp
Scroll up half page in focus pane.
HalfPageScrollDown
Scroll down half page in focus pane.
ToggleFocusFullscreen
Toggle between fullscreen focus pane and normal layout.
TogglePaneFrames
Toggle frames around panes in the UI
ToggleActiveSyncTab
Toggle between sending text commands to all panes on the current tab and normal mode.
NewPane(Option<Direction>, Option<String>)
Open a new pane in the specified direction (relative to focus). If no direction is specified, will try to use the biggest available space.
EditFile(PathBuf, Option<usize>, Option<PathBuf>, Option<Direction>, bool, bool, Option<FloatingPaneCoordinates>)
Open the file in a new pane using the default editor
NewFloatingPane(Option<RunCommandAction>, Option<String>, Option<FloatingPaneCoordinates>)
Open a new floating pane
NewTiledPane(Option<Direction>, Option<RunCommandAction>, Option<String>)
Open a new tiled (embedded, non-floating) pane
NewInPlacePane(Option<RunCommandAction>, Option<String>)
Open a new pane in place of the focused one, suppressing it instead
TogglePaneEmbedOrFloating
Embed focused pane in tab if floating or float focused pane if embedded
ToggleFloatingPanes
Toggle the visibility of all floating panes (if any) in the current Tab
CloseFocus
Close the focus pane.
PaneNameInput(Vec<u8>)
UndoRenamePane
NewTab(Option<TiledPaneLayout>, Vec<FloatingPaneLayout>, Option<Vec<SwapTiledLayout>>, Option<Vec<SwapFloatingLayout>>, Option<String>)
Create a new tab, optionally with a specified tab layout.
NoOp
Do nothing.
GoToNextTab
Go to the next tab.
GoToPreviousTab
Go to the previous tab.
CloseTab
Close the current tab.
GoToTab(u32)
GoToTabName(String, bool)
ToggleTab
TabNameInput(Vec<u8>)
UndoRenameTab
MoveTab(Direction)
Run(RunCommandAction)
Run specified command in new pane.
Detach
Detach session and exit
LeftClick(Position)
RightClick(Position)
MiddleClick(Position)
LaunchOrFocusPlugin(RunPluginOrAlias, bool, bool, bool, bool)
LaunchPlugin(RunPluginOrAlias, bool, bool, bool, Option<PathBuf>)
LeftMouseRelease(Position)
RightMouseRelease(Position)
MiddleMouseRelease(Position)
MouseHoldLeft(Position)
MouseHoldRight(Position)
MouseHoldMiddle(Position)
Copy
Confirm
Confirm a prompt
Deny
Deny a prompt
SkipConfirm(Box<Action>)
Confirm an action that invokes a prompt automatically
SearchInput(Vec<u8>)
Search for String
Search(SearchDirection)
Search for something
SearchToggleOption(SearchOption)
Toggle case sensitivity of search
ToggleMouseMode
PreviousSwapLayout
NextSwapLayout
QueryTabNames
Query all tab names
NewTiledPluginPane(RunPluginOrAlias, Option<String>, bool, Option<PathBuf>)
Open a new tiled (embedded, non-floating) plugin pane
NewFloatingPluginPane(RunPluginOrAlias, Option<String>, bool, Option<PathBuf>, Option<FloatingPaneCoordinates>)
NewInPlacePluginPane(RunPluginOrAlias, Option<String>, bool)
StartOrReloadPlugin(RunPluginOrAlias)
CloseTerminalPane(u32)
ClosePluginPane(u32)
FocusTerminalPaneWithId(u32, bool)
FocusPluginPaneWithId(u32, bool)
RenameTerminalPane(u32, Vec<u8>)
RenamePluginPane(u32, Vec<u8>)
RenameTab(u32, Vec<u8>)
BreakPane
BreakPaneRight
BreakPaneLeft
RenameSession(String)
CliPipe
Fields
KeybindPipe
Fields
ListClients
Implementations§
source§impl Action
impl Action
pub fn new_from_bytes( action_name: &str, bytes: Vec<u8>, action_node: &KdlNode ) -> Result<Self, ConfigError>
pub fn new_from_string( action_name: &str, string: String, action_node: &KdlNode ) -> Result<Self, ConfigError>
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>,
source§impl From<OnForceClose> for Action
impl From<OnForceClose> for Action
source§fn from(ofc: OnForceClose) -> Action
fn from(ofc: OnForceClose) -> Action
source§impl PartialEq for Action
impl PartialEq for Action
source§impl TryFrom<Action> for ProtobufAction
impl TryFrom<Action> for ProtobufAction
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§
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<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.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.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<D> OwoColorize for D
impl<D> OwoColorize for D
source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
source§fn black<'a>(&'a self) -> FgColorDisplay<'a, Black, Self>
fn black<'a>(&'a self) -> FgColorDisplay<'a, Black, Self>
source§fn on_black<'a>(&'a self) -> BgColorDisplay<'a, Black, Self>
fn on_black<'a>(&'a self) -> BgColorDisplay<'a, Black, Self>
source§fn red<'a>(&'a self) -> FgColorDisplay<'a, Red, Self>
fn red<'a>(&'a self) -> FgColorDisplay<'a, Red, Self>
source§fn on_red<'a>(&'a self) -> BgColorDisplay<'a, Red, Self>
fn on_red<'a>(&'a self) -> BgColorDisplay<'a, Red, Self>
source§fn green<'a>(&'a self) -> FgColorDisplay<'a, Green, Self>
fn green<'a>(&'a self) -> FgColorDisplay<'a, Green, Self>
source§fn on_green<'a>(&'a self) -> BgColorDisplay<'a, Green, Self>
fn on_green<'a>(&'a self) -> BgColorDisplay<'a, Green, Self>
source§fn yellow<'a>(&'a self) -> FgColorDisplay<'a, Yellow, Self>
fn yellow<'a>(&'a self) -> FgColorDisplay<'a, Yellow, Self>
source§fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
source§fn blue<'a>(&'a self) -> FgColorDisplay<'a, Blue, Self>
fn blue<'a>(&'a self) -> FgColorDisplay<'a, Blue, Self>
source§fn on_blue<'a>(&'a self) -> BgColorDisplay<'a, Blue, Self>
fn on_blue<'a>(&'a self) -> BgColorDisplay<'a, Blue, Self>
source§fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
source§fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
source§fn purple<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
fn purple<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
source§fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
source§fn cyan<'a>(&'a self) -> FgColorDisplay<'a, Cyan, Self>
fn cyan<'a>(&'a self) -> FgColorDisplay<'a, Cyan, Self>
source§fn on_cyan<'a>(&'a self) -> BgColorDisplay<'a, Cyan, Self>
fn on_cyan<'a>(&'a self) -> BgColorDisplay<'a, Cyan, Self>
source§fn white<'a>(&'a self) -> FgColorDisplay<'a, White, Self>
fn white<'a>(&'a self) -> FgColorDisplay<'a, White, Self>
source§fn on_white<'a>(&'a self) -> BgColorDisplay<'a, White, Self>
fn on_white<'a>(&'a self) -> BgColorDisplay<'a, White, Self>
source§fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
source§fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
source§fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
source§fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
source§fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
source§fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
source§fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
source§fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
source§fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
source§fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
source§fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
source§fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
source§fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
source§fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
source§fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
source§fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
source§fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
source§fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
source§fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
source§fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
source§fn bold<'a>(&'a self) -> BoldDisplay<'a, Self>
fn bold<'a>(&'a self) -> BoldDisplay<'a, Self>
source§fn dimmed<'a>(&'a self) -> DimDisplay<'a, Self>
fn dimmed<'a>(&'a self) -> DimDisplay<'a, Self>
source§fn italic<'a>(&'a self) -> ItalicDisplay<'a, Self>
fn italic<'a>(&'a self) -> ItalicDisplay<'a, Self>
source§fn underline<'a>(&'a self) -> UnderlineDisplay<'a, Self>
fn underline<'a>(&'a self) -> UnderlineDisplay<'a, Self>
source§fn blink<'a>(&'a self) -> BlinkDisplay<'a, Self>
fn blink<'a>(&'a self) -> BlinkDisplay<'a, Self>
source§fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
source§fn reversed<'a>(&'a self) -> ReversedDisplay<'a, Self>
fn reversed<'a>(&'a self) -> ReversedDisplay<'a, Self>
source§fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg
or
a color-specific method, such as OwoColorize::green
, Read moresource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg
or
a color-specific method, such as OwoColorize::on_yellow
, Read more