pub enum Msg {
Show 43 variants
MoveUp,
MoveDown,
PageUp,
PageDown,
JumpToTop,
JumpToBottom,
SelectIndex(usize),
NextView,
PrevView,
SwitchToView(ViewKind),
CycleTypeFilter,
CycleBranchFilter,
OpenBranchSearch,
SetSearchQuery(String),
ClearFilters,
SearchInput(char),
SearchBackspace,
SearchConfirm,
SearchCancel,
ToggleDetailPanel,
DetailScrollUp,
DetailScrollDown,
ToggleHelp,
OpenPromptModal,
CloseModal,
ModalScrollUp,
ModalScrollDown,
ToggleFileBrowser,
FileBrowserEnter,
FileBrowserBack,
FileBrowserToggle,
PreviewFile,
ShowFileDiff,
ToggleGoalStory,
GoalStoryToggle,
OpenFiles,
RefreshGraph,
CopyToClipboard,
Quit,
Tick,
Resize(u16, u16),
Mouse(MouseEvent),
Noop,
}Expand description
All possible messages/actions in the TUI
Variants§
MoveUp
Move selection up by one
MoveDown
Move selection down by one
PageUp
Move selection up by page
PageDown
Move selection down by page
JumpToTop
Jump to first item
JumpToBottom
Jump to last item
SelectIndex(usize)
Select item by index (for mouse clicks)
NextView
Cycle to next view (Tab)
PrevView
Cycle to previous view (Shift+Tab)
SwitchToView(ViewKind)
Switch to specific view
CycleTypeFilter
Cycle through type filters
CycleBranchFilter
Cycle through branch filters
OpenBranchSearch
Open branch search modal
SetSearchQuery(String)
Update search query
ClearFilters
Clear all filters
SearchInput(char)
Add character to search input
SearchBackspace
Remove character from search input
SearchConfirm
Confirm search and close modal
SearchCancel
Cancel search and close modal
ToggleDetailPanel
Toggle detail panel visibility
DetailScrollUp
Scroll detail panel up
DetailScrollDown
Scroll detail panel down
ToggleHelp
Toggle help modal
OpenPromptModal
Open prompt modal for current node
CloseModal
Close any open modal
ModalScrollUp
Scroll modal content up
ModalScrollDown
Scroll modal content down
ToggleFileBrowser
Toggle file browser visibility
FileBrowserEnter
Navigate into selected directory
FileBrowserBack
Navigate to parent directory
FileBrowserToggle
Expand/collapse file tree node
PreviewFile
Preview selected file
ShowFileDiff
Show diff for selected file
ToggleGoalStory
Toggle goal story view
GoalStoryToggle
Expand/collapse goal in story view
OpenFiles
Open associated files in editor
RefreshGraph
Refresh graph from database
CopyToClipboard
Copy current node info to clipboard
Quit
Quit the application
Tick
Tick event (for animations/updates)
Resize(u16, u16)
Window resized
Mouse(MouseEvent)
Mouse event
Noop
No operation (for unhandled keys)
Trait Implementations§
impl StructuralPartialEq for Msg
Auto Trait Implementations§
impl Freeze for Msg
impl RefUnwindSafe for Msg
impl Send for Msg
impl Sync for Msg
impl Unpin for Msg
impl UnwindSafe for Msg
Blanket Implementations§
Source§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
Source§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read moreSource§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read moreSource§fn aggregate_filter<P>(self, f: P) -> Self::Output
fn aggregate_filter<P>(self, f: P) -> Self::Output
Source§fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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 moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
&self to an expression for Diesel’s query builder. Read more