Struct tmux_interface::commands::windows_and_panes::split_window::SplitWindow [−][src]
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]
&mut self,
start_directory: S
) -> &mut Self
[-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]
&mut self,
target_pane: S
) -> &mut Self
[-t target-pane]
-
pub fn shell_command<S: Into<Cow<'a, str>>>(
&mut self,
shell_command: S
) -> &mut Self
[src]
&mut self,
shell_command: S
) -> &mut Self
[shell-command]
- shell-command
pub fn target_window<S: Into<Cow<'a, str>>>(
&mut self,
target_window: S
) -> &mut Self
[src]
&mut self,
target_window: S
) -> &mut Self
[-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]
fn clone(&self) -> SplitWindow<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for SplitWindow<'a>
[src]
impl<'a> Default for SplitWindow<'a>
[src]
impl<'a> From<&'_ TmuxCommand<'a>> for SplitWindow<'a>
[src]
fn from(item: &TmuxCommand<'a>) -> Self
[src]
impl<'a> From<TmuxCommand<'a>> for SplitWindow<'a>
[src]
fn from(item: TmuxCommand<'a>) -> Self
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,