Struct tmux_interface::commands::windows_and_panes::split_window::SplitWindow[][src]

pub struct SplitWindow<'a>(pub TmuxCommand<'a>);

Create a new pane by splitting target-pane

Manual

tmux ^3.1:

tmux split-window [-bdfhIvP] [-c start-directory] [-e environment] [-l size] [-t target-pane]
[shell-command] [-F format]
(alias: splitw)

tmux ^3.0:

tmux split-window [-bdfhIvP] [-c start-directory] [-e environment] [-l size | -p percentage]
[-t target-pane] [shell-command] [-F format]
(alias: splitw)

tmux ^2.4:

tmux split-window [-bdfhvP] [-c start-directory] [-l size | -p percentage] [-t target-pane]
[shell-command] [-F format]
(alias: splitw)

tmux ^2.0:

tmux split-window [-bdhvP] [-c start-directory] [-l size | -p percentage] [-t target-pane]
[shell-command] [-F format]
(alias: splitw)

tmux ^1.7:

tmux split-window [-dhvP] [-c start-directory] [-l size | -p percentage] [-t target-pane]
[shell-command] [-F format]
(alias: splitw)

tmux ^1.5:

tmux split-window [-dhvP] [-l size | -p percentage] [-t target-pane] [shell-command]
(alias: splitw)

tmux ^1.2:

tmux split-window [-dhv] [-l size | -p percentage] [-t target-pane] [shell-command]
(alias: splitw)

tmux ^1.0:

tmux split-window [-dhv] [-l size | -p percentage] [-t target-window] [command]
(alias: splitw)

tmux ^0.8:

tmux split-window [-d] [-l size | -p percentage] [-t target-window] [command]
(alias: splitw)

Implementations

impl<'a> SplitWindow<'a>[src]

pub fn new() -> Self[src]

pub fn before(&mut self) -> &mut Self[src]

[-b] - cause the new pane to be created to the left of or above target-pane

pub fn detached(&mut self) -> &mut Self[src]

[-d] - do not make the new window the current window

pub fn full(&mut self) -> &mut Self[src]

[-f] - creates a new pane spanning the full window size (h, v)

pub fn horizontal(&mut self) -> &mut Self[src]

[-h] - horizontal split

pub fn vertical(&mut self) -> &mut Self[src]

[-v] - vertical split

pub fn print(&mut self) -> &mut Self[src]

[-P] - print information about the new window after it has been created

pub fn start_directory<S: Into<Cow<'a, str>>>(
    &mut self,
    start_directory: S
) -> &mut Self
[src]

[-c start_directory] - start-directory

pub fn size(&mut self, size: &PaneSize) -> &mut Self[src]

[-l size] - specify the size of the new pane in lines [-l size | -p percentage] - specify the size of the new pane in lines

pub fn target_pane<S: Into<Cow<'a, str>>>(
    &mut self,
    target_pane: S
) -> &mut Self
[src]

[-t target-pane] -

pub fn shell_command<S: Into<Cow<'a, str>>>(
    &mut self,
    shell_command: S
) -> &mut Self
[src]

[shell-command] - shell-command

pub fn target_window<S: Into<Cow<'a, str>>>(
    &mut self,
    target_window: S
) -> &mut Self
[src]

[-t target-window] -

pub fn format<S: Into<Cow<'a, str>>>(&mut self, format: S) -> &mut Self[src]

[-F format] - format

pub fn output(&self) -> Result<TmuxOutput, Error>[src]

Trait Implementations

impl<'a> Clone for SplitWindow<'a>[src]

impl<'a> Debug for SplitWindow<'a>[src]

impl<'a> Default for SplitWindow<'a>[src]

impl<'a> From<&'_ TmuxCommand<'a>> for SplitWindow<'a>[src]

impl<'a> From<TmuxCommand<'a>> for SplitWindow<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for SplitWindow<'a>

impl<'a> Send for SplitWindow<'a>

impl<'a> Sync for SplitWindow<'a>

impl<'a> Unpin for SplitWindow<'a>

impl<'a> UnwindSafe for SplitWindow<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.