pub struct SelectPane<'a> {
Show 14 fields pub down: bool, pub disable: bool, pub enable: bool, pub show_style: bool, pub left: bool, pub last: bool, pub set_marked: bool, pub clear_marked: bool, pub right: bool, pub up: bool, pub keep_zoomed: bool, pub style: Option<Cow<'a, str>>, pub title: Option<Cow<'a, str>>, pub target_pane: Option<Cow<'a, str>>, /* private fields */
}
Expand description

Make pane target-pane the active pane in window target-window

§Manual

tmux ^3.1:

select-pane [-DdeLlMmRUZ] [-T title] [-t target-pane]
(alias: selectp)

tmux ^2.6:

select-pane [-DdeLlMmRU] [-T title] [-t target-pane]
(alias: selectp)

tmux ^2.1:

select-pane [-DdegLlMmRU] [-P style] [-t target-pane]
(alias: selectp)

tmux ^2.0:

select-pane [-DdeLlRU] [-t target-pane]
(alias: selectp)

tmux ^1.5:

select-pane [-DLlRU] [-t target-pane]
(alias: selectp)

tmux ^1.3:

select-pane [-DLRU] [-t target-pane]
(alias: selectp)

tmux ^1.0:

select-pane [-t target-pane]
(alias: selectp)

tmux ^0.8:

select-pane [-p pane-index] [-t target-window]
(alias: selectp)

Fields§

§down: bool

[-D] - pane below

§disable: bool

[-d] - disable input

§enable: bool

[-e] - enable input

§show_style: bool

[-g] - show the current pane style

§left: bool

[-L] - pane left

§last: bool

[-l] - equivalent to last-pane command

§set_marked: bool

[-M] - clear marked pane

§clear_marked: bool

[-m] - set marked pane

§right: bool

[-R] - pane right

§up: bool

[-U] - pane above

§keep_zoomed: bool

[-Z] - keep the window zoomed if it was zoomed

§style: Option<Cow<'a, str>>

[-P style] - set the style for a single pane

§title: Option<Cow<'a, str>>

[-T title] - title

§target_pane: Option<Cow<'a, str>>

[-t target-pane] - target-pane

Implementations§

source§

impl<'a> SelectPane<'a>

source

pub fn new() -> Self

source

pub fn down(self) -> Self

[-D] - pane below

source

pub fn disable(self) -> Self

[-d] - disable input

source

pub fn enable(self) -> Self

[-e] - enable input

source

pub fn show_style(self) -> Self

[-g] - show the current pane style

source

pub fn left(self) -> Self

[-L] - pane left

source

pub fn last(self) -> Self

[-l] - equivalent to last-pane command

source

pub fn set_marked(self) -> Self

[-M] - clear marked pane

source

pub fn clear_marked(self) -> Self

[-m] - set marked pane

source

pub fn right(self) -> Self

[-R] - pane right

source

pub fn up(self) -> Self

[-U] - pane above

source

pub fn keep_zoomed(self) -> Self

[-Z] - keep the window zoomed if it was zoomed

source

pub fn style<S: Into<Cow<'a, str>>>(self, style: S) -> Self

[-P style] - set the style for a single pane

source

pub fn title<S: Into<Cow<'a, str>>>(self, title: S) -> Self

[-T title] - title

source

pub fn target_pane<S: Into<Cow<'a, str>>>(self, target_pane: S) -> Self

[-t target-pane] - target-pane

source

pub fn build(self) -> TmuxCommand<'a>

Trait Implementations§

source§

impl<'a> Clone for SelectPane<'a>

source§

fn clone(&self) -> SelectPane<'a>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a> Debug for SelectPane<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> Default for SelectPane<'a>

source§

fn default() -> SelectPane<'a>

Returns the “default value” for a type. Read more
source§

impl<'a> From<SelectPane<'a>> for TmuxCommand<'a>

source§

fn from(item: SelectPane<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> Hash for SelectPane<'a>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'a> Ord for SelectPane<'a>

source§

fn cmp(&self, other: &SelectPane<'a>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl<'a> PartialEq for SelectPane<'a>

source§

fn eq(&self, other: &SelectPane<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a> PartialOrd for SelectPane<'a>

source§

fn partial_cmp(&self, other: &SelectPane<'a>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<'a> Eq for SelectPane<'a>

source§

impl<'a> StructuralPartialEq for SelectPane<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for SelectPane<'a>

§

impl<'a> Send for SelectPane<'a>

§

impl<'a> Sync for SelectPane<'a>

§

impl<'a> Unpin for SelectPane<'a>

§

impl<'a> UnwindSafe for SelectPane<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.