pub enum Mode {
List,
Filter,
Create(CreateState),
PrPicker(PrPickerState),
PrCompose(PrComposeState),
Checkout(CheckoutState),
ConfirmRemove(usize),
ConfirmCreate(usize),
ConfirmDeleteBranch {
index: usize,
force: bool,
},
ConfirmStaleBase(StaleBaseState),
ConfirmInitSubmodules(InitSubmodulesState),
Help,
}Expand description
The interaction mode (spec §10 “View modes”).
Variants§
List
The default worktree list.
Filter
Fuzzy-filter overlay.
Create(CreateState)
Create-worktree prompt.
PrPicker(PrPickerState)
PR picker overlay.
PrCompose(PrComposeState)
PR compose form (wt pr open): edit a title + body, then submit.
Checkout(CheckoutState)
Branch picker for checking out a branch in the selected worktree.
ConfirmRemove(usize)
Confirm-remove dialog (the worktree index).
ConfirmCreate(usize)
Confirm creating a worktree for the worktree-less branch row at the given index, then switching into it (issue #47).
ConfirmDeleteBranch
Confirm-delete dialog for the worktree-less branch row at index (issue
#53). A branch row has no worktree to remove, so Remove deletes its local
branch instead. force is set on the second prompt, after a safe
git branch -d refused an unmerged branch, to offer a git branch -D.
Fields
index: usizeIndex into App::worktrees of the branch row to delete.
ConfirmStaleBase(StaleBaseState)
Confirm dialog shown when the base a new worktree would fork from is behind its origin counterpart (issue #56): update the base, proceed as-is, or cancel.
ConfirmInitSubmodules(InitSubmodulesState)
Confirm dialog shown after a worktree is created with uninitialized
submodules and the [submodules] init policy is left at its prompt
default (issue #50): initialize them recursively, or leave them. Defaults
to yes.
Help
Help overlay.
Trait Implementations§
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Mode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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