Struct tmux_interface::commands::windows_and_panes::choose_tree::ChooseTree
source · 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>
impl<'a> ChooseTree<'a>
pub fn new() -> Self
sourcepub fn all(self) -> Self
pub fn all(self) -> Self
[-G]
- include all sessions in any session groups in the tree rather than only the first
sourcepub fn without_preview(self) -> Self
pub fn without_preview(self) -> Self
[-N]
- start without the preview
sourcepub fn reverse_sort_order(self) -> Self
pub fn reverse_sort_order(self) -> Self
[-r]
- reverses the sort order
sourcepub fn collapsed_sessions(self) -> Self
pub fn collapsed_sessions(self) -> Self
[-s]
- start with collapsed sessions
sourcepub fn collapsed_windows(self) -> Self
pub fn collapsed_windows(self) -> Self
[-w]
- start with collapsed windows
sourcepub fn key_format<S: Into<Cow<'a, str>>>(self, key_format: S) -> Self
pub fn key_format<S: Into<Cow<'a, str>>>(self, key_format: S) -> Self
[-K key-format]
- format for each shortcut key
sourcepub fn sort_order<S: Into<Cow<'a, str>>>(self, sort_order: S) -> Self
pub fn sort_order<S: Into<Cow<'a, str>>>(self, sort_order: S) -> Self
[-O sort-order]
- specifies the initial sort field
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
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> Clone for ChooseTree<'a>
impl<'a> Clone for ChooseTree<'a>
source§fn clone(&self) -> ChooseTree<'a>
fn clone(&self) -> ChooseTree<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'a> Debug for ChooseTree<'a>
impl<'a> Debug for ChooseTree<'a>
source§impl<'a> Default for ChooseTree<'a>
impl<'a> Default for ChooseTree<'a>
source§fn default() -> ChooseTree<'a>
fn default() -> ChooseTree<'a>
source§impl<'a> From<ChooseTree<'a>> for TmuxCommand<'a>
impl<'a> From<ChooseTree<'a>> for TmuxCommand<'a>
source§fn from(item: ChooseTree<'a>) -> Self
fn from(item: ChooseTree<'a>) -> Self
source§impl<'a> Hash for ChooseTree<'a>
impl<'a> Hash for ChooseTree<'a>
source§impl<'a> Ord for ChooseTree<'a>
impl<'a> Ord for ChooseTree<'a>
source§fn cmp(&self, other: &ChooseTree<'a>) -> Ordering
fn cmp(&self, other: &ChooseTree<'a>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl<'a> PartialEq for ChooseTree<'a>
impl<'a> PartialEq for ChooseTree<'a>
source§fn eq(&self, other: &ChooseTree<'a>) -> bool
fn eq(&self, other: &ChooseTree<'a>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for ChooseTree<'a>
impl<'a> PartialOrd for ChooseTree<'a>
source§fn partial_cmp(&self, other: &ChooseTree<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &ChooseTree<'a>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more