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 more