0.84: Copy & Paste of folder pastes as subfolder

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

0.84: Copy & Paste of folder pastes as subfolder

Post by helmut »

XnView: MP 0.84
OS: Windows XP - 32 bit

When copying and pasting a folder in the file list using Ctrl+X and Ctrl+P the folder is pasted as subfolder of itself.

Effect: Unexpected behaviour

To reproduce:
1. In the file list of the XnView browser, select a folder
2. Press Ctrl+X to copy the folder and its contents to the clipboard
3. Press Ctrl+V to paste the clipboard.
Actual behaviour (bug): The clipboard (folder) is pasted into the currently selected folder as a subfolder. :bug:

Expected behaviour: The clipboard should be pasted into the folder currently browsed in XnView.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.84: Copy & Paste of folder pastes as subfolder

Post by xnview »

right, the problem is that copied folder is always selected, and is the destination
It's not like that in XnView Classic, but it was a feature (copied files/folder pasted in selected folder) added some time ago
Pierre.
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: 0.84: Copy & Paste of folder pastes as subfolder

Post by m.Th. »

If you Copy/Cut a folder you should paste a folder and not only its content.
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.84: Copy & Paste of folder pastes as subfolder

Post by helmut »

It's a special case which works fine in XnView Classic (apart from a missing updated of the file list).
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.84: Copy & Paste of folder pastes as subfolder

Post by helmut »

xnview wrote:right, the problem is that copied folder is always selected, and is the destination
It's not like that in XnView Classic, but it was a feature (copied files/folder pasted in selected folder) added some time ago
O.k.. So let's add this feature to XnView MP, too.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.84: Copy & Paste of folder pastes as subfolder

Post by xnview »

helmut wrote:
xnview wrote:right, the problem is that copied folder is always selected, and is the destination
It's not like that in XnView Classic, but it was a feature (copied files/folder pasted in selected folder) added some time ago
O.k.. So let's add this feature to XnView MP, too.
Please see HERE
Pierre.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.84: Copy & Paste of folder pastes as subfolder

Post by helmut »

xnview wrote:
helmut wrote:
xnview wrote:right, the problem is that copied folder is always selected, and is the destination
It's not like that in XnView Classic, but it was a feature (copied files/folder pasted in selected folder) added some time ago
O.k.. So let's add this feature to XnView MP, too.
Please see HERE
Looks like the other poster had no idea. :?
Try it out in Windows Explorer (Windows XP, 7, 8, 10) or XnView Classic and you'll see: Whenever pasting a folder and its contents on a folder in the file list, the contents must be pasted in the folder currently browsed (not pasted in the currently selected folder in file list).
Erixx haxx
Posts: 330
Joined: Tue Jul 28, 2015 10:37 am

Re: 0.84: Copy & Paste of folder pastes as subfolder

Post by Erixx haxx »

Hi:
Try it out in Windows Explorer (Windows XP, 7, 8, 10)
I tried this in Win 7 and I get an error box. "Sub folder already exist"

I'm not really seeing the problem here.
When you make the copy, that folder still has focus because you haven't changed focus Yet. If you click anywhere outside, then the copy is made outside as "Copy of"
So to change this, you would have to tell Xnview to Copy + loose/change focus of the selected item.

Mouse users - It shouldn't be a problem.
Keyboard users - Might have issue, but how do they paste back inside that same folder, if wanted
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.84: Copy & Paste of folder pastes as subfolder

Post by helmut »

Erixx haxx wrote:Hi:
Try it out in Windows Explorer (Windows XP, 7, 8, 10)
I tried this in Win 7 and I get an error box. "Sub folder already exist"
I've just tried on Windows 7 Prof. 64 bit: Folders are pasted on the same level, not inside the currently selected folder. Did you copy and paste in the file list?
Erixx haxx wrote: I'm not really seeing the problem here.
The problem is that XnView is an image viewer, organizer, and to some extent a file manager. This file manager looks very much like Windows Explorer, therefore Windows users may expect the same behaviour like Explorer.
Erixx haxx wrote:... Keyboard users - Might have issue, but how do they paste back inside that same folder, if wanted
Enter and then Ctrl+V should to the job.
Erixx haxx
Posts: 330
Joined: Tue Jul 28, 2015 10:37 am

Re: 0.84: Copy & Paste of folder pastes as subfolder

Post by Erixx haxx »

Did you copy and paste in the file list?
Does this mean:
Folder Tree - Left side
or
File Browser - Big window

I tried inside the browser window on Win 7x64 view = details.
1.Select folder
2. Press Ctrl+X
3. Press Ctrl+V
4. Get error
Maybe this depends on veiw =
Enter and then Ctrl+V should to the job.
Enter would no longer enter the folder because you have lost focus.

You might be able do this if you switch focus to the tree or something.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.84: Copy & Paste of folder pastes as subfolder

Post by helmut »

Erixx haxx wrote:
Did you copy and paste in the file list?
Does this mean:
Folder Tree - Left side
or
File Browser - Big window ...
I mean the file list which by default is on the right side of the XnView browser. The file list displays both subfolders and images of the current folder.

(There is a seperate topic for Ctrl+C and Ctrl+V in folder tree which currently does not work properly at all.)
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.84: Copy & Paste of folder pastes as subfolder

Post by xnview »

O.k., Issue 1150 is fixed in next version. i add pasteIntoSubfolder setting to have previous behavior.
Pierre.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.84: Copy & Paste of folder pastes as subfolder

Post by helmut »

xnview wrote:O.k., Issue 1144 is fixed in next version. i add copyOnSubfolder setting to have previous behavior.
Good. Perhaps a better naming for the setting could be "CopyIntoSubfolder" or "PasteIntoSubfolder".
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.84: Copy & Paste of folder pastes as subfolder

Post by xnview »

This problem is supposed to be fixed in XnView MP 0.85 beta 1. Please check and confirm the bug fix here.
Pierre.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.84: Copy & Paste of folder pastes as subfolder

Post by helmut »

Copy & Paste works fine, now. Thank you, Pierre, for fixing this.
xnview wrote:O.k., Issue 1150 is fixed in next version. i add pasteIntoSubfolder setting to have previous behavior.
@Pierre: Where do I find this new setting?
Post Reply