| Summary: | [Dolphin] Enhance with “Create folder from selected files” | ||
|---|---|---|---|
| Product: | [Applications] dolphin | Reporter: | bugsie <bugsie> |
| Component: | general | Assignee: | Ahmet Hakan Çelik <mail> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | ben2talk, bugseforuns, dolphin-bugs-null, fanzhuyifan, mail, meven29, nate, oded, qwerty287, serix2004 |
| Priority: | NOR | Keywords: | junior-jobs |
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/system/dolphin/-/commit/d448f4f35d286cae45a62f5a9c1a3be81202f92b | Version Fixed/Implemented In: | 24.08.0 |
| Sentry Crash Report: | |||
| Attachments: | screenshot | ||
|
Description
bugsie
2024-03-26 21:19:48 UTC
A KFileItemActions https://api.kde.org/frameworks/kio/html/classKFileItemActions.html in dolphin similar to the `copy to` `move to` ones is the way to implementing, using KNewFileMenu::creatDirectory https://api.kde.org/frameworks/kio/html/classKNewFileMenu.html I developed this feature with directory create-copy-paste functions on dolphinmainwindow.cpp. But I don't know which is better, move or copy-paste actions? Personally, I would prefer "move" - but @bugsie, as the OP, should have a say. Also is there any shortcut advice for this action? A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/770 (In reply to Ahmet Hakan Çelik from comment #4) > Also is there any shortcut advice for this action? There won't be a way if it is implemented with a KFileItemAction. There is a feature https://bugs.kde.org/show_bug.cgi?id=260266 for this. This bug is on my radar, on my shortlist of priority bugs (in 3rd position). (In reply to Ahmet Hakan Çelik from comment #2) > I developed this feature with directory create-copy-paste functions on > dolphinmainwindow.cpp. But I don't know which is better, move or copy-paste > actions? (In reply to Oded Arbel from comment #3) > Personally, I would prefer "move" - but @bugsie, as the OP, should have a > say. tl;dr: Just "move". The idea behind it is to do 1 simple (common) thing and do it well (fast & effectively), residing in the main (root) menu. For more complex "copy to" and "move to" other locations functionality there is already a context menu available under "Configure Dolphin" -> "Context Menu" -> "Copy to" and "move to" commands. I wrote about it in KDE's Brainstorm section a month ago, here's the link https://discuss.kde.org/t/dolphin-enhance-with-create-folder-from-selected-files/13038 for those who maybe want to participate there. Git commit d448f4f35d286cae45a62f5a9c1a3be81202f92b by Felix Ernst, on behalf of Ahmet Hakan Çelik. Committed on 23/05/2024 at 13:25. Pushed by felixernst into branch 'master'. Add "Move to New Folder…" action This commit introduces an action which creates a new folder with a name specified by the user and moves all the currently selected items there in one go. This action is implemented as a KFileItemActionPlugin which means users can disable it on Dolphin's context menu settings page. M +12 -0 src/CMakeLists.txt A +54 -0 src/itemactions/movetonewfolderitemaction.cpp [License: GPL(v2.0+)] A +28 -0 src/itemactions/movetonewfolderitemaction.h [License: GPL(v2.0+)] A +14 -0 src/itemactions/movetonewfolderitemaction.json https://invent.kde.org/system/dolphin/-/commit/d448f4f35d286cae45a62f5a9c1a3be81202f92b *** Bug 417400 has been marked as a duplicate of this bug. *** *** Bug 434768 has been marked as a duplicate of this bug. *** Git commit 02875a35ae044bebdc695f79446c1605d0ba43ed by Méven Car.
Committed on 31/01/2025 at 15:57.
Pushed by meven into branch 'master'.
Add a Move into new folder Drag'nDrop plugin
This should be very convenient for users, saving clicks when organizing files.
Implemented as a plugin, so we can later allow to disable it at runtime. This also simplify implementation.
{width="722" height="608"}
Only implemented for local files for now.
M +11 -1 autotests/dropjobtest.cpp
M +1 -0 src/filewidgets/CMakeLists.txt
A +8 -0 src/filewidgets/dropIntoNewFolder/CMakeLists.txt
A +90 -0 src/filewidgets/dropIntoNewFolder/dropintonewfolderPlugin.cpp [License: GPL(v2.0+)]
A +32 -0 src/filewidgets/dropIntoNewFolder/dropintonewfolderPlugin.h [License: GPL(v2.0+)]
A +9 -0 src/filewidgets/dropIntoNewFolder/dropintonewfolderPlugin.json
M +8 -2 src/filewidgets/knewfilemenu.cpp
M +7 -0 src/filewidgets/knewfilemenu.h
https://invent.kde.org/frameworks/kio/-/commit/02875a35ae044bebdc695f79446c1605d0ba43ed
|