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§
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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