Struct tmux_interface::commands::windows_and_panes::new_window::NewWindow[][src]

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

Structure for creating new window, using tmux new-window command

Manual

tmux ^3.0:

tmux new-window [-adkP] [-c start-directory] [-e environment] [-F format] [-n window-name] [-t
target-window] [shell-command]
(alias: neww)

tmux ^1.7:

tmux new-window [-adkP] [-c start-directory] [-F format] [-n window-name] [-t target-window]
[shell-command]
(alias: neww)

tmux ^1.5:

tmux new-window [-adkP] [-n window-name] [-t target-window] [shell-command]
(alias: neww)

tmux ^1.3:

tmux new-window [-adk] [-n window-name] [-t target-window] [shell-command]
(alias: neww)

tmux ^1.2:

tmux new-window [-dk] [-n window-name] [-t target-window] [shell-command]
(alias: neww)

tmux ^1.0:

tmux new-window [-dk] [-n window-name] [-t target-window] [command]
(alias: neww)

tmux ^0.8:

tmux new-window [-d] [-n window-name] [-t target-window] [command]
(alias: neww)

Implementations

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

pub fn new() -> Self[src]

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

[-a] - new window is inserted at the next index up from the specified target-window

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

[-d] - the session does not make the new window the current window

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

[-k] - destroy if already exists

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 format<S: Into<Cow<'a, str>>>(&mut self, format: S) -> &mut Self[src]

[-F format] - format

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

[-n window-name] - window-name

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

[-t target-window] - target-window

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

[shell-command] - shell-command

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

Trait Implementations

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

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for NewWindow<'a>

impl<'a> Send for NewWindow<'a>

impl<'a> Sync for NewWindow<'a>

impl<'a> Unpin for NewWindow<'a>

impl<'a> UnwindSafe for NewWindow<'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.