Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
6 changes: 6 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
};
Expand Down
2 changes: 2 additions & 0 deletions src/keys/key_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ pub struct KeysList {
pub commit: GituiKeyEvent,
pub newline: GituiKeyEvent,
pub goto_line: GituiKeyEvent,
pub redraw_tui: GituiKeyEvent,
}

#[rustfmt::skip]
Expand Down Expand Up @@ -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),
}
}
}
Expand Down
Loading