Struct tmux_interface::commands::windows_and_panes::move_pane::MovePane
source · pub struct MovePane<'a> {
pub left_above: bool,
pub detached: 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 join-pane, but src-pane
and dst-pane
may belong to the same window
§Manual
tmux ^3.1:
move-pane [-bdhv] [-l size] [-s src-pane] [-t dst-pane]
(alias: movep)
tmux ^1.7:
move-pane [-bdhv] [-l size | -p percentage] [-s src-pane] [-t dst-pane]
(alias: movep)
Fields§
§left_above: bool
[-b]
- cause src-pane to be joined to left of or above dst-pane
detached: bool
[-d]
-
horizontal: bool
[-h]
- full height
vertical: bool
[-v]
- full width
size: Option<&'a PaneSize>
[-l size]
- 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> MovePane<'a>
impl<'a> MovePane<'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]
- specify the size of the new pane in lines/columns
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> From<MovePane<'a>> for TmuxCommand<'a>
impl<'a> From<MovePane<'a>> for TmuxCommand<'a>
source§impl<'a> Ord for MovePane<'a>
impl<'a> Ord for MovePane<'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 MovePane<'a>
impl<'a> PartialEq for MovePane<'a>
source§impl<'a> PartialOrd for MovePane<'a>
impl<'a> PartialOrd for MovePane<'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 MovePane<'a>
impl<'a> StructuralPartialEq for MovePane<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for MovePane<'a>
impl<'a> Send for MovePane<'a>
impl<'a> Sync for MovePane<'a>
impl<'a> Unpin for MovePane<'a>
impl<'a> UnwindSafe for MovePane<'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