Struct tmux_interface::commands::key_bindings::bind_key::BindKey
source · pub struct BindKey<'a> {
pub root: bool,
pub repeat: bool,
pub note: Option<Cow<'a, str>>,
pub key_table: Option<Cow<'a, str>>,
pub arguments: Option<Cow<'a, str>>,
pub key: Option<Cow<'a, str>>,
pub command: Option<Cow<'a, str>>,
}
Expand description
Structure binding key key
to command
§Manual
tmux 3.1:
bind-key [-nr] [-N note] [-T key-table] key command [arguments]
(alias: bind)
tmux ^2.4:
bind-key [-nr] [-T key-table] key command [arguments]
(alias: bind)
tmux ^2.3:
bind-key [-cnr] [-R repeat-count] [-t mode-table] [-T key-table] key command [arguments]
(alias: bind)
tmux ^2.1:
bind-key [-cnr] [-t mode-table] [-T key-table] key command [arguments]
(alias: bind)
tmux ^2.0:
bind-key [-cnr] [-t mode-table] key command [arguments]
(alias: bind)
tmux ^1.0:
bind-key [-cnr] [-t key-table] key command [arguments]
(alias: bind)
tmux ^0.8:
bind-key [-r] key command [arguments]
(alias: bind)
Fields§
§root: bool
[-n]
- an alias for -T root
repeat: bool
[-r]
- this key may repeat
note: Option<Cow<'a, str>>
[-N note]
- attaches note to the key
key_table: Option<Cow<'a, str>>
[-T key-table]
- key-table
arguments: Option<Cow<'a, str>>
[arguments]
- arguments
key: Option<Cow<'a, str>>
key
command: Option<Cow<'a, str>>
command
Implementations§
Trait Implementations§
source§impl<'a> From<BindKey<'a>> for TmuxCommand<'a>
impl<'a> From<BindKey<'a>> for TmuxCommand<'a>
source§impl<'a> Ord for BindKey<'a>
impl<'a> Ord for BindKey<'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 BindKey<'a>
impl<'a> PartialEq for BindKey<'a>
source§impl<'a> PartialOrd for BindKey<'a>
impl<'a> PartialOrd for BindKey<'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 BindKey<'a>
impl<'a> StructuralPartialEq for BindKey<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for BindKey<'a>
impl<'a> Send for BindKey<'a>
impl<'a> Sync for BindKey<'a>
impl<'a> Unpin for BindKey<'a>
impl<'a> UnwindSafe for BindKey<'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