Skip to content

fix(inspect): hide file edit hint when viewing commit message (#1645)#2940

Open
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:fix/inspect-edit-cmd-1645
Open

fix(inspect): hide file edit hint when viewing commit message (#1645)#2940
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:fix/inspect-edit-cmd-1645

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

In inspect-commit view, the quick command bar showed Edit while the user was scrolling the commit message, even though e only edits the selected file in the file tree—not the message.

CommitDetailsComponent now registers child commands based on focus:

  • Details / message area → navigation commands for the message only
  • File tree → file actions including Edit

Closes #1645.

Test plan

  • Log tab → inspect commit → focus message block: Edit should not appear in the command bar
  • Move focus to file list: Edit appears when a file is selected
  • e still opens the external editor for the selected file from the file list

Made with Cursor

…org#1645)

Only surface file-tree commands (including Edit) when the file list
has focus; commit-message navigation no longer shows a misleading
edit shortcut in inspect commit view.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

edit cmd misleading when focusing commit msg in inspect view

1 participant