diff options
| author | Nathaniel Graham <[email protected]> | 2019-12-20 10:07:25 -0700 |
|---|---|---|
| committer | Nate Graham <[email protected]> | 2020-03-15 13:20:50 -0600 |
| commit | 158d12ac37d27023cabf86d165630ec0c9309d4b (patch) | |
| tree | bbe81f75440d9b612edd086c6c44e47b7cbc2927 /src/dolphinui.rc | |
| parent | 9c3f9c4846e38c6b36737edf31a35a61c55f589a (diff) | |
Add Duplicate feature
Summary: Adds a Duplicate feature to Dolphin, showing up as a menu item in the File menu that appears when one or more items are selected and the directory is writable. Duplicated items receive the names of the original files with " copy" appended before the file extension, if any.
Test Plan:
{F5201386} {F5201393}
Test cases:
- Try to duplicate when nothing is selected: **PASS**: menu item is grayed out
- Try to duplicate anything on a read-only local volume: **PASS**: menu item is grayed out
- Try to duplicate anything on a read-only samba share: **PASS**: menu item is grayed out
- Duplicate single local file on R/W volume: **PASS**: item is duplicated and named correctly
- Duplicate multiple local files on R/W volume: **PASS**: 3 items are duplicated, named correctly, and selected
- Duplicate single local directory on R/W volume: **PASS**: item is duplicated and named correctly, but a rename operation is not initiated
- Duplicate multiple local directories on R/W volume: **PASS**: 3 items are duplicated, named correctly, and selected
- Duplicate single file on R/W samba share: **PASS**: item is duplicated and correctly
- Duplicate multiple files on R/W samba share: **PASS**: 3 items are duplicated, named correctly, and selected
- Duplicate single directory on R/W samba share: **PASS**: item is duplicated and named correctly
- Duplicate multiple directory on R/W samba share: **PASS**: 3 items are duplicated, named correctly, and selected
- Try to undo a successful duplication: **PASS**: operation is undone
This is my first attempt at a big change like this and I'm sure it's full of issues. I will accept any and all suggestions for improvement. :)
Reviewers: #dolphin, #kde_applications, elvisangelaccio, dfaure, broulik, davidedmundson
Subscribers: kfm-devel, meven, markg, fazevedo, cfeck, #dolphin
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D8208
Diffstat (limited to 'src/dolphinui.rc')
| -rw-r--r-- | src/dolphinui.rc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dolphinui.rc b/src/dolphinui.rc index e1bb9ee58..e717b67ae 100644 --- a/src/dolphinui.rc +++ b/src/dolphinui.rc @@ -1,5 +1,5 @@ <!DOCTYPE kpartgui SYSTEM "kpartgui.dtd"> -<kpartgui name="dolphin" version="29"> +<kpartgui name="dolphin" version="30"> <MenuBar> <Menu name="file"> <Action name="new_menu" /> @@ -11,6 +11,7 @@ <Action name="add_to_places" /> <Separator/> <Action name="renamefile" /> + <Action name="duplicate" /> <Action name="movetotrash" /> <Action name="deletefile" /> <Separator/> @@ -81,6 +82,7 @@ <Action name="edit_cut" /> <Action name="edit_copy" /> <Action name="renamefile" /> + <Action name="duplicate" /> <Action name="movetotrash" /> <Action name="deletefile" /> <Action name="invert_selection" /> @@ -91,6 +93,7 @@ <Action name="edit_cut" /> <Action name="edit_copy" /> <Action name="renamefile" /> + <Action name="duplicate" /> <Action name="movetotrash" /> <Action name="deletefile" /> <Action name="delete_shortcut" /> |
