pub struct ResizePane<'a> {
pub down: bool,
pub left: bool,
pub mouse: bool,
pub right: bool,
pub trim: bool,
pub up: bool,
pub zoom: bool,
pub target_pane: Option<Cow<'a, str>>,
pub width: Option<usize>,
pub height: Option<usize>,
pub adjustment: Option<Cow<'a, str>>,
}
Expand description
Resize a pane, up, down, left or right
§Manual
tmux ^3.2:
resize-pane [-DLMRTUZ] [-t target-pane] [-x width] [-y height] [adjustment]
(alias: resizep)
tmux ^2.1:
resize-pane [-DLMRUZ] [-t target-pane] [-x width] [-y height] [adjustment]
(alias: resizep)
tmux ^1.8:
resize-pane [-DLRUZ] [-t target-pane] [-x width] [-y height] [adjustment]
(alias: resizep)
tmux ^1.0:
resize-pane [-DLRU] [-t target-pane] [adjustment]
(alias: resizep)
tmux ^0.9:
resize-pane [-DU] [-p pane-index] [-t target-pane] [adjustment]
(alias: resizep)
Fields§
§down: bool
[-D]
- resize down by adjustment
left: bool
[-L]
- resize left by adjustment
mouse: bool
[-M]
- begin mouse resizing
right: bool
[-R]
- resize right by adjustment
trim: bool
[-T]
- trims all lines below the current cursor position
up: bool
[-U]
- resize up by adjustment
zoom: bool
[-Z]
- the active pane is toggled between zoomed and unzoomed
target_pane: Option<Cow<'a, str>>
[-t target-pane]
- target-pane
width: Option<usize>
[-x width]
- absolute size
height: Option<usize>
[-y height]
- absolute size
adjustment: Option<Cow<'a, str>>
[adjustment]
- adjustment
Implementations§
Source§impl<'a> ResizePane<'a>
impl<'a> ResizePane<'a>
pub fn new() -> Self
Sourcepub fn target_pane<S: Into<Cow<'a, str>>>(self, target_pane: S) -> Self
pub fn target_pane<S: Into<Cow<'a, str>>>(self, target_pane: S) -> Self
[-t target-pane]
- target-pane
Sourcepub fn adjustment<S: Into<Cow<'a, str>>>(self, adjustment: S) -> Self
pub fn adjustment<S: Into<Cow<'a, str>>>(self, adjustment: S) -> Self
[adjustment]
- adjustment
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
Source§impl<'a> Clone for ResizePane<'a>
impl<'a> Clone for ResizePane<'a>
Source§fn clone(&self) -> ResizePane<'a>
fn clone(&self) -> ResizePane<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for ResizePane<'a>
impl<'a> Debug for ResizePane<'a>
Source§impl<'a> Default for ResizePane<'a>
impl<'a> Default for ResizePane<'a>
Source§fn default() -> ResizePane<'a>
fn default() -> ResizePane<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> From<ResizePane<'a>> for TmuxCommand<'a>
impl<'a> From<ResizePane<'a>> for TmuxCommand<'a>
Source§fn from(item: ResizePane<'a>) -> Self
fn from(item: ResizePane<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for ResizePane<'a>
impl<'a> Hash for ResizePane<'a>
Source§impl<'a> Ord for ResizePane<'a>
impl<'a> Ord for ResizePane<'a>
Source§fn cmp(&self, other: &ResizePane<'a>) -> Ordering
fn cmp(&self, other: &ResizePane<'a>) -> Ordering
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 ResizePane<'a>
impl<'a> PartialEq for ResizePane<'a>
Source§impl<'a> PartialOrd for ResizePane<'a>
impl<'a> PartialOrd for ResizePane<'a>
impl<'a> Eq for ResizePane<'a>
impl<'a> StructuralPartialEq for ResizePane<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResizePane<'a>
impl<'a> RefUnwindSafe for ResizePane<'a>
impl<'a> Send for ResizePane<'a>
impl<'a> Sync for ResizePane<'a>
impl<'a> Unpin for ResizePane<'a>
impl<'a> UnwindSafe for ResizePane<'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