Struct config::KeyBindings

source ·
#[non_exhaustive]
pub struct KeyBindings {
Show 46 fields pub abort: Vec<String>, pub action_break: Vec<String>, pub action_drop: Vec<String>, pub action_edit: Vec<String>, pub action_fixup: Vec<String>, pub action_pick: Vec<String>, pub action_reword: Vec<String>, pub action_squash: Vec<String>, pub confirm_no: Vec<String>, pub confirm_yes: Vec<String>, pub edit: Vec<String>, pub force_abort: Vec<String>, pub force_rebase: Vec<String>, pub help: Vec<String>, pub insert_line: Vec<String>, pub move_down: Vec<String>, pub move_end: Vec<String>, pub move_home: Vec<String>, pub move_left: Vec<String>, pub move_right: Vec<String>, pub move_up: Vec<String>, pub move_down_step: Vec<String>, pub move_up_step: Vec<String>, pub move_selection_down: Vec<String>, pub move_selection_up: Vec<String>, pub scroll_down: Vec<String>, pub scroll_end: Vec<String>, pub scroll_home: Vec<String>, pub scroll_left: Vec<String>, pub scroll_right: Vec<String>, pub scroll_up: Vec<String>, pub scroll_step_down: Vec<String>, pub scroll_step_up: Vec<String>, pub open_in_external_editor: Vec<String>, pub rebase: Vec<String>, pub redo: Vec<String>, pub remove_line: Vec<String>, pub search_start: Vec<String>, pub search_next: Vec<String>, pub search_previous: Vec<String>, pub show_commit: Vec<String>, pub show_diff: Vec<String>, pub toggle_visual_mode: Vec<String>, pub undo: Vec<String>, pub fixup_keep_message_with_editor: Vec<String>, pub fixup_keep_message: Vec<String>,
}
Expand description

Represents the key binding configuration options.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§abort: Vec<String>

Key bindings for aborting.

§action_break: Vec<String>

Key bindings for the break action.

§action_drop: Vec<String>

Key bindings for the drop action.

§action_edit: Vec<String>

Key bindings for the edit action.

§action_fixup: Vec<String>

Key bindings for the fixup action.

§action_pick: Vec<String>

Key bindings for the pick action.

§action_reword: Vec<String>

Key bindings for the reword action.

§action_squash: Vec<String>

Key bindings for the squash action.

§confirm_no: Vec<String>

Key bindings for negative confirmation.

§confirm_yes: Vec<String>

Key bindings for positive confirmation.

§edit: Vec<String>

Key bindings for editing.

§force_abort: Vec<String>

Key bindings for forcing a abort.

§force_rebase: Vec<String>

Key bindings for forcing a rebase.

§help: Vec<String>

Key bindings for showing help.

§insert_line: Vec<String>

Key bindings for inserting a line.

§move_down: Vec<String>

Key bindings for moving down.

§move_end: Vec<String>

Key bindings for moving to the end.

§move_home: Vec<String>

Key bindings for moving to the start.

§move_left: Vec<String>

Key bindings for moving to the left.

§move_right: Vec<String>

Key bindings for moving to the right.

§move_up: Vec<String>

Key bindings for moving up.

§move_down_step: Vec<String>

Key bindings for moving down a step.

§move_up_step: Vec<String>

Key bindings for moving up a step.

§move_selection_down: Vec<String>

Key bindings for moving the selection down.

§move_selection_up: Vec<String>

Key bindings for moving the selection up.

§scroll_down: Vec<String>

Key bindings for scrolling down.

§scroll_end: Vec<String>

Key bindings for scrolling to the end.

§scroll_home: Vec<String>

Key bindings for scrolling to the start.

§scroll_left: Vec<String>

Key bindings for scrolling to the left.

§scroll_right: Vec<String>

Key bindings for scrolling to the right.

§scroll_up: Vec<String>

Key bindings for scrolling up.

§scroll_step_down: Vec<String>

Key bindings for scrolling down a step.

§scroll_step_up: Vec<String>

Key bindings for scrolling up a step.

§open_in_external_editor: Vec<String>

Key bindings for opening the external editor.

§rebase: Vec<String>

Key bindings for rebasing.

§redo: Vec<String>

Key bindings for redoing a change.

§remove_line: Vec<String>

Key bindings for removing a line.

§search_start: Vec<String>

Key bindings for starting search.

§search_next: Vec<String>

Key bindings for next search match.

§search_previous: Vec<String>

Key bindings for previous search match.

§show_commit: Vec<String>

Key bindings for showing a commit.

§show_diff: Vec<String>

Key bindings for showing a diff.

§toggle_visual_mode: Vec<String>

Key bindings for toggling visual mode.

§undo: Vec<String>

Key bindings for undoing a change.

§fixup_keep_message_with_editor: Vec<String>

Key bindings for the fixup specific action to toggle the c option.

§fixup_keep_message: Vec<String>

Key bindings for the fixup specific action to toggle the c option.

Implementations§

source§

impl KeyBindings

source

pub fn new() -> Self

Create a new configuration with default values.

Trait Implementations§

source§

impl Clone for KeyBindings

source§

fn clone(&self) -> KeyBindings

Returns a copy 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 KeyBindings

source§

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

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

impl TryFrom<&Config> for KeyBindings

§

type Error = ConfigError

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

fn try_from(config: &Config) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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> ToOwned for Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.