Skip to content

Support Delete key everywhere #1412

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

Merged
merged 1 commit into from
Jun 11, 2025

Conversation

NathanBaulch
Copy link
Contributor

I keep trying to delete/remove things with the del key and nothing happens. Currently the only place this works is for reverting unstaged changes. This PR adds support for keyboard delete in the following places:

  1. delete remote
  2. delete branch (local, remote, grouped)
  3. delete tag
  4. drop stash
  5. delete git log
  6. delete repo (from welcome screen)

This is the first time I've ever used Avalonia so please feel free to treat this PR as a functional WIP.

Future places del could also be used:

  1. to un-stage staged changes
  2. minus button in main preference lists (custom action, AI)
  3. minus button on project preference lists (commit template, issue tracker, custom action)
  4. minus button on workspaces list

@love-linger love-linger self-assigned this Jun 11, 2025
@love-linger love-linger added the enhancement New feature or request label Jun 11, 2025
@love-linger love-linger merged commit 196b454 into sourcegit-scm:develop Jun 11, 2025
13 checks passed
@NathanBaulch NathanBaulch deleted the delete-key branch June 11, 2025 07:51
love-linger added a commit that referenced this pull request Jun 11, 2025
- Use `ViewModels.StashesPage.SelectedStash` instead of `sender is not ListBox { SelectedValue: Models.Stash stash }`
- In tags view, `SelectedItem` can be `Models.Tag` or `ViewModels.TagTreeNode`
- In logs window, `vm.SelectedLog` may be null

Signed-off-by: leo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants