0.84: Copy & Paste of folder pastes as subfolder

Reported bugs that have been closed and/or resolved

Moderators: XnTriq, helmut, xnview, Dreamer

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

0.84: Copy & Paste of folder pastes as subfolder

Postby helmut » Tue Feb 28, 2017 7:36 pm

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: 26999
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Postby xnview » Wed Mar 01, 2017 9:16 am

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: 1331
Joined: Wed Aug 16, 2006 6:31 am
Contact:

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

Postby m.Th. » Wed Mar 01, 2017 11:55 am

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

The Ascetic Experience - The best photos and texts from Holy Mountain (Athos)

- Dark Themed XnViewMP 0.84 64bit & XnView 2.00 x64 on Win7 x64 -

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

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

Postby helmut » Wed Mar 01, 2017 5:16 pm

It's a special case which works fine in XnView Classic (apart from a missing updated of the file list).

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

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

Postby helmut » Wed Mar 01, 2017 5:17 pm

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: 26999
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Postby xnview » Thu Mar 02, 2017 7:30 am

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
Moderator
Posts: 8080
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

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

Postby helmut » Thu Mar 02, 2017 7:40 am

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

Postby Erixx haxx » Thu Mar 02, 2017 10:55 am

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
Moderator
Posts: 8080
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

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

Postby helmut » Thu Mar 02, 2017 12:06 pm

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

Postby Erixx haxx » Fri Mar 03, 2017 2:17 am

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
Moderator
Posts: 8080
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

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

Postby helmut » Fri Mar 03, 2017 8:18 am

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: 26999
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Postby xnview » Fri Mar 03, 2017 8:50 am

O.k., Issue 1150 is fixed in next version. i add pasteIntoSubfolder setting to have previous behavior.
Pierre.

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

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

Postby helmut » Fri Mar 03, 2017 9:26 am

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: 26999
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Postby xnview » Thu Mar 16, 2017 8:45 am

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
Moderator
Posts: 8080
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

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

Postby helmut » Thu Mar 16, 2017 8:27 pm

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?


Return to “Closed/Resolved”

Who is online

Users browsing this forum: No registered users and 0 guests