Skip to content

Right-click on commit not selected - actions perform on selected commit instead #406

Closed

Description

@ADTC

Imagine this scenario:

image

I have right-clicked (i.e. Control-click) the commit "Crop images" and the menu appears on this commit. Visually, it really looks like the menu is for this commit (with the blue border). And that's what I expect every time I use the menu.

But I'm so frustrated that the actions actually perform on the selected commit "Github CI" (shaded blue). I mean, visually it makes no sense at all.

For example, "Copy Short SHA" will copy 2c5478c instead of the expected 5ab20a3. This can be pretty dangerous when pasting these SHA into Terminal, as I often end up acting on the wrong commit (for example cherry-picking it, reverting it or rebasing onto it).

I suggest doing a fix to alter the behavior, to target the right-clicked commit instead of the selected one.

Activity

  1. SwissalpS commented on Aug 1, 2023

    @SwissalpS

    I agree, select on rightclick then show contextmenu but only if target is not already selected. (don't deselect single or multiple selections)

  2. added a commit that references this issue on Sep 13, 2026
  3. hannesa2 commented on Sep 13, 2026

    @hannesa2
    Contributor

    Additional it shows the 10 character of commit message, to avoid confusion #625

    previous:

    image

    new:

    image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions