Struct tmux_interface::commands::windows_and_panes::split_window::SplitWindow
source · pub struct SplitWindow<'a> {Show 15 fields
pub before: bool,
pub detached: bool,
pub full: bool,
pub horizontal: bool,
pub stdin_forward: bool,
pub vertical: bool,
pub print: bool,
pub zoom: bool,
pub start_directory: Option<Cow<'a, str>>,
pub environment: Option<Cow<'a, str>>,
pub size: Option<&'a PaneSize>,
pub format: Option<Cow<'a, str>>,
pub target_pane: Option<Cow<'a, str>>,
pub target_window: Option<Cow<'a, str>>,
pub shell_command: Option<Cow<'a, str>>,
}
Expand description
Create a new pane by splitting target-pane
§Manual
tmux ^3.2:
split-window [-bdfhIvPZ] [-c start-directory] [-e environment] [-l size] [-t target-pane]
[shell-command] [-F format]
(alias: splitw)
tmux ^3.1:
split-window [-bdfhIvP] [-c start-directory] [-e environment] [-l size] [-t target-pane]
[shell-command] [-F format]
(alias: splitw)
tmux ^3.0:
split-window [-bdfhIvP] [-c start-directory] [-e environment] [-l size | -p percentage]
[-t target-pane] [shell-command] [-F format]
(alias: splitw)
tmux ^2.4:
split-window [-bdfhvP] [-c start-directory] [-l size | -p percentage] [-t target-pane]
[shell-command] [-F format]
(alias: splitw)
tmux ^2.0:
split-window [-bdhvP] [-c start-directory] [-l size | -p percentage] [-t target-pane]
[shell-command] [-F format]
(alias: splitw)
tmux ^1.7:
split-window [-dhvP] [-c start-directory] [-l size | -p percentage] [-t target-pane]
[shell-command] [-F format]
(alias: splitw)
tmux ^1.5:
split-window [-dhvP] [-l size | -p percentage] [-t target-pane] [shell-command]
(alias: splitw)
tmux ^1.2:
split-window [-dhv] [-l size | -p percentage] [-t target-pane] [shell-command]
(alias: splitw)
tmux ^1.0:
split-window [-dhv] [-l size | -p percentage] [-t target-window] [command]
(alias: splitw)
tmux ^0.8:
split-window [-d] [-l size | -p percentage] [-t target-window] [command]
(alias: splitw)
Fields§
§before: bool
[-b]
- cause the new pane to be created to the left of or above target-pane
detached: bool
[-d]
- do not make the new window the current window
full: bool
[-f]
- creates a new pane spanning the full window size (h, v)
horizontal: bool
[-h]
- horizontal split
stdin_forward: bool
[-I]
- create an empty pane and forward any output from stdin to it
vertical: bool
[-v]
- vertical split
print: bool
[-P]
- print information about the new window after it has been created
zoom: bool
[-Z]
- print information about the new window after it has been created
start_directory: Option<Cow<'a, str>>
[-c start_directory]
- start-directory
environment: Option<Cow<'a, str>>
[-e environment]
- environment
size: Option<&'a PaneSize>
[-l size]
- specify the size of the new pane in lines
[-l size | -p percentage]
- specify the size of the new pane in lines
format: Option<Cow<'a, str>>
[-F format]
- format
target_pane: Option<Cow<'a, str>>
[-t target-pane]
-
target_window: Option<Cow<'a, str>>
[-t target-window]
-
shell_command: Option<Cow<'a, str>>
[shell-command]
- shell-command
Implementations§
source§impl<'a> SplitWindow<'a>
impl<'a> SplitWindow<'a>
pub fn new() -> Self
sourcepub fn before(self) -> Self
pub fn before(self) -> Self
[-b]
- cause the new pane to be created to the left of or above target-pane
sourcepub fn horizontal(self) -> Self
pub fn horizontal(self) -> Self
[-h]
- horizontal split
sourcepub fn stdin_forward(self) -> Self
pub fn stdin_forward(self) -> Self
[-I]
- create an empty pane and forward any output from stdin to it
sourcepub fn print(self) -> Self
pub fn print(self) -> Self
[-P]
- print information about the new window after it has been created
sourcepub fn zoom(self) -> Self
pub fn zoom(self) -> Self
[-Z]
- zooms if the window is not zoomed, or keeps it zoomed if already zoomed
sourcepub fn start_directory<S: Into<Cow<'a, str>>>(self, start_directory: S) -> Self
pub fn start_directory<S: Into<Cow<'a, str>>>(self, start_directory: S) -> Self
[-c start_directory]
- start-directory
sourcepub fn environment<S: Into<Cow<'a, str>>>(self, environment: S) -> Self
pub fn environment<S: Into<Cow<'a, str>>>(self, environment: S) -> Self
[-e environment]
- environment
sourcepub fn size(self, size: &'a PaneSize) -> Self
pub fn size(self, size: &'a PaneSize) -> Self
[-l size]
- specify the size of the new pane in lines
[-l size | -p percentage]
- specify the size of the new pane in lines
sourcepub fn target_pane<S: Into<Cow<'a, str>>>(self, target_pane: S) -> Self
pub fn target_pane<S: Into<Cow<'a, str>>>(self, target_pane: S) -> Self
[-t target-pane]
-
sourcepub fn target_window<S: Into<Cow<'a, str>>>(self, target_window: S) -> Self
pub fn target_window<S: Into<Cow<'a, str>>>(self, target_window: S) -> Self
[-t target-window]
-
sourcepub fn shell_command<S: Into<Cow<'a, str>>>(self, shell_command: S) -> Self
pub fn shell_command<S: Into<Cow<'a, str>>>(self, shell_command: S) -> Self
[shell-command]
- shell-command
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> Clone for SplitWindow<'a>
impl<'a> Clone for SplitWindow<'a>
source§fn clone(&self) -> SplitWindow<'a>
fn clone(&self) -> SplitWindow<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'a> Debug for SplitWindow<'a>
impl<'a> Debug for SplitWindow<'a>
source§impl<'a> Default for SplitWindow<'a>
impl<'a> Default for SplitWindow<'a>
source§fn default() -> SplitWindow<'a>
fn default() -> SplitWindow<'a>
source§impl<'a> From<SplitWindow<'a>> for TmuxCommand<'a>
impl<'a> From<SplitWindow<'a>> for TmuxCommand<'a>
source§fn from(item: SplitWindow<'a>) -> Self
fn from(item: SplitWindow<'a>) -> Self
source§impl<'a> Hash for SplitWindow<'a>
impl<'a> Hash for SplitWindow<'a>
source§impl<'a> Ord for SplitWindow<'a>
impl<'a> Ord for SplitWindow<'a>
source§fn cmp(&self, other: &SplitWindow<'a>) -> Ordering
fn cmp(&self, other: &SplitWindow<'a>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl<'a> PartialEq for SplitWindow<'a>
impl<'a> PartialEq for SplitWindow<'a>
source§fn eq(&self, other: &SplitWindow<'a>) -> bool
fn eq(&self, other: &SplitWindow<'a>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for SplitWindow<'a>
impl<'a> PartialOrd for SplitWindow<'a>
source§fn partial_cmp(&self, other: &SplitWindow<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &SplitWindow<'a>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more