Repository navigation
Add "Delete" (permanent delete) to Git Panel context menu for parity with Project Panel #66964
benedictjohannes
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Body
What are you proposing?
Add a "Delete File" (permanent deletion) option to the context menu in the Git panel for untracked files, matching the Project panel (file explorer).
Currently, right-clicking an untracked file in the Git panel only presents "Trash File". Users should have the option to permanently delete the file directly from the Git panel as well.
Why does this matter?
Trash(move to system trash, e.g. viaDelete/Backspace) andDelete(permanent deletion, e.g. viaShift-Delete). Having only "Trash File" in the Git panel breaks muscle memory and consistency across panels.Are there any examples or context?
The two screenshots below shows:
project_panel::Trash) and Delete (project_panel::Delete, typically bound toShift-Delete)Comparison with VS Code:
The Source Control panel allows discarding untracked files with "Discard Changes" configurable
git.discardUntrackedChangesToTrash(boolean - false deletes permanently). Zed expose no such settings. I suggest adding direct "Delete File" as the more flexible approach.Possible approach
git_panel::DeleteFileor generalgit_panel::Delete) alongside the existing trash actions incrates/git_ui.deploy_entry_context_menu), when right-clicking untracked files (or folders containing untracked files), include "Delete File" / "Delete Files..." below "Trash File".project_panel::Delete) stating the action will permanently delete the selected item(s) from disk, bypassing the trash.Shift-Deletekeybinding shortcut when the Git panel has focus on untracked entries.All reactions