From 5137f8054c8810b2a318a7a18f530274f1412b38 Mon Sep 17 00:00:00 2001 From: Lena Pastwa Date: Fri, 22 May 2026 18:59:47 +0200 Subject: [PATCH 1/2] Add a keybinding to redraw the TUI Ctrl+l by default. --- src/app.rs | 6 ++++++ src/keys/key_list.rs | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/app.rs b/src/app.rs index 8626aa3b..38e2e9b1 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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() }; diff --git a/src/keys/key_list.rs b/src/keys/key_list.rs index 24a9507a..378fc456 100644 --- a/src/keys/key_list.rs +++ b/src/keys/key_list.rs @@ -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), } } } From 939d1576160a742678659a9469e0527dc4977e5f Mon Sep 17 00:00:00 2001 From: Lena Pastwa Date: Fri, 22 May 2026 19:39:25 +0200 Subject: [PATCH 2/2] Add changelog entry --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3bdad9ba..bfcc5306 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added +* keybinding to redraw the TUI (Ctrl+l by default) [[@acuteenvy](https://github.com/acuteenvy)] ([#2956](https://github.com/gitui-org/gitui/pull/2956)) + ### Changed * use [tombi](https://github.com/tombi-toml/tombi) for all toml file formatting * open the external editor from the status diff view [[@WaterWhisperer](https://github.com/WaterWhisperer)] ([#2805](https://github.com/gitui-org/gitui/issues/2805))