Struct tmux_interface::commands::windows_and_panes::select_pane::SelectPane
source · pub struct SelectPane<'a> {Show 14 fields
pub down: bool,
pub disable: bool,
pub enable: bool,
pub show_style: bool,
pub left: bool,
pub last: bool,
pub set_marked: bool,
pub clear_marked: bool,
pub right: bool,
pub up: bool,
pub keep_zoomed: bool,
pub style: Option<Cow<'a, str>>,
pub title: Option<Cow<'a, str>>,
pub target_pane: Option<Cow<'a, str>>,
/* private fields */
}
Expand description
Make pane target-pane
the active pane in window target-window
§Manual
tmux ^3.1:
select-pane [-DdeLlMmRUZ] [-T title] [-t target-pane]
(alias: selectp)
tmux ^2.6:
select-pane [-DdeLlMmRU] [-T title] [-t target-pane]
(alias: selectp)
tmux ^2.1:
select-pane [-DdegLlMmRU] [-P style] [-t target-pane]
(alias: selectp)
tmux ^2.0:
select-pane [-DdeLlRU] [-t target-pane]
(alias: selectp)
tmux ^1.5:
select-pane [-DLlRU] [-t target-pane]
(alias: selectp)
tmux ^1.3:
select-pane [-DLRU] [-t target-pane]
(alias: selectp)
tmux ^1.0:
select-pane [-t target-pane]
(alias: selectp)
tmux ^0.8:
select-pane [-p pane-index] [-t target-window]
(alias: selectp)
Fields§
§down: bool
[-D]
- pane below
disable: bool
[-d]
- disable input
enable: bool
[-e]
- enable input
show_style: bool
[-g]
- show the current pane style
left: bool
[-L]
- pane left
last: bool
[-l]
- equivalent to last-pane command
set_marked: bool
[-M]
- clear marked pane
clear_marked: bool
[-m]
- set marked pane
right: bool
[-R]
- pane right
up: bool
[-U]
- pane above
keep_zoomed: bool
[-Z]
- keep the window zoomed if it was zoomed
style: Option<Cow<'a, str>>
[-P style]
- set the style for a single pane
title: Option<Cow<'a, str>>
[-T title]
- title
target_pane: Option<Cow<'a, str>>
[-t target-pane]
- target-pane
Implementations§
source§impl<'a> SelectPane<'a>
impl<'a> SelectPane<'a>
pub fn new() -> Self
sourcepub fn show_style(self) -> Self
pub fn show_style(self) -> Self
[-g]
- show the current pane style
sourcepub fn set_marked(self) -> Self
pub fn set_marked(self) -> Self
[-M]
- clear marked pane
sourcepub fn clear_marked(self) -> Self
pub fn clear_marked(self) -> Self
[-m]
- set marked pane
sourcepub fn keep_zoomed(self) -> Self
pub fn keep_zoomed(self) -> Self
[-Z]
- keep the window zoomed if it was zoomed
sourcepub fn style<S: Into<Cow<'a, str>>>(self, style: S) -> Self
pub fn style<S: Into<Cow<'a, str>>>(self, style: S) -> Self
[-P style]
- set the style for a single pane
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 SelectPane<'a>
impl<'a> Clone for SelectPane<'a>
source§fn clone(&self) -> SelectPane<'a>
fn clone(&self) -> SelectPane<'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 SelectPane<'a>
impl<'a> Debug for SelectPane<'a>
source§impl<'a> Default for SelectPane<'a>
impl<'a> Default for SelectPane<'a>
source§fn default() -> SelectPane<'a>
fn default() -> SelectPane<'a>
Returns the “default value” for a type. Read more
source§impl<'a> From<SelectPane<'a>> for TmuxCommand<'a>
impl<'a> From<SelectPane<'a>> for TmuxCommand<'a>
source§fn from(item: SelectPane<'a>) -> Self
fn from(item: SelectPane<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for SelectPane<'a>
impl<'a> Hash for SelectPane<'a>
source§impl<'a> Ord for SelectPane<'a>
impl<'a> Ord for SelectPane<'a>
source§fn cmp(&self, other: &SelectPane<'a>) -> Ordering
fn cmp(&self, other: &SelectPane<'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 SelectPane<'a>
impl<'a> PartialEq for SelectPane<'a>
source§fn eq(&self, other: &SelectPane<'a>) -> bool
fn eq(&self, other: &SelectPane<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for SelectPane<'a>
impl<'a> PartialOrd for SelectPane<'a>
source§fn partial_cmp(&self, other: &SelectPane<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &SelectPane<'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 SelectPane<'a>
impl<'a> StructuralPartialEq for SelectPane<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SelectPane<'a>
impl<'a> Send for SelectPane<'a>
impl<'a> Sync for SelectPane<'a>
impl<'a> Unpin for SelectPane<'a>
impl<'a> UnwindSafe for SelectPane<'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