Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Del key to RepoObjectsTree nodes #9630

Merged
merged 1 commit into from Oct 9, 2021

Conversation

mdonatas
Copy link
Contributor

@mdonatas mdonatas commented Oct 8, 2021

Motivation

When cleaning up branches it is very convenient to do that from the repo objects tree panel as the branches are sorted by date and it's easy to choose unnecessary ones. However having to open a context menu and click on Delete menu item is a big hurdle when compared to the whole process. It's actually easier to click on a line in a rev-grid and press del when focus is there. Enabling del key in repo objects tree panel solves that.

Proposed changes

  • Enable triggering Delete form for repo objects tree items with a del key
  • Implementation is exactly the same as is already done for triggering Rename form with F2 key

Screenshots

Before

image

image

image

After

image

image

image

Test methodology

  • Manually. Pressing del key on a local branch, remote branch and tag opens up delete form

Test environment(s)

  • Git Extensions 33.33.33
  • Build 28321b0
  • Git 2.33.0.windows.2
  • Microsoft Windows NT 10.0.19043.0
  • .NET 5.0.10
  • DPI 96dpi (no scaling)

Merge strategy

I agree that the maintainer squash merge this PR (if the commit message is clear).

✒️ I contribute this code under The Developer Certificate of Origin.

@vbjay
Copy link
Contributor

vbjay commented Oct 8, 2021 via email

@mdonatas
Copy link
Contributor Author

mdonatas commented Oct 8, 2021

Hurdle is kinda on purpose.

This is an extra hurdle on top of a confirmation dialog "hurdle" and then an additional confirmation "hurdle" so there seems to be enough hurdle already :)
By the way del key works fine if you focus a row in FormBrowse which has a branch so this only equalizes the amount of hurdle between them.

@vbjay
Copy link
Contributor

vbjay commented Oct 8, 2021 via email

@RussKie RussKie merged commit bd44304 into gitextensions:master Oct 9, 2021
@ghost ghost added this to the 3.6 milestone Oct 9, 2021
@ghost ghost assigned mdonatas Oct 9, 2021
@RussKie
Copy link
Member

RussKie commented Oct 9, 2021

Thank you

@mdonatas mdonatas deleted the enable-del-on-repo-objects branch October 12, 2021 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants