Struct tmux_interface::commands::buffers::paste_buffer::PasteBuffer
source · pub struct PasteBuffer<'a> {
pub delete: bool,
pub bracket_codes: bool,
pub no_replacement: bool,
pub buffer_name: Option<Cow<'a, str>>,
pub separator: Option<Cow<'a, str>>,
pub target_pane: Option<Cow<'a, str>>,
}
Expand description
Structure for inserting the contents of a paste buffer into the specified pane
§Manual
tmux ^1.7:
paste-buffer [-dpr] [-b buffer-name] [-s separator] [-t target-pane]
(alias: pasteb)
tmux ^1.3:
paste-buffer [-dr] [-b buffer-index] [-s separator] [-t target-window]
(alias: pasteb)
tmux ^1.0:
paste-buffer [-dr] [-b buffer-index] [-t target-window]
(alias: pasteb)
tmux ^0.8:
paste-buffer [-d] [-b buffer-index] [-t target-window]
(alias: pasteb)
Fields§
§delete: bool
[-d]
- delete the paste buffer
bracket_codes: bool
[-p]
- paste bracket control codes are inserted around the buffer
no_replacement: bool
[-r]
- do no replacement (equivalent to a separator of LF)
buffer_name: Option<Cow<'a, str>>
[-b buffer-name]
- specify the buffer mode
separator: Option<Cow<'a, str>>
[-s separator]
- specify a separator
target_pane: Option<Cow<'a, str>>
[-t target-pane]
- specify the target pane
Implementations§
source§impl<'a> PasteBuffer<'a>
impl<'a> PasteBuffer<'a>
pub fn new() -> Self
sourcepub fn bracket_codes(self) -> Self
pub fn bracket_codes(self) -> Self
[-p]
- paste bracket control codes are inserted around the buffer
sourcepub fn no_replacement(self) -> Self
pub fn no_replacement(self) -> Self
[-r]
- do no replacement (equivalent to a separator of LF)
sourcepub fn buffer_name<S: Into<Cow<'a, str>>>(self, buffer_name: S) -> Self
pub fn buffer_name<S: Into<Cow<'a, str>>>(self, buffer_name: S) -> Self
[-b buffer-name]
- specify the buffer mode
sourcepub fn separator<S: Into<Cow<'a, str>>>(self, separator: S) -> Self
pub fn separator<S: Into<Cow<'a, str>>>(self, separator: S) -> Self
[-s separator]
- specify a separator
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
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> Clone for PasteBuffer<'a>
impl<'a> Clone for PasteBuffer<'a>
source§fn clone(&self) -> PasteBuffer<'a>
fn clone(&self) -> PasteBuffer<'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 PasteBuffer<'a>
impl<'a> Debug for PasteBuffer<'a>
source§impl<'a> Default for PasteBuffer<'a>
impl<'a> Default for PasteBuffer<'a>
source§fn default() -> PasteBuffer<'a>
fn default() -> PasteBuffer<'a>
Returns the “default value” for a type. Read more
source§impl<'a> From<PasteBuffer<'a>> for TmuxCommand<'a>
impl<'a> From<PasteBuffer<'a>> for TmuxCommand<'a>
source§fn from(item: PasteBuffer<'a>) -> Self
fn from(item: PasteBuffer<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for PasteBuffer<'a>
impl<'a> Hash for PasteBuffer<'a>
source§impl<'a> Ord for PasteBuffer<'a>
impl<'a> Ord for PasteBuffer<'a>
source§fn cmp(&self, other: &PasteBuffer<'a>) -> Ordering
fn cmp(&self, other: &PasteBuffer<'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 PasteBuffer<'a>
impl<'a> PartialEq for PasteBuffer<'a>
source§fn eq(&self, other: &PasteBuffer<'a>) -> bool
fn eq(&self, other: &PasteBuffer<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for PasteBuffer<'a>
impl<'a> PartialOrd for PasteBuffer<'a>
source§fn partial_cmp(&self, other: &PasteBuffer<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &PasteBuffer<'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 PasteBuffer<'a>
impl<'a> StructuralPartialEq for PasteBuffer<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PasteBuffer<'a>
impl<'a> Send for PasteBuffer<'a>
impl<'a> Sync for PasteBuffer<'a>
impl<'a> Unpin for PasteBuffer<'a>
impl<'a> UnwindSafe for PasteBuffer<'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