View Issue Details

IDProjectCategoryView StatusLast Update
0001765Double CommanderFile operationspublic2018-04-18 20:26
Reporterc600g Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status feedbackResolutionopen 
ProjectionnoneETAnone 
Product Version0.7.7Product Build2016/12/24 
Summary0001765: Prompt for filename on file paste when file already exists
DescriptionWhen pasting a file with a name that already exists, DC prefixes "Copy (1) " to the written file's name.

I do this all the time and usability-wise would be nice to not have to edit the filename and remove the "Copy (1) " each time.

I would prefer that DC prompt for the filename on paste when the file already exists.

To maintain backwards compatibility, perhaps a config option specifying the prefix to use, and allow empty string which causes the filename prompting.
TagsNo tags attached.
Fixed in Revision
Operating systemWindows
Widgetset
Architecture64-bit

Activities

cordylus

2017-03-13 21:02

developer   ~0002131

This is a great idea, I was also thinking about such feature. I thought it has to be a separate command with a separate hotkey - "duplicate file" or "copy to the current directory", but as I see it now, DC handles Copy-Paste to the same directory otherwise than the usual paste. When you paste a file in other directory with the file of the same name, it asks you whether it should overwrite, but when you paste it in the same folder - it auto-renames. So, the behavior with the same directory is already adjusted, just not in the optimal way. I suggest to show a usual copy dialog with the target name set to the auto-rename suggested variant, whose inserted part ("Copy (1) " or " (1)") will be selected, so it can be changed right away or left as it is with a simple Enter. It probably should indeed be bound to a new command, but no need for a new hotkey, Ctrl+C, Ctrl+V will do.

P.S. To change the auto-rename prefix/suffix, see this option: File operations, Executing operations, Duplicated name auto-rename style.

Skif_off

2018-03-31 18:09

reporter   ~0002557

It's normal Copy-Paste behavior, you can see this in other FM (Ctrl+C and Ctrl+V are systems hotkeys and their behavior should be the same and expected).

If user want to duplicate current file(s), then user can do it like all other users: button with/without hotkey and external executable file (script, etc.).

Well, or I didn't understand this issue :)

cordylus

2018-04-02 18:28

developer   ~0002559

When I copy and paste into the same directory, my intention is to make a copy of current version of the file for some purposes. Usually it's a backup or some "release" version that is going to be published or sent to somebody. So after copy I change the name of the new file so it represents the purpose (add .bak extension, new version number or current date). The final name is almost never the default autorenamed "Copy (1)", that's why I like the suggestion. Current workflow is: copy, paste, find the new file, start rename, select and delete "Copy (1)", go to the needed position (before the extension) and type what is needed. I'd like to see it shortened as much as possible without loosing general flexibility.

cordylus

2018-04-02 19:08

developer   ~0002560

I've found a command that does almost what is needed: cm_CopySamePanel, default hotkey Shift+F5. The only thing it doesn't do is to set text cursor before the extension, but that is much less of an issue. I think the problem is solved for me now, just have to get accustomed to the new hotkey.

DoubleTim

2018-04-11 19:53

reporter   ~0002562

Last edited: 2018-04-11 19:54

Per all this, my suggestion is to close with Resolution: WontFix or WorksForMe (thanks to cordylus).

cordylus

2018-04-18 20:26

developer   ~0002569

c600g, are you satisfied with the Shift+F5 solution?

Issue History

Date Modified Username Field Change
2017-03-13 02:42 c600g New Issue
2017-03-13 21:02 cordylus Note Added: 0002131
2018-03-31 18:09 Skif_off Note Added: 0002557
2018-04-02 18:28 cordylus Note Added: 0002559
2018-04-02 19:08 cordylus Note Added: 0002560
2018-04-11 19:53 DoubleTim Note Added: 0002562
2018-04-11 19:53 DoubleTim Note Edited: 0002562
2018-04-11 19:54 DoubleTim Note Edited: 0002562
2018-04-18 20:26 cordylus Note Added: 0002569
2018-04-18 20:26 cordylus Status new => feedback