Struct tmux_interface::commands::windows_and_panes::new_window::NewWindow [−][src]
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]
&mut self,
start_directory: S
) -> &mut Self
[-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]
&mut self,
window_name: S
) -> &mut Self
[-n window-name]
- window-name
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]
- target-window
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 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]
fn from(item: &TmuxCommand<'a>) -> Self
[src]
impl<'a> From<TmuxCommand<'a>> for NewWindow<'a>
[src]
fn from(item: TmuxCommand<'a>) -> Self
[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]
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>,