Enum zellij_utils::cli::CliAction
source · pub enum CliAction {
Show 47 variants
Write {
bytes: Vec<u8>,
},
WriteChars {
chars: String,
},
Resize {
resize: Resize,
direction: Option<Direction>,
},
FocusNextPane,
FocusPreviousPane,
MoveFocus {
direction: Direction,
},
MoveFocusOrTab {
direction: Direction,
},
MovePane {
direction: Option<Direction>,
},
MovePaneBackwards,
Clear,
DumpScreen {
path: PathBuf,
full: bool,
},
DumpLayout,
EditScrollback,
ScrollUp,
ScrollDown,
ScrollToBottom,
ScrollToTop,
PageScrollUp,
PageScrollDown,
HalfPageScrollUp,
HalfPageScrollDown,
ToggleFullscreen,
TogglePaneFrames,
ToggleActiveSyncTab,
NewPane {
direction: Option<Direction>,
command: Vec<String>,
plugin: Option<String>,
cwd: Option<PathBuf>,
floating: bool,
in_place: bool,
name: Option<String>,
close_on_exit: bool,
start_suspended: bool,
configuration: Option<PluginUserConfiguration>,
},
Edit {
file: PathBuf,
direction: Option<Direction>,
line_number: Option<usize>,
floating: bool,
in_place: bool,
cwd: Option<PathBuf>,
},
SwitchMode {
input_mode: InputMode,
},
TogglePaneEmbedOrFloating,
ToggleFloatingPanes,
ClosePane,
RenamePane {
name: String,
},
UndoRenamePane,
GoToNextTab,
GoToPreviousTab,
CloseTab,
GoToTab {
index: u32,
},
GoToTabName {
name: String,
create: bool,
},
RenameTab {
name: String,
},
UndoRenameTab,
NewTab {
layout: Option<PathBuf>,
layout_dir: Option<PathBuf>,
name: Option<String>,
cwd: Option<PathBuf>,
},
PreviousSwapLayout,
NextSwapLayout,
QueryTabNames,
StartOrReloadPlugin {
url: String,
configuration: Option<PluginUserConfiguration>,
},
LaunchOrFocusPlugin {
floating: bool,
in_place: bool,
move_to_focused_tab: bool,
url: Url,
configuration: Option<PluginUserConfiguration>,
},
LaunchPlugin {
floating: bool,
in_place: bool,
url: Url,
configuration: Option<PluginUserConfiguration>,
},
RenameSession {
name: String,
},
}
Variants§
Write
Write bytes to the terminal.
WriteChars
Write characters to the terminal.
Resize
[increase|decrease] the focused panes area at the [left|down|up|right] border.
FocusNextPane
Change focus to the next pane
FocusPreviousPane
Change focus to the previous pane
MoveFocus
Move the focused pane in the specified direction. [right|left|up|down]
MoveFocusOrTab
Move focus to the pane or tab (if on screen edge) in the specified direction [right|left|up|down]
MovePane
Change the location of the focused pane in the specified direction or rotate forwrads [right|left|up|down]
MovePaneBackwards
Rotate the location of the previous pane backwards
Clear
Clear all buffers for a focused pane
DumpScreen
Dump the focused pane to a file
DumpLayout
Dump current layout to stdout
EditScrollback
Open the pane scrollback in your default editor
ScrollUp
Scroll up in the focused pane
ScrollDown
Scroll down in focus pane.
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.
ToggleFullscreen
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
Fields
configuration: Option<PluginUserConfiguration>
Open a new pane in the specified direction [right|down] If no direction is specified, will try to use the biggest available space.
Edit
Fields
Open the specified file in a new zellij pane with your default EDITOR
SwitchMode
Switch input mode of all connected clients [locked|pane|tab|resize|move|search|session]
TogglePaneEmbedOrFloating
Embed focused pane if floating or float focused pane if embedded
ToggleFloatingPanes
Toggle the visibility of all floating panes in the current Tab, open one if none exist
ClosePane
Close the focused pane.
RenamePane
Renames the focused pane
UndoRenamePane
Remove a previously set pane name
GoToNextTab
Go to the next tab.
GoToPreviousTab
Go to the previous tab.
CloseTab
Close the current tab.
GoToTab
Go to tab with index [index]
GoToTabName
Go to tab with name [name]
RenameTab
Renames the focused pane
UndoRenameTab
Remove a previously set tab name
NewTab
Fields
Create a new tab, optionally with a specified tab layout and name
PreviousSwapLayout
NextSwapLayout
QueryTabNames
Query all tab names
StartOrReloadPlugin
LaunchOrFocusPlugin
Fields
configuration: Option<PluginUserConfiguration>
LaunchPlugin
RenameSession
Trait Implementations§
source§impl<'de> Deserialize<'de> for CliAction
impl<'de> Deserialize<'de> for CliAction
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 FromArgMatches for CliAction
impl FromArgMatches for CliAction
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.source§impl Subcommand for CliAction
impl Subcommand for CliAction
source§fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
source§fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self
can parse a specific subcommandAuto Trait Implementations§
impl RefUnwindSafe for CliAction
impl Send for CliAction
impl Sync for CliAction
impl Unpin for CliAction
impl UnwindSafe for CliAction
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where C: Color,
§fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
§fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
§fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
§fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
§fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
§fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
§fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
§fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
§fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
§fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
§fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
§fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
§fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
§fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
§fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
§fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
§fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
§fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
§fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
§fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
§fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
§fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
§fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
§fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
§fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
§fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
§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 more§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