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 copy 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§fn eq(&self, other: &ChooseClient<'a>) -> bool
fn eq(&self, other: &ChooseClient<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for ChooseClient<'a>
impl<'a> PartialOrd for ChooseClient<'a>
source§fn partial_cmp(&self, other: &ChooseClient<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &ChooseClient<'a>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moreimpl<'a> Eq for ChooseClient<'a>
impl<'a> StructuralPartialEq for ChooseClient<'a>
Auto Trait Implementations§
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