Bug 476955

Summary: Missing Copy and/or Cut Options in Trash Context Menu
Product: [Applications] dolphin Reporter: promike1987
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: fanzhuyifan, kdedev, kfm-devel
Priority: NOR    
Version: 23.08.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=493808
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description promike1987 2023-11-13 17:44:33 UTC
### Bug Description:
When items are placed in the Trash, the right-click context menu lacks the options to copy or cut the files. The available options are limited to "Restore" and "Delete." While the drag and drop method is a viable alternative, the absence of traditional copy/cut options in the context menu may inconvenience users who prefer or are accustomed to those methods.

### Steps to Reproduce:
1. Move a file or folder to the Trash.
2. Right-click on the item in the Trash.

### Expected Behavior:
In the right-click context menu, there should be options for "Copy" or "Cut" in addition to "Restore" and "Delete."

### Actual Behavior:
The right-click context menu in the Trash only provides options for "Restore" and "Delete," omitting the traditional "Copy" and "Cut" options.

### Additional Information:
- The drag and drop method can be used as a workaround, but users may expect to find the copy/cut options directly in the context menu.
- Confirming the behavior on Archlinux, Kde Plasma Version 5.27.8, Dolphin 28.08.1
Comment 1 TraceyC 2024-10-01 18:17:34 UTC
This seems like a small, reasonable addition to the right click menu
Notably, the shortcuts for copy / cut / paste still work in the Trash folder.

Also see https://bugs.kde.org/show_bug.cgi?id=493808 which is related, but the user wants different functionality to be (re)added to the Trash right click menu
They point out the actions available in the menu are inconsistent with the hamburger menu
Comment 2 Bug Janitor Service 2024-10-12 05:01:18 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/840
Comment 3 Méven 2024-10-14 15:52:47 UTC
Git commit 58062f9a3973c1445cb2a5a4c8b77deadb99099d by Méven Car, on behalf of Eren Karakas.
Committed on 14/10/2024 at 15:52.
Pushed by meven into branch 'master'.

Add context menu items to Trash view and items

Sort by and View mode are already available through hamburger menu; cut and copy are already available through shortcuts
Related: bug 493808

M  +17   -0    src/dolphincontextmenu.cpp

https://invent.kde.org/system/dolphin/-/commit/58062f9a3973c1445cb2a5a4c8b77deadb99099d