Skip to content

Commit

Permalink
do not show edit item cmd in commit detail: msg
Browse files Browse the repository at this point in the history
fixes #1461
  • Loading branch information
extrawurst committed Dec 10, 2022
1 parent e8b7097 commit 7dcf93e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 23 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* lag issue when showing files tab ([#1451](https://github.com/extrawurst/gitui/issues/1451))
* fix key binding shown in bottom bar for `stash_open` ([#1454](https://github.com/extrawurst/gitui/issues/1454))
* `--bugreport` does not require param ([#1466](https://github.com/extrawurst/gitui/issues/1466))
* `edit`-file command shown on commits msg ([#1461](https://github.com/extrawurst/gitui/issues/1461))

## [0.22.1] - 2022-11-22

Expand Down
24 changes: 1 addition & 23 deletions src/components/inspect_commit.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::{
command_pump, event_pump, visibility_blocking, CommandBlocking,
CommandInfo, CommitDetailsComponent, Component, DiffComponent,
DrawableComponent, EventState, FileTreeOpen,
DrawableComponent, EventState,
};
use crate::{
accessors,
Expand Down Expand Up @@ -138,12 +138,6 @@ impl Component for InspectCommitComponent {
true,
true,
));

out.push(CommandInfo::new(
strings::commands::edit_item(&self.key_config),
true,
true,
));
}

visibility_blocking(self)
Expand Down Expand Up @@ -178,22 +172,6 @@ impl Component for InspectCommitComponent {
{
self.details.focus(true);
self.diff.focus(false);
} else if key_match(
e,
self.key_config.keys.open_file_tree,
) {
if let Some(commit) = self
.open_request
.as_ref()
.map(|open| open.commit_id)
{
self.hide_stacked(true);
self.queue.push(InternalEvent::OpenPopup(
StackablePopupOpen::FileTree(
FileTreeOpen::new(commit),
),
));
}
} else if key_match(
e,
self.key_config.keys.focus_left,
Expand Down
3 changes: 3 additions & 0 deletions src/components/status_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ impl Component for StatusTreeComponent {
)
.order(order::NAV),
);

out.push(
CommandInfo::new(
strings::commands::blame_file(&self.key_config),
Expand All @@ -411,6 +412,7 @@ impl Component for StatusTreeComponent {
)
.order(order::RARE_ACTION),
);

out.push(
CommandInfo::new(
strings::commands::open_file_history(
Expand All @@ -421,6 +423,7 @@ impl Component for StatusTreeComponent {
)
.order(order::RARE_ACTION),
);

out.push(
CommandInfo::new(
strings::commands::edit_item(&self.key_config),
Expand Down

0 comments on commit 7dcf93e

Please sign in to comment.