pub struct CommandPrompt<'a> {
pub one_keypress: bool,
pub background: bool,
pub expand_as_format: bool,
pub on_input_change: bool,
pub key_name: bool,
pub disable_splitting: bool,
pub numeric: bool,
pub inputs: Option<Cow<'a, str>>,
pub prompts: Option<Cow<'a, str>>,
pub target_client: Option<Cow<'a, str>>,
pub prompt_type: Option<PromptType>,
pub template: Option<Cow<'a, str>>,
}Expand description
Open the command prompt in a client
§Manual
tmux >=3.6:
command-prompt [-1bFiklN] [-I inputs] [-p prompts] [-t target-client] [-T prompt-type] [template]tmux >=3.3:
command-prompt [-1bFikN] [-I inputs] [-p prompts] [-t target-client] [-T prompt-type] [template]tmux >=3.2:
command-prompt [-1ikNTW] [-I inputs] [-p prompts] [-t target-client] [template]tmux >=3.1:
command-prompt [-1ikN] [-I inputs] [-p prompts] [-t target-client] [template]tmux >=3.0a:
command-prompt [-1Ni] [-I inputs] [-p prompts] [-t target-client] [template]tmux >=2.4:
command-prompt [-1i] [-I inputs] [-p prompts] [-t target-client] [template]tmux >=1.5:
command-prompt [-I inputs] [-p prompts] [-t target-client] [template]tmux >=0.8:
command-prompt [-t target-client] [template]Fields§
§one_keypress: bool[-1]
background: bool[-b]
expand_as_format: bool[-F]
on_input_change: bool[-i]
key_name: bool[-k]
disable_splitting: bool[-l]
numeric: bool[-N]
inputs: Option<Cow<'a, str>>[-I inputs]
prompts: Option<Cow<'a, str>>[-p prompts]
target_client: Option<Cow<'a, str>>[-t target-client]
prompt_type: Option<PromptType>[-T prompt-type]
template: Option<Cow<'a, str>>[template]
Implementations§
Source§impl<'a> CommandPrompt<'a>
impl<'a> CommandPrompt<'a>
pub fn new() -> Self
Sourcepub fn one_keypress(self) -> Self
pub fn one_keypress(self) -> Self
[-1]
Sourcepub fn background(self) -> Self
pub fn background(self) -> Self
[-b]
Sourcepub fn expand_as_format(self) -> Self
pub fn expand_as_format(self) -> Self
[-F]
Sourcepub fn on_input_change(self) -> Self
pub fn on_input_change(self) -> Self
[-i]
Sourcepub fn disable_splitting(self) -> Self
pub fn disable_splitting(self) -> Self
[-l]
Sourcepub fn target_client<S: Into<Cow<'a, str>>>(self, target_client: S) -> Self
pub fn target_client<S: Into<Cow<'a, str>>>(self, target_client: S) -> Self
[-t target-client]
Sourcepub fn prompt_type(self, prompt_type: PromptType) -> Self
pub fn prompt_type(self, prompt_type: PromptType) -> Self
[-T prompt-type]
Sourcepub fn build(self) -> TmuxCommand<'a>
pub fn build(self) -> TmuxCommand<'a>
build command with arguments in right order
Trait Implementations§
Source§impl<'a> Clone for CommandPrompt<'a>
impl<'a> Clone for CommandPrompt<'a>
Source§fn clone(&self) -> CommandPrompt<'a>
fn clone(&self) -> CommandPrompt<'a>
Returns a duplicate 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 CommandPrompt<'a>
impl<'a> Debug for CommandPrompt<'a>
Source§impl<'a> Default for CommandPrompt<'a>
impl<'a> Default for CommandPrompt<'a>
Source§fn default() -> CommandPrompt<'a>
fn default() -> CommandPrompt<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> From<CommandPrompt<'a>> for TmuxCommand<'a>
Available on crate feature tmux_0_8 only.
impl<'a> From<CommandPrompt<'a>> for TmuxCommand<'a>
Available on crate feature
tmux_0_8 only.Source§fn from(item: CommandPrompt<'a>) -> Self
fn from(item: CommandPrompt<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for CommandPrompt<'a>
impl<'a> Hash for CommandPrompt<'a>
Source§impl<'a> Ord for CommandPrompt<'a>
impl<'a> Ord for CommandPrompt<'a>
Source§fn cmp(&self, other: &CommandPrompt<'a>) -> Ordering
fn cmp(&self, other: &CommandPrompt<'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 CommandPrompt<'a>
impl<'a> PartialEq for CommandPrompt<'a>
Source§impl<'a> PartialOrd for CommandPrompt<'a>
impl<'a> PartialOrd for CommandPrompt<'a>
impl<'a> Eq for CommandPrompt<'a>
impl<'a> StructuralPartialEq for CommandPrompt<'a>
Auto Trait Implementations§
impl<'a> Freeze for CommandPrompt<'a>
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> UnsafeUnpin for CommandPrompt<'a>
impl<'a> UnwindSafe for CommandPrompt<'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