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§impl<'a> PartialOrd for PasteBuffer<'a>
impl<'a> PartialOrd for PasteBuffer<'a>
impl<'a> Eq for PasteBuffer<'a>
impl<'a> StructuralPartialEq for PasteBuffer<'a>
Auto Trait Implementations§
impl<'a> Freeze for PasteBuffer<'a>
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