Struct tmux_interface::commands::windows_and_panes::join_pane::JoinPane
source · pub struct JoinPane<'a> {
pub left_above: bool,
pub detached: bool,
pub full_size: bool,
pub horizontal: bool,
pub vertical: bool,
pub size: Option<&'a PaneSize>,
pub src_pane: Option<Cow<'a, str>>,
pub dst_pane: Option<Cow<'a, str>>,
}
Expand description
Like split-window, but instead of splitting dst-pane
and creating a new pane, split it
and move src-pane
into the space
§Manual
tmux ^3.1:
join-pane [-bdfhv] [-l size] [-s src-pane] [-t dst-pane]
(alias: joinp)
tmux ^1.7:
join-pane [-bdhv] [-l size | -p percentage] [-s src-pane] [-t dst-pane]
(alias: joinp)
tmux ^1.2:
join-pane [-dhv] [-l size | -p percentage] [-s src-pane] [-t dst-pane]
(alias: joinp)
Fields§
§left_above: bool
[-b]
- cause src-pane to be joined to left of or above dst-pane
detached: bool
[-d]
-
full_size: bool
[-f]
- creates a new pane spanning the full window height/width
horizontal: bool
[-h]
- full height
vertical: bool
[-v]
- full width
size: Option<&'a PaneSize>
[-l size]
[-l size | -p percentage]
- specify the size of the new pane in lines/columns
src_pane: Option<Cow<'a, str>>
[-s src-pane]
- src-pane
dst_pane: Option<Cow<'a, str>>
[-t dst-pane]
- dst-pane
Implementations§
source§impl<'a> JoinPane<'a>
impl<'a> JoinPane<'a>
pub fn new() -> Self
sourcepub fn left_above(self) -> Self
pub fn left_above(self) -> Self
[-b]
- cause src-pane to be joined to left of or above dst-pane
sourcepub fn horizontal(self) -> Self
pub fn horizontal(self) -> Self
[-h]
- full height
sourcepub fn size(self, size: &'a PaneSize) -> Self
pub fn size(self, size: &'a PaneSize) -> Self
[-l size]
[-l size | -p percentage]
- specify the size of the new pane in lines/columns
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> From<JoinPane<'a>> for TmuxCommand<'a>
impl<'a> From<JoinPane<'a>> for TmuxCommand<'a>
source§impl<'a> Ord for JoinPane<'a>
impl<'a> Ord for JoinPane<'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 JoinPane<'a>
impl<'a> PartialEq for JoinPane<'a>
source§impl<'a> PartialOrd for JoinPane<'a>
impl<'a> PartialOrd for JoinPane<'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 JoinPane<'a>
impl<'a> StructuralPartialEq for JoinPane<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for JoinPane<'a>
impl<'a> Send for JoinPane<'a>
impl<'a> Sync for JoinPane<'a>
impl<'a> Unpin for JoinPane<'a>
impl<'a> UnwindSafe for JoinPane<'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