pub struct ChooseTree<'a> {
    pub all: bool,
    pub without_preview: bool,
    pub reverse_sort_order: bool,
    pub collapsed_sessions: bool,
    pub collapsed_windows: bool,
    pub zoom: bool,
    pub format: Option<Cow<'a, str>>,
    pub filter: Option<Cow<'a, str>>,
    pub key_format: Option<Cow<'a, str>>,
    pub sort_order: Option<Cow<'a, str>>,
    pub target_pane: Option<Cow<'a, str>>,
    pub template: Option<Cow<'a, str>>,
}
Expand description

Put a pane into tree mode, where a session, window or pane may be chosen interactively from a list

§Manual

tmux ^3.2:

choose-tree [-GNrswZ] [-F format] [-f filter] [-K key-format] [-O sort-order] [-t target-pane] [template]

tmux ^3.1:

choose-tree [-GNrswZ] [-F format] [-f filter] [-O sort-order] [-t target-pane] [template]

tmux ^2.7:

choose-tree [-GNswZ] [-F format] [-f filter] [-O sort-order] [-t target-pane] [template]

tmux ^2.6:

choose-tree [-Nsw] [-F format] [-f filter] [-O sort-order] [-t target-pane] [template]

tmux ^1.8:

choose-tree [-suw] [-b session-template] [-c window-template] [-S format] [-W format]
[-t target-window]

tmux ^1.7:

choose-tree [-sw] [-b session-template] [-c window-template] [-S format] [-W format]
[-t target-window]

Fields§

§all: bool

[-G] - include all sessions in any session groups in the tree rather than only the first

§without_preview: bool

[-N] - start without the preview

§reverse_sort_order: bool

[-r] - reverses the sort order

§collapsed_sessions: bool

[-s] - start with collapsed sessions

§collapsed_windows: bool

[-w] - start with collapsed windows

§zoom: bool

[-Z] - zoom the pane

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

[-F format] - format

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

[-f filter] - filter

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

[-K key-format] - format for each shortcut key

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

[-O sort-order] - specifies the initial sort field

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

[-t target-pane] - target-pane

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

[template] - template

Implementations§

source§

impl<'a> ChooseTree<'a>

source

pub fn new() -> Self

source

pub fn all(self) -> Self

[-G] - include all sessions in any session groups in the tree rather than only the first

source

pub fn without_preview(self) -> Self

[-N] - start without the preview

source

pub fn reverse_sort_order(self) -> Self

[-r] - reverses the sort order

source

pub fn collapsed_sessions(self) -> Self

[-s] - start with collapsed sessions

source

pub fn collapsed_windows(self) -> Self

[-w] - start with collapsed windows

source

pub fn zoom(self) -> Self

[-Z] - zoom the pane

source

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

[-F format] - format

source

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

[-f filter] - filter

source

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

[-K key-format] - format for each shortcut key

source

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

[-O sort-order] - specifies the initial sort field

source

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

[-t target-pane] - target-pane

source

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

[template] - template

source

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

Trait Implementations§

source§

impl<'a> Clone for ChooseTree<'a>

source§

fn clone(&self) -> ChooseTree<'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 ChooseTree<'a>

source§

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

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

impl<'a> Default for ChooseTree<'a>

source§

fn default() -> ChooseTree<'a>

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

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

source§

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

Converts to this type from the input type.
source§

impl<'a> Hash for ChooseTree<'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 ChooseTree<'a>

source§

fn cmp(&self, other: &ChooseTree<'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 ChooseTree<'a>

source§

fn eq(&self, other: &ChooseTree<'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 ChooseTree<'a>

source§

fn partial_cmp(&self, other: &ChooseTree<'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 ChooseTree<'a>

source§

impl<'a> StructuralPartialEq for ChooseTree<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for ChooseTree<'a>

§

impl<'a> Send for ChooseTree<'a>

§

impl<'a> Sync for ChooseTree<'a>

§

impl<'a> Unpin for ChooseTree<'a>

§

impl<'a> UnwindSafe for ChooseTree<'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.