pub enum KeymapAction {
Submit,
Newline,
Quit,
HistorySearch,
ToggleTheme,
ScrollUp,
ScrollDown,
ExternalEditor,
}Expand description
A rebindable global TUI action.
Variants§
Submit
Send the current input buffer as a turn.
Newline
Insert a newline without submitting (multi-line composing).
Quit
Quit the TUI (falls back to the REPL’s own double-press-to-exit
convention at the state-machine level — see
crate::tui::state::TuiState::handle_key’s doc comment).
HistorySearch
Open cross-session prompt-history search (D5, “Ctrl+R-style search”).
ToggleTheme
Toggle the dark/light crate::tui::Theme.
ScrollUp
Scroll the transcript up one page.
ScrollDown
Scroll the transcript down one page.
ExternalEditor
Open $EDITOR on the current input buffer.
Implementations§
Source§impl KeymapAction
impl KeymapAction
Sourcepub const ALL: &'static [KeymapAction]
pub const ALL: &'static [KeymapAction]
Every action, for iterating a whole keymap (defaults, config parsing).
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
The capabilities.tui.keymap.<name> config key this action reads
from.
Sourcepub fn default_key(self) -> KeyEvent
pub fn default_key(self) -> KeyEvent
This action’s built-in default binding.
Trait Implementations§
Source§impl Clone for KeymapAction
impl Clone for KeymapAction
Source§fn clone(&self) -> KeymapAction
fn clone(&self) -> KeymapAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KeymapAction
Source§impl Debug for KeymapAction
impl Debug for KeymapAction
impl Eq for KeymapAction
Source§impl Hash for KeymapAction
impl Hash for KeymapAction
Source§impl PartialEq for KeymapAction
impl PartialEq for KeymapAction
impl StructuralPartialEq for KeymapAction
Auto Trait Implementations§
impl Freeze for KeymapAction
impl RefUnwindSafe for KeymapAction
impl Send for KeymapAction
impl Sync for KeymapAction
impl Unpin for KeymapAction
impl UnsafeUnpin for KeymapAction
impl UnwindSafe for KeymapAction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.