Struct tmux_interface::commands::windows_and_panes::copy_mode::CopyMode
source · pub struct CopyMode<'a> {
pub bottom_exit: bool,
pub hide_position: bool,
pub mouse_drag: bool,
pub cancel: bool,
pub page_up: bool,
pub src_pane: Option<Cow<'a, str>>,
pub target_pane: Option<Cow<'a, str>>,
}
Expand description
Enter copy mode
§Manual
tmux ^3.2:
copy-mode [-eHMqu] [-s src-pane] [-t target-pane]
tmux ^2.1:
copy-mode [-Meu] [-t target-pane]
tmux ^1.0:
copy-mode [-u] [-t target-pane]
tmux ^0.8:
copy-mode [-u] [-t target-window]
Fields§
§bottom_exit: bool
[-e]
hide_position: bool
[-H]
- hides the position indicator in the top right
mouse_drag: bool
[-M]
cancel: bool
[-q]
- cancels copy mode and any other modes
page_up: bool
[-u]
src_pane: Option<Cow<'a, str>>
[-s src-pane]
target_pane: Option<Cow<'a, str>>
[-t target-pane]
Implementations§
source§impl<'a> CopyMode<'a>
impl<'a> CopyMode<'a>
pub fn new() -> Self
sourcepub fn bottom_exit(self) -> Self
pub fn bottom_exit(self) -> Self
[-e]
sourcepub fn hide_position(self) -> Self
pub fn hide_position(self) -> Self
[-H]
- hides the position indicator in the top right
sourcepub fn mouse_drag(self) -> Self
pub fn mouse_drag(self) -> Self
[-M]
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]
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> From<CopyMode<'a>> for TmuxCommand<'a>
impl<'a> From<CopyMode<'a>> for TmuxCommand<'a>
source§impl<'a> Ord for CopyMode<'a>
impl<'a> Ord for CopyMode<'a>
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 CopyMode<'a>
impl<'a> PartialEq for CopyMode<'a>
source§impl<'a> PartialOrd for CopyMode<'a>
impl<'a> PartialOrd for CopyMode<'a>
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 CopyMode<'a>
impl<'a> StructuralPartialEq for CopyMode<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for CopyMode<'a>
impl<'a> Send for CopyMode<'a>
impl<'a> Sync for CopyMode<'a>
impl<'a> Unpin for CopyMode<'a>
impl<'a> UnwindSafe for CopyMode<'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