Struct tmux_interface::commands::windows_and_panes::break_pane::BreakPane
source · pub struct BreakPane<'a> {
pub after: bool,
pub before: bool,
pub detached: bool,
pub print: bool,
pub format: Option<Cow<'a, str>>,
pub window_name: Option<Cow<'a, str>>,
pub src_pane: Option<Cow<'a, str>>,
pub dst_window: Option<Cow<'a, str>>,
}
Expand description
Break src-pane
off from its containing window to make it the only pane in dst-window
§Manual
tmux ^3.2:
break-pane [-abdP] [-F format] [-n window-name] [-s src-pane] [-t dst-window]
(alias: breakp)
tmux ^2.4:
break-pane [-dP] [-F format] [-n window-name] [-s src-pane] [-t dst-window]
(alias: breakp)
tmux ^2.2:
break-pane [-dP] [-F format] [-s src-pane] [-t dst-window]
(alias: breakp)
tmux ^2.1:
break-pane [-dP] [-F format] [-s src-pane] [-t dst-pane]
(alias: breakp)
tmux ^1.7:
break-pane [-dP] [-F format] [-t target-pane]
(alias: breakp)
tmux ^1.0:
break-pane [-d] [-t target-window]
(alias: breakp)
tmux ^0.8:
break-pane [-d] [-p pane-index] [-t target-window]
(alias: breakp)
Fields§
§after: bool
[-a]
- the window is moved to the next index after
before: bool
[-b]
- the window is moved to the next index before
detached: bool
[-d]
- the new window does not become the current window
print: bool
[-P]
- option prints information about the new window after it has been created
format: Option<Cow<'a, str>>
[-F format]
- specify format
window_name: Option<Cow<'a, str>>
[-n window-name]
- window-name
src_pane: Option<Cow<'a, str>>
[-s src-pane]
- src-pane
dst_window: Option<Cow<'a, str>>
[-t dst-window]
- dst-window
Implementations§
source§impl<'a> BreakPane<'a>
impl<'a> BreakPane<'a>
pub fn new() -> Self
sourcepub fn print(self) -> Self
pub fn print(self) -> Self
[-P]
- option prints information about the new window after it has been created
sourcepub fn window_name<S: Into<Cow<'a, str>>>(self, window_name: S) -> Self
pub fn window_name<S: Into<Cow<'a, str>>>(self, window_name: S) -> Self
[-n window-name]
- window-name
sourcepub fn dst_window<S: Into<Cow<'a, str>>>(self, dst_window: S) -> Self
pub fn dst_window<S: Into<Cow<'a, str>>>(self, dst_window: S) -> Self
[-t dst-window]
- dst-window
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> From<BreakPane<'a>> for TmuxCommand<'a>
impl<'a> From<BreakPane<'a>> for TmuxCommand<'a>
source§impl<'a> Ord for BreakPane<'a>
impl<'a> Ord for BreakPane<'a>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq for BreakPane<'a>
impl<'a> PartialEq for BreakPane<'a>
source§impl<'a> PartialOrd for BreakPane<'a>
impl<'a> PartialOrd for BreakPane<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'a> Eq for BreakPane<'a>
impl<'a> StructuralPartialEq for BreakPane<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for BreakPane<'a>
impl<'a> Send for BreakPane<'a>
impl<'a> Sync for BreakPane<'a>
impl<'a> Unpin for BreakPane<'a>
impl<'a> UnwindSafe for BreakPane<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more