Skip to main content

Action

Enum Action 

Source
pub enum Action {
Show 38 variants None, Quit, OpenEditor(String), OpenViewer(String), OpenViewerAt(PathBuf), OpenRepo(PathBuf), CompareEdit, ReeditRepair, OpenAgent(String), SwitchBoard(usize), ConfirmDeleteYes, ConfirmDeleteNo, FilterModalFocus(FilterField), FilterPickerOption(usize), FilterPickerClose, SettingsRow(usize), ConfigDetailRow(usize), DatePickerHit(DatePickerHit), HelpClose, SwitchMode(TopMode), TriageOpenStatus, TriageOpenAssignee, TriageCreate, TriageFocusQueue, TriagePickOption(usize), TriageDropdownClose, TriageModalOk, CycleSelect(usize), OpenIssue(String), TemplateOpen, TemplatePickOption(usize), ConfigSection(ConfigSection), ConfigPlanningRow(usize), ConfigListRow(usize), SelectBoard(String), SelectCycle(String), SelectMilestone(String), NewFromTemplate(String),
}

Variants§

§

None

§

Quit

§

OpenEditor(String)

§

OpenViewer(String)

Open the issue file in the resolved read-only viewer (tix #1507).

§

OpenViewerAt(PathBuf)

Open an arbitrary file in the resolved read-only viewer (tix #1513).

Distinct from Action::OpenViewer, which resolves a store-relative filename through the store: a related_issues path entry may point anywhere, including outside the store, and there is no store entry to look up. The path is absolute — it comes from crate::related::resolve_path.

§

OpenRepo(PathBuf)

Run tix in a child (or parent) repository, with the working directory set to it (tix #1529). Handled in the event loop because it hands the terminal to the child, exactly as Action::OpenEditor does; on exit the parent TUI is restored, so the jump is inherently reversible.

§

CompareEdit

Re-open the editor on the conflict prompt’s temp copy so the user can compare it with the newer on-disk version (tix #1510). Handled in the event loop because it hands the terminal to the child, exactly as Action::OpenEditor does.

§

ReeditRepair

Re-open the editor on the repair prompt’s retained copy (tix #1506), so a problem with no automatic fix can be corrected by hand. Handled in the event loop for the same reason Action::CompareEdit is: the child needs the terminal.

§

OpenAgent(String)

§

SwitchBoard(usize)

Switch to a named board by tab index (mouse click on a tab, D5/D6).

§

ConfirmDeleteYes

Confirm-delete dialog Yes/No button clicked; maps to the y / any-other-key branch of App::handle_confirm_delete_key (D6).

§

ConfirmDeleteNo

§

FilterModalFocus(FilterField)

A filter-modal criterion row was clicked; focus it and open its picker or, on a date row, the calendar (D6).

§

FilterPickerOption(usize)

A visible option row of the filter modal’s open picker was clicked; choose it by its position in the filtered option list.

§

FilterPickerClose

A click landed outside the filter modal’s open picker; close it.

§

SettingsRow(usize)

A settings-modal row was clicked; select it and run the Enter action.

§

ConfigDetailRow(usize)

A dashboards detail row was clicked; select it and run the Enter action (tui-config-mode).

§

DatePickerHit(DatePickerHit)

A date-picker day cell or control was clicked; maps to the equivalent key branch (D6): day → select that date, Prev/Next → page the month, Submit → Enter.

§

HelpClose

The help overlay was clicked; close it like the ?/q/Esc branch.

§

SwitchMode(TopMode)

A vertical mode-navigation entry was clicked; switch the shell to that top-level mode (tui-mode-navigation).

§

TriageOpenStatus

The Triage mode’s status control was clicked; open the status picker (tui-triage-mode).

§

TriageOpenAssignee

The Triage mode’s assignee control was clicked; open the assignee picker.

§

TriageCreate

The Triage mode’s create control was clicked; start the inline prompt.

§

TriageFocusQueue

The Triage mode’s queue control was clicked; move the focus there. The queue has no action of its own, so this focuses and stops.

§

TriagePickOption(usize)

A visible option row of the open Triage picker was clicked; choose it by its position in the filtered option list.

§

TriageDropdownClose

A click landed outside the open Triage picker; close it.

§

TriageModalOk

The decision modal’s OK button was clicked; advance the modal through preview, arm, and apply in the same order as the keyboard.

§

CycleSelect(usize)

A Cycle-mode row was clicked; select that cycle (tui-cycle-mode).

§

OpenIssue(String)

A row of the shared flat issue table was clicked; open that issue’s detail pane. The filename is store-relative, exactly what crate::storage::IssueSelector::Filename takes. Raised by both the Cycle mode’s and the Milestones mode’s issue table (crate::ui::issue_table).

§

TemplateOpen

The New Issue mode’s Template row was clicked; open the template picker (tui-new-issue-mode).

§

TemplatePickOption(usize)

A visible option row of the open template picker was clicked; choose that template by its position in the filtered option list.

§

ConfigSection(ConfigSection)

A Config-mode section-rail entry was clicked; switch the section (tui-config-mode).

§

ConfigPlanningRow(usize)

A Config-mode cycle/milestone row was clicked; select that row’s index in the planning cursor (tui-config-mode).

§

ConfigListRow(usize)

A Config-mode Types/custom-attributes row was clicked; select that row’s index in the section’s list cursor (tui-config-mode).

§

SelectBoard(String)

A rail branch under the Board trunk was clicked; switch the active board to the named configuration (tui-mode-navigation).

§

SelectCycle(String)

A rail branch under the Cycles trunk was clicked; enter the Cycle mode focused on the named cycle (tui-mode-navigation).

§

SelectMilestone(String)

A rail branch under the Milestones trunk was clicked; enter the Milestones mode focused on the named milestone (tui-mode-navigation).

§

NewFromTemplate(String)

A rail branch under the New Issue trunk was clicked; open the New Issue form seeded from the named [templates.<name>] record.

Trait Implementations§

Source§

impl Clone for Action

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 Action

Source§

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

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

impl Eq for Action

Source§

impl PartialEq for Action

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 StructuralPartialEq for Action

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