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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* crash when opening submodule ([#2895](https://github.com/gitui-org/gitui/issues/2895))
* when staging the last file in a directory, the first item after the directory is no longer skipped [[@Tillerino](https://github.com/Tillerino)] ([#2748](https://github.com/gitui-org/gitui/issues/2748))
* index-out-of-bounds panic when unstaging lines near the end of a diff ([#2953](https://github.com/gitui-org/gitui/issues/2953))
* the command bar `more`/`less` toggle ([.]) now works inside the diff/commit viewer popups (inspect commit, compare, file history, blame), which previously swallowed the key

## [0.28.1] - 2026-03-21

Expand Down
6 changes: 6 additions & 0 deletions src/popups/blame_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,12 @@ impl Component for BlameFilePopup {
) -> Result<EventState> {
if self.is_visible() {
if let Event::Key(key) = event {
// let the command bar more/less toggle ([.])
// bubble up to the app-level handler
if key_match(key, self.key_config.keys.cmd_bar_toggle)
{
return Ok(EventState::NotConsumed);
}
if key_match(key, self.key_config.keys.exit_popup) {
self.hide_stacked(false);
} else if key_match(key, self.key_config.keys.move_up)
Expand Down
5 changes: 5 additions & 0 deletions src/popups/compare_commits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ impl Component for CompareCommitsPopup {
}

if let Event::Key(e) = ev {
// let the command bar more/less toggle ([.])
// bubble up to the app-level handler
if key_match(e, self.key_config.keys.cmd_bar_toggle) {
return Ok(EventState::NotConsumed);
}
if key_match(e, self.key_config.keys.exit_popup) {
if self.diff.focused() {
self.details.focus(true);
Expand Down
6 changes: 6 additions & 0 deletions src/popups/file_revlog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,12 @@ impl Component for FileRevlogPopup {
}

if let Event::Key(key) = event {
// let the command bar more/less toggle ([.])
// bubble up to the app-level handler
if key_match(key, self.key_config.keys.cmd_bar_toggle)
{
return Ok(EventState::NotConsumed);
}
if key_match(key, self.key_config.keys.exit_popup) {
if self.diff.focused() {
self.diff.focus(false);
Expand Down
5 changes: 5 additions & 0 deletions src/popups/inspect_commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ impl Component for InspectCommitPopup {
}

if let Event::Key(e) = ev {
// let the command bar more/less toggle ([.])
// bubble up to the app-level handler
if key_match(e, self.key_config.keys.cmd_bar_toggle) {
return Ok(EventState::NotConsumed);
}
if key_match(e, self.key_config.keys.exit_popup) {
if self.diff.focused() {
self.details.focus(true);
Expand Down