Struct tmux_interface::commands::key_bindings::bind_key::BindKey [−][src]
Structure binding key key
to command
Manual
tmux 3.1:
tmux bind-key [-nr] [-N note] [-T key-table] key command [arguments]
(alias: bind)
tmux ^2.4:
tmux bind-key [-nr] [-T key-table] key command [arguments]
(alias: bind)
tmux ^2.3:
tmux bind-key [-cnr] [-R repeat-count] [-t mode-table] [-T key-table] key command [arguments]
(alias: bind)
tmux ^2.1:
tmux bind-key [-cnr] [-t mode-table] [-T key-table] key command [arguments]
(alias: bind)
tmux ^2.0:
tmux bind-key [-cnr] [-t mode-table] key command [arguments]
(alias: bind)
tmux ^1.0:
tmux bind-key [-cnr] [-t key-table] key command [arguments]
(alias: bind)
tmux ^0.8:
tmux bind-key [-r] key command [arguments]
(alias: bind)
Implementations
impl<'a> BindKey<'a>
[src]
pub fn new() -> Self
[src]
pub fn root(&mut self) -> &mut Self
[src]
[-n]
- an alias for -T root
pub fn repeat(&mut self) -> &mut Self
[src]
[-r]
- this key may repeat
pub fn key_table<S: Into<Cow<'a, str>>>(&mut self, key_table: S) -> &mut Self
[src]
[-T key-table]
- key-table
pub fn arguments<S: Into<Cow<'a, str>>>(&mut self, key_table: S) -> &mut Self
[src]
[arguments]
- arguments
pub fn key<S: Into<Cow<'a, str>>>(&mut self, key: S) -> &mut Self
[src]
key
pub fn command<S: Into<Cow<'a, str>>>(&mut self, command: S) -> &mut Self
[src]
command
pub fn output(&self) -> Result<TmuxOutput, Error>
[src]
Trait Implementations
impl<'a> Clone for BindKey<'a>
[src]
impl<'a> Debug for BindKey<'a>
[src]
impl<'a> Default for BindKey<'a>
[src]
impl<'a> From<&'_ TmuxCommand<'a>> for BindKey<'a>
[src]
fn from(item: &TmuxCommand<'a>) -> Self
[src]
impl<'a> From<TmuxCommand<'a>> for BindKey<'a>
[src]
fn from(item: TmuxCommand<'a>) -> Self
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,