pub struct Options {Show 45 fields
pub simplified_ui: Option<bool>,
pub theme: Option<String>,
pub default_mode: Option<InputMode>,
pub default_shell: Option<PathBuf>,
pub default_cwd: Option<PathBuf>,
pub default_layout: Option<PathBuf>,
pub layout_dir: Option<PathBuf>,
pub theme_dir: Option<PathBuf>,
pub mouse_mode: Option<bool>,
pub pane_frames: Option<bool>,
pub mirror_session: Option<bool>,
pub on_force_close: Option<OnForceClose>,
pub scroll_buffer_size: Option<usize>,
pub copy_command: Option<String>,
pub copy_clipboard: Option<Clipboard>,
pub copy_on_select: Option<bool>,
pub osc8_hyperlinks: Option<bool>,
pub scrollback_editor: Option<PathBuf>,
pub session_name: Option<String>,
pub attach_to_session: Option<bool>,
pub auto_layout: Option<bool>,
pub session_serialization: Option<bool>,
pub serialize_pane_viewport: Option<bool>,
pub scrollback_lines_to_serialize: Option<usize>,
pub styled_underlines: Option<bool>,
pub serialization_interval: Option<u64>,
pub disable_session_metadata: Option<bool>,
pub support_kitty_keyboard_protocol: Option<bool>,
pub web_server: Option<bool>,
pub web_sharing: Option<WebSharing>,
pub stacked_resize: Option<bool>,
pub show_startup_tips: Option<bool>,
pub show_release_notes: Option<bool>,
pub advanced_mouse_actions: Option<bool>,
pub mouse_hover_effects: Option<bool>,
pub visual_bell: Option<bool>,
pub focus_follows_mouse: Option<bool>,
pub mouse_click_through: Option<bool>,
pub web_server_ip: Option<IpAddr>,
pub web_server_port: Option<u16>,
pub web_server_cert: Option<PathBuf>,
pub web_server_key: Option<PathBuf>,
pub enforce_https_for_localhost: Option<bool>,
pub post_command_discovery_hook: Option<String>,
pub client_async_worker_tasks: Option<usize>,
}Expand description
Options that can be set either through the config file, or cli flags - cli flags should take precedence over the config file TODO: In order to correctly parse boolean flags, this is currently split into Options and CliOptions, this could be a good canditate for a macro
Fields§
§simplified_ui: Option<bool>Allow plugins to use a more simplified layout that is compatible with more fonts (true or false)
theme: Option<String>Set the default theme
default_mode: Option<InputMode>Set the default mode
default_shell: Option<PathBuf>Set the default shell
default_cwd: Option<PathBuf>Set the default cwd
default_layout: Option<PathBuf>Set the default layout
layout_dir: Option<PathBuf>Set the layout_dir, defaults to subdirectory of config dir
theme_dir: Option<PathBuf>Set the theme_dir, defaults to subdirectory of config dir
mouse_mode: Option<bool>Set the handling of mouse events (true or false) Can be temporarily bypassed by the [SHIFT] key
pane_frames: Option<bool>Set display of the pane frames (true or false)
mirror_session: Option<bool>Mirror session when multiple users are connected (true or false)
on_force_close: Option<OnForceClose>Set behaviour on force close (quit or detach)
scroll_buffer_size: Option<usize>§copy_command: Option<String>Switch to using a user supplied command for clipboard instead of OSC52
copy_clipboard: Option<Clipboard>OSC52 destination clipboard
copy_on_select: Option<bool>Automatically copy when selecting text (true or false)
osc8_hyperlinks: Option<bool>Enable OSC8 hyperlink output (true or false)
scrollback_editor: Option<PathBuf>Explicit full path to open the scrollback editor (default is $EDITOR or $VISUAL)
session_name: Option<String>The name of the session to create when starting Zellij
attach_to_session: Option<bool>Whether to attach to a session specified in “session-name” if it exists
auto_layout: Option<bool>Whether to lay out panes in a predefined set of layouts whenever possible
session_serialization: Option<bool>Whether sessions should be serialized to the HD so that they can be later resurrected, default is true
serialize_pane_viewport: Option<bool>Whether pane viewports are serialized along with the session, default is false
scrollback_lines_to_serialize: Option<usize>Scrollback lines to serialize along with the pane viewport when serializing sessions, 0 defaults to the scrollback size. If this number is higher than the scrollback size, it will also default to the scrollback size
styled_underlines: Option<bool>Whether to use ANSI styled underlines
serialization_interval: Option<u64>The interval at which to serialize sessions for resurrection (in seconds)
disable_session_metadata: Option<bool>If true, will disable writing session metadata to disk
support_kitty_keyboard_protocol: Option<bool>Whether to enable support for the Kitty keyboard protocol (must also be supported by the host terminal), defaults to true if the terminal supports it
web_server: Option<bool>Whether to make sure a local web server is running when a new Zellij session starts. This web server will allow creating new sessions and attaching to existing ones that have opted in to being shared in the browser.
Note: a local web server can still be manually started from within a Zellij session or from the CLI. If this is not desired, one can use a version of Zellij compiled without web_server_capability
Possible values:
- true
- false Default: false
web_sharing: Option<WebSharing>Whether to allow new sessions to be shared through a local web server, assuming one is
running (see the web_server option for more details).
Note: if Zellij was compiled without web_server_capability, this option will be locked to “disabled”
Possible values:
- “on” (new sessions will allow web sharing through the local web server if it is online)
- “off” (new sessions will not allow web sharing unless they explicitly opt-in to it)
- “disabled” (new sessions will not allow web sharing and will not be able to opt-in to it) Default: “off”
stacked_resize: Option<bool>Whether to stack panes when resizing beyond a certain size default is true
show_startup_tips: Option<bool>Whether to show startup tips when starting a new session default is true
show_release_notes: Option<bool>Whether to show release notes on first run of a new version default is true
advanced_mouse_actions: Option<bool>Whether to enable mouse hover effects and pane grouping functionality default is true
mouse_hover_effects: Option<bool>Whether to enable mouse hover visual effects (frame highlight and help text) default is true
visual_bell: Option<bool>Whether to show visual bell indicators (pane/tab frame flash and ! suffix) default is true
focus_follows_mouse: Option<bool>Whether to focus panes on mouse hover (true or false) default is false
mouse_click_through: Option<bool>Whether clicking a pane to focus it also sends the click into the pane (true or false) default is false
web_server_ip: Option<IpAddr>§web_server_port: Option<u16>§web_server_cert: Option<PathBuf>§web_server_key: Option<PathBuf>§enforce_https_for_localhost: Option<bool>§post_command_discovery_hook: Option<String>A command to run after the discovery of running commands when serializing, for the purpose of manipulating the command (eg. with a regex) before it gets serialized
client_async_worker_tasks: Option<usize>Number of async worker tasks to spawn per active client.
Allocating few tasks may result in resource contention and lags. Small values (around 4) should typically work best. Set to 0 to use the number of (physical) CPU cores. NOTE: This only applies to web clients at the moment.
Implementations§
Source§impl Options
impl Options
pub fn from_yaml(from_yaml: Option<Options>) -> Options
Sourcepub fn merge(&self, other: Options) -> Options
pub fn merge(&self, other: Options) -> Options
Merges two Options structs, a Some in other
will supersede a Some in self
Sourcepub fn merge_from_cli(&self, other: Options) -> Options
pub fn merge_from_cli(&self, other: Options) -> Options
Merges two Options structs,
Someinotherwill supersede aSomeinselfSome(bool)inotherwill toggle aSome(bool)inself
pub fn from_cli(&self, other: Option<Command>) -> Options
Source§impl Options
impl Options
pub fn from_kdl(kdl_options: &KdlDocument) -> Result<Self, ConfigError>
pub fn from_string( stringified_keybindings: &String, ) -> Result<Self, ConfigError>
pub fn to_kdl(&self, add_comments: bool) -> Vec<KdlNode>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
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 Options
impl FromArgMatches for Options
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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