pub struct GitTuiConfig {
pub command: Option<String>,
pub fullscreen: Option<bool>,
}Expand description
[git_tui] table — drives the l keybinding in the TUI worktree list
(issue #75). Absent ⇒ legacy default lazygit -p {path} with
fullscreen=true, so no .gwm.toml change is required for repos that
were happy with the previous behaviour. Sharing [ReviewConfig]’s
shape (placeholder expansion + fullscreen flag) keeps the user’s
mental model consistent across the two launcher keybindings.
Fields§
§command: Option<String>Shell line. Accepts the {path} placeholder. When None, the
resolved launcher uses lazygit -p {path}.
fullscreen: Option<bool>Whether gwm should suspend its own TUI before exec’ing the command.
Defaults to true for TUI tools like lazygit / gitui / tig; set to
false to launch e.g. a GUI editor that should run alongside gwm.
Implementations§
Source§impl GitTuiConfig
impl GitTuiConfig
Sourcepub fn resolved(&self) -> ResolvedLauncher
pub fn resolved(&self) -> ResolvedLauncher
Resolve to a concrete (command, fullscreen) pair. The default
(no [git_tui] block in .gwm.toml) is lazygit -p {path} so the
l keybinding behaves exactly as it did before issue #75 landed.
Trait Implementations§
Source§impl Clone for GitTuiConfig
impl Clone for GitTuiConfig
Source§fn clone(&self) -> GitTuiConfig
fn clone(&self) -> GitTuiConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GitTuiConfig
impl Debug for GitTuiConfig
Source§impl Default for GitTuiConfig
impl Default for GitTuiConfig
Source§fn default() -> GitTuiConfig
fn default() -> GitTuiConfig
Source§impl<'de> Deserialize<'de> for GitTuiConfig
impl<'de> Deserialize<'de> for GitTuiConfig
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>,
Auto Trait Implementations§
impl Freeze for GitTuiConfig
impl RefUnwindSafe for GitTuiConfig
impl Send for GitTuiConfig
impl Sync for GitTuiConfig
impl Unpin for GitTuiConfig
impl UnsafeUnpin for GitTuiConfig
impl UnwindSafe for GitTuiConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>. Box<dyn Any> can
then be further downcast into Box<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>. Rc<Any> 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> 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 more