Skip to main content

KeyBindings

Struct KeyBindings 

Source
pub struct KeyBindings {
Show 37 fields pub board: Option<Box<ActionBindings>>, pub rollover: Option<Box<ActionBindings>>, pub detail: Option<Box<ActionBindings>>, pub form: Option<Box<ActionBindings>>, pub form_picker: Option<Box<ActionBindings>>, pub confirm_delete: Option<Box<ActionBindings>>, pub confirm_blocked_move: Option<Box<ActionBindings>>, pub help_search: Option<Box<ActionBindings>>, pub move_into_done: Option<Box<ActionBindings>>, pub help: Option<Box<ActionBindings>>, pub context_menu: Option<Box<ActionBindings>>, pub related_picker: Option<Box<ActionBindings>>, pub filter: Option<Box<ActionBindings>>, pub filter_modal: Option<Box<ActionBindings>>, pub bulk_modal: Option<Box<ActionBindings>>, pub triage: Option<Box<ActionBindings>>, pub cycle: Option<Box<ActionBindings>>, pub milestones: Option<Box<ActionBindings>>, pub repos: Option<Box<ActionBindings>>, pub stats: Option<Box<ActionBindings>>, pub schedule: Option<Box<ActionBindings>>, pub library: Option<Box<ActionBindings>>, pub portfolio: Option<Box<ActionBindings>>, pub settings: Option<Box<ActionBindings>>, pub settings_prompt: Option<Box<ActionBindings>>, pub planning_management: Option<Box<ActionBindings>>, pub planning_confirm: Option<Box<ActionBindings>>, pub planning_form: Option<Box<ActionBindings>>, pub date_picker: Option<Box<ActionBindings>>, pub comment: Option<Box<ActionBindings>>, pub asset: Option<Box<ActionBindings>>, pub edit_repair: Option<Box<ActionBindings>>, pub edit_conflict: Option<Box<ActionBindings>>, pub link_prompt: Option<Box<ActionBindings>>, pub shell: Option<Box<ActionBindings>>, pub views: Option<Box<ActionBindings>>, pub views_prompt: Option<Box<ActionBindings>>,
}

Fields§

§board: Option<Box<ActionBindings>>§rollover: Option<Box<ActionBindings>>§detail: Option<Box<ActionBindings>>§form: Option<Box<ActionBindings>>§form_picker: Option<Box<ActionBindings>>§confirm_delete: Option<Box<ActionBindings>>§confirm_blocked_move: Option<Box<ActionBindings>>§help_search: Option<Box<ActionBindings>>§move_into_done: Option<Box<ActionBindings>>§help: Option<Box<ActionBindings>>§context_menu: Option<Box<ActionBindings>>§related_picker: Option<Box<ActionBindings>>§filter: Option<Box<ActionBindings>>§filter_modal: Option<Box<ActionBindings>>§bulk_modal: Option<Box<ActionBindings>>§triage: Option<Box<ActionBindings>>§cycle: Option<Box<ActionBindings>>§milestones: Option<Box<ActionBindings>>§repos: Option<Box<ActionBindings>>§stats: Option<Box<ActionBindings>>§schedule: Option<Box<ActionBindings>>§library: Option<Box<ActionBindings>>§portfolio: Option<Box<ActionBindings>>§settings: Option<Box<ActionBindings>>§settings_prompt: Option<Box<ActionBindings>>§planning_management: Option<Box<ActionBindings>>§planning_confirm: Option<Box<ActionBindings>>§planning_form: Option<Box<ActionBindings>>§date_picker: Option<Box<ActionBindings>>§comment: Option<Box<ActionBindings>>§asset: Option<Box<ActionBindings>>§edit_repair: Option<Box<ActionBindings>>§edit_conflict: Option<Box<ActionBindings>>§link_prompt: Option<Box<ActionBindings>>§shell: Option<Box<ActionBindings>>§views: Option<Box<ActionBindings>>§views_prompt: Option<Box<ActionBindings>>

Implementations§

Source§

impl KeyBindings

Source

pub fn is_empty(&self) -> bool

Source§

impl KeyBindings

Source

pub fn load(project_root: &Path) -> Result<Self>

Load sparse TUI overrides from tix_keybindings.toml in project_root.

A missing file is the default configuration, not an error. A present file deserializes directly into KeyBindings, whose mode tables are sparse: omitted modes and actions overlay nothing and therefore keep their built-in chords.

Source

pub fn load_effective(project_root: &Path) -> Result<EffectiveBindings>

Load the dedicated file and resolve it over the built-in defaults.

Source

pub fn resolve(overrides: &KeyBindings) -> Result<EffectiveBindings>

Trait Implementations§

Source§

impl Clone for KeyBindings

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for KeyBindings

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for KeyBindings

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for KeyBindings

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for KeyBindings

Source§

impl PartialEq for KeyBindings

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for KeyBindings

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for KeyBindings

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.