pub struct ChooseClient<'a> {
pub without_preview: bool,
pub reverse_sort_order: 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 client mode, allowing a client to be selected interactively from a list
§Manual
tmux ^3.2:
choose-client [-NrZ] [-F format] [-f filter] [-K key-format] [-O sort-order] [-t target-pane] [template]tmux ^3.1:
choose-client [-NrZ] [-F format] [-f filter] [-O sort-order] [-t target-pane] [template]tmux ^2.7:
choose-client [-NZ] [-F format] [-f filter] [-O sort-order] [-t target-pane] [template]tmux ^2.6:
choose-client [-N] [-F format] [-f filter] [-O sort-order] [-t target-pane] [template]tmux ^1.7:
choose-client [-F format] [-t target-window] [template]tmux ^1.0:
choose-client [-t target-window] [template]Fields§
§without_preview: bool[-N] - start without the preview
reverse_sort_order: bool[-r] - reverse the sort order
zoom: bool[-Z] - zoom the pane
format: Option<Cow<'a, str>>[-F format] - format
filter: Option<Cow<'a, str>>[-f filter] - specify an initial filter
key_format: Option<Cow<'a, str>>[-K key-format] - format for each shortcut key
sort_order: Option<Cow<'a, str>>[-O sort-order] - specify 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> ChooseClient<'a>
impl<'a> ChooseClient<'a>
pub fn new() -> Self
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] - reverse the sort order
Sourcepub fn filter<S: Into<Cow<'a, str>>>(self, filter: S) -> Self
pub fn filter<S: Into<Cow<'a, str>>>(self, filter: S) -> Self
[-f filter] - specify an initial filter
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] - specify 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 ChooseClient<'a>
impl<'a> Clone for ChooseClient<'a>
Source§fn clone(&self) -> ChooseClient<'a>
fn clone(&self) -> ChooseClient<'a>
Returns a duplicate 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 ChooseClient<'a>
impl<'a> Debug for ChooseClient<'a>
Source§impl<'a> Default for ChooseClient<'a>
impl<'a> Default for ChooseClient<'a>
Source§fn default() -> ChooseClient<'a>
fn default() -> ChooseClient<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> From<ChooseClient<'a>> for TmuxCommand<'a>
impl<'a> From<ChooseClient<'a>> for TmuxCommand<'a>
Source§fn from(item: ChooseClient<'a>) -> Self
fn from(item: ChooseClient<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for ChooseClient<'a>
impl<'a> Hash for ChooseClient<'a>
Source§impl<'a> Ord for ChooseClient<'a>
impl<'a> Ord for ChooseClient<'a>
Source§fn cmp(&self, other: &ChooseClient<'a>) -> Ordering
fn cmp(&self, other: &ChooseClient<'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 ChooseClient<'a>
impl<'a> PartialEq for ChooseClient<'a>
Source§impl<'a> PartialOrd for ChooseClient<'a>
impl<'a> PartialOrd for ChooseClient<'a>
impl<'a> Eq for ChooseClient<'a>
impl<'a> StructuralPartialEq for ChooseClient<'a>
Auto Trait Implementations§
impl<'a> Freeze for ChooseClient<'a>
impl<'a> RefUnwindSafe for ChooseClient<'a>
impl<'a> Send for ChooseClient<'a>
impl<'a> Sync for ChooseClient<'a>
impl<'a> Unpin for ChooseClient<'a>
impl<'a> UnwindSafe for ChooseClient<'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