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