Struct tmux_interface::commands::status_line::command_prompt::CommandPrompt [−][src]
Structure for open the command prompt in a client
Manual
tmux ^3.1:
tmux command-prompt [-1ikN] [-I inputs] [-p prompts] [-t target-client] [template]
tmux ^3.0:
tmux command-prompt [-1Ni] [-I inputs] [-p prompts] [-t target-client] [template]
tmux ^2.4:
tmux command-prompt [-1i] [-I inputs] [-p prompts] [-t target-client] [template]
tmux ^1.5:
tmux command-prompt [-I inputs] [-p prompts] [-t target-client] [template]
tmux ^1.0:
tmux command-prompt [-p prompts] [-t target-client] [template]
tmux ^0.8:
tmux command-prompt [-t target-client] [template]
Implementations
impl<'a> CommandPrompt<'a>
[src]
pub fn new() -> Self
[src]
pub fn one_keypress(&mut self) -> &mut Self
[src]
[-1]
makesthe prompt only accept one key press
pub fn on_input_change(&mut self) -> &mut Self
[src]
[-i]
execute the command every time the prompt input changes
pub fn inputs<S: Into<Cow<'a, str>>>(&mut self, inputs: S) -> &mut Self
[src]
[-I inputs]
- comma-separated list of the initial text for each prompt
pub fn prompts<S: Into<Cow<'a, str>>>(&mut self, prompts: S) -> &mut Self
[src]
[-p prompts]
- prompts is a comma-separated list of prompts which are displayed in order
pub fn target_client<S: Into<Cow<'a, str>>>(
&mut self,
target_client: S
) -> &mut Self
[src]
&mut self,
target_client: S
) -> &mut Self
[-t target-client]
- target-client
pub fn template<S: Into<Cow<'a, str>>>(&mut self, template: S) -> &mut Self
[src]
[template]
- template
pub fn output(&self) -> Result<TmuxOutput, Error>
[src]
Trait Implementations
impl<'a> Clone for CommandPrompt<'a>
[src]
fn clone(&self) -> CommandPrompt<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for CommandPrompt<'a>
[src]
impl<'a> Default for CommandPrompt<'a>
[src]
impl<'a> From<&'_ TmuxCommand<'a>> for CommandPrompt<'a>
[src]
fn from(item: &TmuxCommand<'a>) -> Self
[src]
impl<'a> From<TmuxCommand<'a>> for CommandPrompt<'a>
[src]
fn from(item: TmuxCommand<'a>) -> Self
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for CommandPrompt<'a>
impl<'a> Send for CommandPrompt<'a>
impl<'a> Sync for CommandPrompt<'a>
impl<'a> Unpin for CommandPrompt<'a>
impl<'a> UnwindSafe for CommandPrompt<'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>,