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> PartialOrd for JoinPane<'a>
impl<'a> PartialOrd for JoinPane<'a>
impl<'a> Eq for JoinPane<'a>
impl<'a> StructuralPartialEq for JoinPane<'a>
Auto Trait Implementations§
impl<'a> Freeze for JoinPane<'a>
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