Skip to main content

KeyAction

Enum KeyAction 

Source
pub enum KeyAction {
Show 32 variants Quit, Shell, SelectLeft, SelectRight, SelectUp, SelectDown, MoveLeft, MoveRight, ReorderUp, ReorderDown, ToggleExpand, Add, DependencyAdd, DependencyRemove, Parent, Edit, Reload, Maximize, Search, RegexSearch, Details, Help, ClearFilter, ConfirmQuit, CancelQuit, PopupClose, PopupScrollUp, PopupScrollDown, PopupSelectUp, PopupSelectDown, PopupSelectLeft, PopupSelectRight,
}
Expand description

Actions that can be assigned one or more keys in [tui.key_bindings].

Variants§

§

Quit

Leave Kanban mode.

§

Shell

Leave Kanban mode and hand control to the shell.

§

SelectLeft

Select the column to the left.

§

SelectRight

Select the column to the right.

§

SelectUp

Select the row above.

§

SelectDown

Select the row below.

§

MoveLeft

Move the selected item to the column on the left.

§

MoveRight

Move the selected item to the column on the right.

§

ReorderUp

Reorder the selected item upwards.

§

ReorderDown

Reorder the selected item downwards.

§

ToggleExpand

Expand or collapse the selected parent item.

§

Add

Open the form for adding a new PBI.

§

DependencyAdd

Open the form for adding a dependency to the selected PBI.

§

DependencyRemove

Open the form for removing a dependency from the selected PBI.

§

Parent

Open the form for setting or clearing the selected PBI’s parent.

§

Edit

Edit the selected item.

§

Reload

Reload the board.

§

Maximize

Toggle maximized-column mode.

§

Search

Open substring search.

§

RegexSearch

Open regular-expression search.

§

Details

Open or close the selected item’s details.

§

Help

Open or close the Kanban help window.

§

ClearFilter

Clear an active search filter.

§

ConfirmQuit

Confirm leaving from the quit dialog.

§

CancelQuit

Cancel leaving from the quit dialog.

§

PopupClose

Close the details popup.

§

PopupScrollUp

Scroll the details popup upwards.

§

PopupScrollDown

Scroll the details popup downwards.

§

PopupSelectUp

Select the row above while the details popup is open.

§

PopupSelectDown

Select the row below while the details popup is open.

§

PopupSelectLeft

Select the column to the left while the details popup is open.

§

PopupSelectRight

Select the column to the right while the details popup is open.

Implementations§

Source§

impl KeyAction

Source

pub const ALL: &'static [Self]

Every supported action, in the order used by the configuration documentation.

Source

pub const fn name(self) -> &'static str

The TOML key used for this action.

Trait Implementations§

Source§

impl Clone for KeyAction

Source§

fn clone(&self) -> KeyAction

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 Copy for KeyAction

Source§

impl Debug for KeyAction

Source§

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

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

impl Eq for KeyAction

Source§

impl Hash for KeyAction

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for KeyAction

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for KeyAction

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> AnyEq for T
where T: Any + PartialEq,

Source§

fn equals(&self, other: &(dyn Any + 'static)) -> bool

Source§

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

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> 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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. 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.