pub enum KeyContext {
Show 13 variants
Create,
Confirm,
Help,
CommandLogs,
Config,
ConfigEdit,
Report,
OpenMenu,
CommandPalette,
LinkChooseTarget,
LinkInputNumber,
ExecPicker,
Clean,
}Expand description
One modal / overlay surface whose keys are independently rebindable.
config_path is the dotted key under [tui.keys.modal] that addresses
the context’s sub-table (confirm, link.choose_target, config.edit).
Variants§
Create
Create-worktree modal (also reused by the rename / View::Edit modal).
Confirm
Delete-confirmation modal.
Help
Keybindings / help overlay (scroll-only).
CommandLogs
Command-logs overlay (issue #226, scroll-only + copy).
Config
Settings panel navigation (issue #232).
ConfigEdit
Settings panel while a numeric field is being edited (sub-mode of
KeyContext::Config; a separate context because Enter means
commit here but activate in nav).
Report
Bootstrap-report overlay (scroll-only / close).
OpenMenu
Browse-links menu (issue #224 / #290).
CommandPalette
Command palette overlay (issue #32).
LinkChooseTarget
Link prompt, stage 1 — choose issue vs PR.
LinkInputNumber
Link prompt, stage 2 — type the issue / PR number.
ExecPicker
Exec profile picker overlay (issue #325).
Clean
Clean reclaim overlay (issue #325).
Implementations§
Source§impl KeyContext
impl KeyContext
Sourcepub fn config_path(self) -> &'static str
pub fn config_path(self) -> &'static str
Dotted key under [tui.keys.modal] addressing this context’s sub-table.
Sourcepub fn from_config_path(path: &str) -> Option<Self>
pub fn from_config_path(path: &str) -> Option<Self>
Inverse of Self::config_path — used by the config walker to map a
[tui.keys.modal.<path>] sub-table back to a typed context.
Sourcepub fn all() -> &'static [KeyContext]
pub fn all() -> &'static [KeyContext]
Every context, in declaration order (the order gwm tui keys lists).
Trait Implementations§
Source§impl Clone for KeyContext
impl Clone for KeyContext
Source§fn clone(&self) -> KeyContext
fn clone(&self) -> KeyContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for KeyContext
Source§impl Debug for KeyContext
impl Debug for KeyContext
impl Eq for KeyContext
Source§impl Hash for KeyContext
impl Hash for KeyContext
Source§impl Ord for KeyContext
impl Ord for KeyContext
Source§fn cmp(&self, other: &KeyContext) -> Ordering
fn cmp(&self, other: &KeyContext) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for KeyContext
impl PartialEq for KeyContext
Source§fn eq(&self, other: &KeyContext) -> bool
fn eq(&self, other: &KeyContext) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for KeyContext
impl PartialOrd for KeyContext
impl StructuralPartialEq for KeyContext
Auto Trait Implementations§
impl Freeze for KeyContext
impl RefUnwindSafe for KeyContext
impl Send for KeyContext
impl Sync for KeyContext
impl Unpin for KeyContext
impl UnsafeUnpin for KeyContext
impl UnwindSafe for KeyContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more