Bug 405022 - KFind does not offer DELETE in right-click menu - only 'Move to Wastebin'
Summary: KFind does not offer DELETE in right-click menu - only 'Move to Wastebin'
Status: CONFIRMED
Alias: None
Product: kfind
Classification: Applications
Component: general (show other bugs)
Version: 20.08
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-03 06:37 UTC by Derek
Modified: 2024-02-28 05:02 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Derek 2019-03-03 06:37:27 UTC
SUMMARY
KFind does not offer DELETE - only 'Move to Wastebin'. I have been searching for and deleting files off my NAS, but because KFind doesn't offer the option to delete, i have to instead 'open file location' and delete it that way. Alternatively, wait much longer to 'move' GB-sized files to the wastebin.

STEPS TO REPRODUCE
1. Search/find a file.
2. Right-click
3. No option to delete.
4. hold Shift - still no option to delete.

OBSERVED RESULT
No right-click+shift option to delete

EXPECTED RESULT
I would expect to see the same offering as Dolphin (right-click+shift).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux 4.20.13
(available in About System)
KDE Plasma Version: 5.15.2
KDE Frameworks Version: 5.55
Qt Version: 5.12.1

ADDITIONAL INFORMATION
:)
Comment 1 Rog131 2019-03-03 13:14:03 UTC
A workaround:

If you add a 'Remove' service menu -  $HOME/.local/share/kservices5/ServiceMenus/remove.desktop:

[Desktop Entry]
Type=Service
Icon=edit-delete
ServiceTypes=KonqPopupMenu/Plugin
MimeType=all/allfiles;inode/directory;
Actions=remove;
Encoding=UTF-8
X-KDE-Priority=TopLevel

[Desktop Action remove]
Type=Application
Name=Remove
Icon=edit-delete
Exec=rm -rf %F

then the KFind will show it: https://imgur.com/ODd2DPy

The servce menu will remove files and directories...

More of the KDE Service Menus: https://techbase.kde.org/Development/Tutorials/Creating_Konqueror_Service_Menus
Comment 2 Derek 2019-03-07 09:44:06 UTC
(In reply to Rog131 from comment #1)
> A workaround:
> 

Thanks - i've applied this and it works. Unfortunately there are now two options in Dolphin (Delete and Remove) but it does the job i need in the short-term within Kfind.

It would still be good to have basically the same right-click menu in Kfind as in Dolphin (with respect to file operations). I'm hoping that this is still something that could be added to Kfind, and i appreciate its not a high-priority request.
Comment 3 funkybomber 2024-02-13 04:51:17 UTC
I could reproduce both the lack of the feature in the latest KFind (v24.04.70) and also the workaround provided by Rog131.

Tested under:
Linux/KDE Plasma: KDE Neon unstable
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.1
Kernel Version: 6.5.0-17-generic (64-bit)
Graphic Platform: X11

VM machine - QEMU:
Processor: 2 × Intel® Core™ i3-4150 CPU @ 3.50GHz
Memory: 3.9 GiB of RAM
Graphic Processor: llvmpipe
Manufacturer: QEMU
Product name: Standard PC (Q35 + ICH9, 2009)
System version: pc-q35-6.2


I have noticed that Dolphin does NOT include a "Remove" option by default in its service menu, only "Move to trash"

So I am wondering: Is it desirable to apply Rog131's solution as a KDE default? If so, we should probably keep this feature request open. If there is no desire to do so, then we should close this as RESOLVED:WONTFIX.

I think it would be nice personally.
Comment 4 Bug Janitor Service 2024-02-28 03:46:30 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Derek 2024-02-28 05:02:44 UTC
Dolphin in more recent times offers 'delete' via Shift+Del (or holding Shift while in the context menu of a file changes 'move to wastebin' to 'delete').

Rather than the workaround, i think it would be nice if Kfind had consistent operation with Dolphin.

This is obviously a nice to have, it's not a bug and with Plasma 6 the focus right now this will be a low priority in the scheme of things. But i don't think it should be closed. It seems a very sensible thing to do, when time is available for someone to do it.