KeyMap

Struct KeyMap 

Source
pub struct KeyMap {
Show 55 fields pub help_overlay: Vec<KeyChord>, pub reload_config: Vec<KeyChord>, pub exit: Vec<KeyChord>, pub show_pkgbuild: Vec<KeyChord>, pub comments_toggle: Vec<KeyChord>, pub change_sort: Vec<KeyChord>, pub pane_next: Vec<KeyChord>, pub pane_left: Vec<KeyChord>, pub pane_right: Vec<KeyChord>, pub config_menu_toggle: Vec<KeyChord>, pub options_menu_toggle: Vec<KeyChord>, pub panels_menu_toggle: Vec<KeyChord>, pub search_move_up: Vec<KeyChord>, pub search_move_down: Vec<KeyChord>, pub search_page_up: Vec<KeyChord>, pub search_page_down: Vec<KeyChord>, pub search_add: Vec<KeyChord>, pub search_install: Vec<KeyChord>, pub search_focus_left: Vec<KeyChord>, pub search_focus_right: Vec<KeyChord>, pub search_backspace: Vec<KeyChord>, pub search_insert_clear: Vec<KeyChord>, pub search_normal_toggle: Vec<KeyChord>, pub search_normal_insert: Vec<KeyChord>, pub search_normal_select_left: Vec<KeyChord>, pub search_normal_select_right: Vec<KeyChord>, pub search_normal_delete: Vec<KeyChord>, pub search_normal_clear: Vec<KeyChord>, pub search_normal_open_status: Vec<KeyChord>, pub search_normal_import: Vec<KeyChord>, pub search_normal_export: Vec<KeyChord>, pub search_normal_updates: Vec<KeyChord>, pub toggle_fuzzy: Vec<KeyChord>, pub recent_move_up: Vec<KeyChord>, pub recent_move_down: Vec<KeyChord>, pub recent_find: Vec<KeyChord>, pub recent_use: Vec<KeyChord>, pub recent_add: Vec<KeyChord>, pub recent_to_search: Vec<KeyChord>, pub recent_focus_right: Vec<KeyChord>, pub recent_remove: Vec<KeyChord>, pub recent_clear: Vec<KeyChord>, pub install_move_up: Vec<KeyChord>, pub install_move_down: Vec<KeyChord>, pub install_confirm: Vec<KeyChord>, pub install_remove: Vec<KeyChord>, pub install_clear: Vec<KeyChord>, pub install_find: Vec<KeyChord>, pub install_to_search: Vec<KeyChord>, pub install_focus_left: Vec<KeyChord>, pub news_mark_read: Vec<KeyChord>, pub news_mark_all_read: Vec<KeyChord>, pub news_mark_read_feed: Vec<KeyChord>, pub news_mark_unread_feed: Vec<KeyChord>, pub news_toggle_read_feed: Vec<KeyChord>,
}
Expand description

Application key bindings. Each action can have multiple chords.

Fields§

§help_overlay: Vec<KeyChord>

Key chords to show help overlay.

§reload_config: Vec<KeyChord>

Key chords to reload configuration.

§exit: Vec<KeyChord>

Key chords to exit the application.

§show_pkgbuild: Vec<KeyChord>

Global: Show/Hide PKGBUILD viewer

§comments_toggle: Vec<KeyChord>

Global: Show/Hide AUR comments viewer

§change_sort: Vec<KeyChord>

Global: Change results sorting mode

§pane_next: Vec<KeyChord>

Key chords to move to next pane.

§pane_left: Vec<KeyChord>

Key chords to move focus left.

§pane_right: Vec<KeyChord>

Key chords to move focus right.

§config_menu_toggle: Vec<KeyChord>

Global: Toggle Config/Lists dropdown

§options_menu_toggle: Vec<KeyChord>

Global: Toggle Options dropdown

§panels_menu_toggle: Vec<KeyChord>

Global: Toggle Panels dropdown

§search_move_up: Vec<KeyChord>

Key chords to move selection up in search results.

§search_move_down: Vec<KeyChord>

Key chords to move selection down in search results.

§search_page_up: Vec<KeyChord>

Key chords to page up in search results.

§search_page_down: Vec<KeyChord>

Key chords to page down in search results.

§search_add: Vec<KeyChord>

Key chords to add package to install list.

§search_install: Vec<KeyChord>

Key chords to install selected package.

§search_focus_left: Vec<KeyChord>

Key chords to move focus left from search pane.

§search_focus_right: Vec<KeyChord>

Key chords to move focus right from search pane.

§search_backspace: Vec<KeyChord>

Key chords for backspace in search input.

§search_insert_clear: Vec<KeyChord>

Insert mode: clear entire search input (default: Shift+Del)

§search_normal_toggle: Vec<KeyChord>

Toggle Search normal mode on/off (works from both insert/normal)

§search_normal_insert: Vec<KeyChord>

Enter insert mode while in Search normal mode

§search_normal_select_left: Vec<KeyChord>

Normal mode: extend selection to the left (default: h)

§search_normal_select_right: Vec<KeyChord>

Normal mode: extend selection to the right (default: l)

§search_normal_delete: Vec<KeyChord>

Normal mode: delete selected text (default: d)

§search_normal_clear: Vec<KeyChord>

Normal mode: clear entire search input (default: Shift+Del)

§search_normal_open_status: Vec<KeyChord>

Normal mode: open Arch status page in browser (default: Shift+S)

§search_normal_import: Vec<KeyChord>

Normal mode: trigger Import packages dialog

§search_normal_export: Vec<KeyChord>

Normal mode: trigger Export Install list

§search_normal_updates: Vec<KeyChord>

Normal mode: open Available Updates window

§toggle_fuzzy: Vec<KeyChord>

Toggle fuzzy search mode on/off

§recent_move_up: Vec<KeyChord>

Key chords to move selection up in recent queries.

§recent_move_down: Vec<KeyChord>

Key chords to move selection down in recent queries.

§recent_find: Vec<KeyChord>

Key chords to find/search in recent queries.

§recent_use: Vec<KeyChord>

Key chords to use selected recent query.

§recent_add: Vec<KeyChord>

Key chords to add package from recent to install list.

§recent_to_search: Vec<KeyChord>

Key chords to move focus from recent to search pane.

§recent_focus_right: Vec<KeyChord>

Key chords to move focus right from recent pane.

§recent_remove: Vec<KeyChord>

Remove one entry from Recent

§recent_clear: Vec<KeyChord>

Clear all entries in Recent

§install_move_up: Vec<KeyChord>

Key chords to move selection up in install list.

§install_move_down: Vec<KeyChord>

Key chords to move selection down in install list.

§install_confirm: Vec<KeyChord>

Key chords to confirm and execute install/remove operation.

§install_remove: Vec<KeyChord>

Key chords to remove item from install list.

§install_clear: Vec<KeyChord>

Key chords to clear install list.

§install_find: Vec<KeyChord>

Key chords to find/search in install list.

§install_to_search: Vec<KeyChord>

Key chords to move focus from install to search pane.

§install_focus_left: Vec<KeyChord>

Key chords to move focus left from install pane.

§news_mark_read: Vec<KeyChord>

Mark currently listed News items as read (without opening URL)

§news_mark_all_read: Vec<KeyChord>

Mark all listed News items as read

§news_mark_read_feed: Vec<KeyChord>

Mark selected News Feed item as read.

§news_mark_unread_feed: Vec<KeyChord>

Mark selected News Feed item as unread.

§news_toggle_read_feed: Vec<KeyChord>

Toggle read/unread for selected News Feed item.

Trait Implementations§

Source§

impl Clone for KeyMap

Source§

fn clone(&self) -> KeyMap

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for KeyMap

Source§

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

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

impl Default for KeyMap

Source§

fn default() -> Self

What: Supply the default key bindings for Pacsea interactions.

Inputs:

  • None.

Output:

  • Returns a KeyMap prefilling chord vectors for global, search, recent, install, and news actions.

Details:

  • Encodes human-friendly defaults such as F1 for help and Ctrl+R to reload the configuration.
  • Provides multiple bindings for certain actions (e.g., F1 and ? for help).
  • Delegates to build_default_keymap() to reduce data flow complexity.

Auto Trait Implementations§

§

impl Freeze for KeyMap

§

impl RefUnwindSafe for KeyMap

§

impl Send for KeyMap

§

impl Sync for KeyMap

§

impl Unpin for KeyMap

§

impl UnwindSafe for KeyMap

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
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert 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.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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
§

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

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more