pub struct CommandPrompt { /* private fields */ }Expand description
Typed arguments for command-prompt.
Implementations§
Source§impl CommandPrompt
impl CommandPrompt
Sourcepub fn new(template: impl Into<OsString>) -> Self
pub fn new(template: impl Into<OsString>) -> Self
Creates a background prompt with a tmux command template.
Sourcepub fn target_client(self, client: ClientName) -> Self
pub fn target_client(self, client: ClientName) -> Self
Targets an attached client.
Sourcepub const fn on_input_change(self, enabled: bool) -> Self
pub const fn on_input_change(self, enabled: bool) -> Self
Runs the template after every input change.
Sourcepub const fn prompt_type(self, prompt_type: PromptType) -> Self
pub const fn prompt_type(self, prompt_type: PromptType) -> Self
Selects the history namespace.
Sourcepub const fn expand_format(self, enabled: bool) -> Self
pub const fn expand_format(self, enabled: bool) -> Self
Expands formats in the command template.
Sourcepub const fn literal(self, enabled: bool) -> Self
pub const fn literal(self, enabled: bool) -> Self
Treats a comma-containing prompt literally. Requires tmux 3.6+.
Sourcepub const fn backspace_exit(self, enabled: bool) -> Self
pub const fn backspace_exit(self, enabled: bool) -> Self
Exits when backspace empties input. Requires tmux 3.7+.
Trait Implementations§
Source§impl Clone for CommandPrompt
impl Clone for CommandPrompt
Auto Trait Implementations§
impl Freeze for CommandPrompt
impl RefUnwindSafe for CommandPrompt
impl Send for CommandPrompt
impl Sync for CommandPrompt
impl Unpin for CommandPrompt
impl UnsafeUnpin for CommandPrompt
impl UnwindSafe for CommandPrompt
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