pub enum Action {
Show 36 variants
ToggleFocus,
Open,
Close,
Down,
Up,
NextGroup,
PrevGroup,
HalfPageDown,
HalfPageUp,
Top,
Bottom,
NextHunk,
PrevHunk,
ToggleSplit,
ToggleWrap,
ShiftRight,
ShiftLeft,
ShiftReset,
GrowDiff,
ShrinkDiff,
Fold,
Files,
ExternalEditor,
Findings,
Search,
ToggleReviewed,
Select,
Comment,
Delete,
ClearNotes,
Copy,
Reply,
Resolve,
Refetch,
Publish,
Back,
}Expand description
Something the terminal reviewer does on a key, by name (ADR 0036).
A name rather than a key, because a key is the reader’s to choose and the
thing it does is not. [keys] maps these to key strings; the renderer owns
what a key string means and what the defaults are, so this crate never
learns a terminal’s vocabulary. One name means one thing wherever it
works: down moves in the plan pane, the file list and the findings list
alike, so a reader binds it once.
Adding an action is adding a variant here, its name in Action::key,
and its default keys and its arm in the renderer.
Variants§
ToggleFocus
Open
Close
Down
Up
NextGroup
PrevGroup
HalfPageDown
HalfPageUp
Top
Bottom
NextHunk
PrevHunk
ToggleSplit
ToggleWrap
ShiftRight
ShiftLeft
ShiftReset
GrowDiff
ShrinkDiff
Fold
Files
ExternalEditor
Hand the terminal to the reader’s own editor, on the line under the
cursor. The command it runs is [review].editor (ADR 0038); this is
only the key that asks for it.
Findings
Search
ToggleReviewed
Select
Comment
Delete
ClearNotes
Copy
Reply
Resolve
Refetch
Publish
Back
Implementations§
Trait Implementations§
impl Copy for Action
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Action
Source§impl Ord for Action
impl Ord for Action
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Action
impl PartialOrd 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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.