mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
Add a keybinding to redraw the TUI
Ctrl+l by default.
This commit is contained in:
parent
8619c07f3f
commit
5137f8054c
2 changed files with 8 additions and 0 deletions
|
|
@ -360,6 +360,12 @@ impl App {
|
|||
) {
|
||||
self.options_popup.show()?;
|
||||
NeedsUpdate::ALL
|
||||
} else if key_match(
|
||||
k,
|
||||
self.key_config.keys.redraw_tui,
|
||||
) {
|
||||
self.requires_redraw.set(true);
|
||||
NeedsUpdate::empty()
|
||||
} else {
|
||||
NeedsUpdate::empty()
|
||||
};
|
||||
|
|
|
|||
|
|
@ -129,6 +129,7 @@ pub struct KeysList {
|
|||
pub commit: GituiKeyEvent,
|
||||
pub newline: GituiKeyEvent,
|
||||
pub goto_line: GituiKeyEvent,
|
||||
pub redraw_tui: GituiKeyEvent,
|
||||
}
|
||||
|
||||
#[rustfmt::skip]
|
||||
|
|
@ -227,6 +228,7 @@ impl Default for KeysList {
|
|||
commit: GituiKeyEvent::new(KeyCode::Char('d'), KeyModifiers::CONTROL),
|
||||
newline: GituiKeyEvent::new(KeyCode::Enter, KeyModifiers::empty()),
|
||||
goto_line: GituiKeyEvent::new(KeyCode::Char('L'), KeyModifiers::SHIFT),
|
||||
redraw_tui: GituiKeyEvent::new(KeyCode::Char('l'), KeyModifiers::CONTROL),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue