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 more