Struct tmux_interface::commands::windows_and_panes::find_window::FindWindow
source · pub struct FindWindow<'a> {
pub regex: bool,
pub only_visible: bool,
pub only_name: bool,
pub only_title: bool,
pub zoom: bool,
pub target_pane: Option<Cow<'a, str>>,
}
Expand description
Search for the fnmatch(3) pattern match-string
in window names,
titles, and visible content (but not history)
§Manual
tmux ^3.0:
find-window [-rCNTZ] [-t target-pane] match-string
(alias: findw)
tmux ^2.6:
```text
find-window [-CNT] [-t target-pane] match-string
(alias: findw)
tmux ^1.7:
```text
find-window [-CNT] [-F format] [-t target-pane] match-string
(alias: findw)
tmux ^0.8:
```text
find-window [-t target-pane] match-string
(alias: findw)
Fields§
§regex: bool
[-r]
- regular expression
only_visible: bool
[-C]
- match only visible window contents
only_name: bool
[-N]
- match only the window name
only_title: bool
[-T]
- match only the window title
zoom: bool
[-Z]
- zoom the pane
target_pane: Option<Cow<'a, str>>
[-t target-pane]
- target-pane
Implementations§
source§impl<'a> FindWindow<'a>
impl<'a> FindWindow<'a>
pub fn new() -> Self
sourcepub fn only_visible(self) -> Self
pub fn only_visible(self) -> Self
[-C]
- match only visible window contents
sourcepub fn only_title(self) -> Self
pub fn only_title(self) -> Self
[-T]
- match only the window title
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 FindWindow<'a>
impl<'a> Clone for FindWindow<'a>
source§fn clone(&self) -> FindWindow<'a>
fn clone(&self) -> FindWindow<'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 FindWindow<'a>
impl<'a> Debug for FindWindow<'a>
source§impl<'a> Default for FindWindow<'a>
impl<'a> Default for FindWindow<'a>
source§fn default() -> FindWindow<'a>
fn default() -> FindWindow<'a>
Returns the “default value” for a type. Read more
source§impl<'a> From<FindWindow<'a>> for TmuxCommand<'a>
impl<'a> From<FindWindow<'a>> for TmuxCommand<'a>
source§fn from(item: FindWindow<'a>) -> Self
fn from(item: FindWindow<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for FindWindow<'a>
impl<'a> Hash for FindWindow<'a>
source§impl<'a> Ord for FindWindow<'a>
impl<'a> Ord for FindWindow<'a>
source§fn cmp(&self, other: &FindWindow<'a>) -> Ordering
fn cmp(&self, other: &FindWindow<'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 FindWindow<'a>
impl<'a> PartialEq for FindWindow<'a>
source§fn eq(&self, other: &FindWindow<'a>) -> bool
fn eq(&self, other: &FindWindow<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for FindWindow<'a>
impl<'a> PartialOrd for FindWindow<'a>
source§fn partial_cmp(&self, other: &FindWindow<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &FindWindow<'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 FindWindow<'a>
impl<'a> StructuralPartialEq for FindWindow<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for FindWindow<'a>
impl<'a> Send for FindWindow<'a>
impl<'a> Sync for FindWindow<'a>
impl<'a> Unpin for FindWindow<'a>
impl<'a> UnwindSafe for FindWindow<'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