0.82: Copy and Paste File moves Browser View

*** Please report new bugs here! ***

Moderator: Dreamer

Post Reply
User avatar
Brother Gabriel-Marie
Posts: 268
Joined: Thu Aug 23, 2007 2:33 pm
Location: United States

0.82: Copy and Paste File moves Browser View

Post by Brother Gabriel-Marie » Tue May 03, 2016 2:44 am

Okay - I want to copy a photo (jpg) and paste it so I can edit the copy.

Select a file in Browser Mode.
Ctrl+C
Ctrl+V
Dang! where is that file now? The Browser moved the scroll area to the bottom of the list and I can't see the file I just copied nor the one I pasted.
So I have to scroll all back through the list to find the one with the selection colour - not so nice for 200 files.

Here's what should happen.
Select File
Ctrl+C
Ctrl+V
selection set to the pasted file (the one with "Copy of" in the name)
AND if I push the enter key at this time it will open the file in View Mode.

User avatar
xnview
Author of XnView
Posts: 31887
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Copy and Paste File moves Browser View

Post by xnview » Tue May 17, 2016 11:10 am

when i do that, the thumbnail view scroll to the new file, and it is selected
Pierre.

User avatar
Brother Gabriel-Marie
Posts: 268
Joined: Thu Aug 23, 2007 2:33 pm
Location: United States

Re: Copy and Paste File moves Browser View

Post by Brother Gabriel-Marie » Tue May 17, 2016 2:41 pm

Well, it is intermittent. But I can repeat it all over and over. Then there are times when it works.

Copy image.
Paste image.
Window scrolls to bottom and selection is not in sight.
Now I can't tell where I was in the list.
If I push enter nothing happens - since the image should be selected, you should be able to just push enter and open it into View Mode - but this doesn't work even when the sort works correctly.

Maybe this is a clue:
Name, sort Ascending.
Copy.
Paste.
Now push any of the arrow keys once - the list position moves to the very first item in the list, the "up directory" button-item and the top of the list scrolls into view.
That means the selection is not set correctly after the sort.

User avatar
xnview
Author of XnView
Posts: 31887
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Copy and Paste File moves Browser View

Post by xnview » Wed May 18, 2016 8:57 am

i need your xnview.ini to try, please
Pierre.

User avatar
XnTriq
Moderator & Librarian
Posts: 5456
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Copy and Paste File moves Browser View

Post by XnTriq » Thu May 19, 2016 4:30 pm

Just a thought: Does it make a difference if you activate/deactivate the following options?
  • Tools » Settings... » General » File operations » Automatically select new files
  • Tools » Settings... » File list » File list » New files are added at the end of the list

User avatar
Brother Gabriel-Marie
Posts: 268
Joined: Thu Aug 23, 2007 2:33 pm
Location: United States

Re: Copy and Paste File moves Browser View

Post by Brother Gabriel-Marie » Thu May 19, 2016 4:57 pm

If I disable both settings:

Sort is set to Date.
Copy.
Paste.
The file I copied remains selected. I don't see the copy in sight, even after a refresh.
If I set Sort to Name, then I see the copy next to the original but the original is selected.

with Automatically select new files set to true and New files are added at end of list set to false:
Sort set to name.
Copy.
Paste.
The original file remains selected. <--- this is the problem, maybe? it should be the copy that is selected now.

with Automatically select new files set to false and New files are added at end of list set to true:
Sort set to name.
Copy.
Paste.
The original file remains selected.
The copy is placed according to sort order. <--error? the copy should be put at the end of the list

The results are the same with both one instance and two instances.

I think that "new files are added at the end of list" should trump the sort order when the file is created on a copy/paste action.

User avatar
xnview
Author of XnView
Posts: 31887
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Copy and Paste File moves Browser View

Post by xnview » Fri May 20, 2016 7:37 am

XnTriq wrote: Tools » Settings... » General » File operations » Automatically select new files
this setting should be here
Tools » Settings... » File list » File list
??
Pierre.

User avatar
xnview
Author of XnView
Posts: 31887
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Copy and Paste File moves Browser View

Post by xnview » Fri May 20, 2016 7:48 am

Brother Gabriel-Marie wrote:If I disable both settings:
the problem comes from sort>Name, if you use Name(numeric) it works
Pierre.

User avatar
xnview
Author of XnView
Posts: 31887
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Copy and Paste File moves Browser View

Post by xnview » Fri May 20, 2016 7:53 am

See Issue 854 for current status and details.
Pierre.

User avatar
XnTriq
Moderator & Librarian
Posts: 5456
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Copy and Paste File moves Browser View

Post by XnTriq » Fri May 20, 2016 10:45 am

xnview wrote:
XnTriq wrote: Tools » Settings... » General » File operations » Automatically select new files
this setting should be here
Tools » Settings... » File list » File list
??
Screenshots of MP “Version 0.79 x32 (Mar 22 2016)” on Windows XP SP3:
p132084_1.png
p132084_1.png (9.15 KiB) Viewed 922 times
p132084_2.png
p132084_2.png (7.57 KiB) Viewed 922 times

User avatar
xnview
Author of XnView
Posts: 31887
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Copy and Paste File moves Browser View

Post by xnview » Fri May 20, 2016 11:16 am

do you agree that i move this setting??
Pierre.

User avatar
XnTriq
Moderator & Librarian
Posts: 5456
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Copy and Paste File moves Browser View

Post by XnTriq » Fri May 20, 2016 11:30 am

xnview wrote:do you agree that i move this setting??
Yes, Pierre. I think this would be the right place for it.

User avatar
Brother Gabriel-Marie
Posts: 268
Joined: Thu Aug 23, 2007 2:33 pm
Location: United States

Re: Copy and Paste File moves Browser View

Post by Brother Gabriel-Marie » Fri May 20, 2016 1:45 pm

Pierre, I agree, too, that the two settings should be together.

However, if I disable both settings,
Set Sort to Name(numeric)
Copy and Paste,
the original file stays selected and the copy gets added next to it in proper order.

If I set Sort to Name (NOT numeric) (both settings disabled)
Copy and Paste,
the original file stays selected and the copy gets added at the end of the list.

So, what I *want* is this:
Sort set to Name not numeric (or date), asending
Copy and Paste
new file placed next to original
new file selected so that I can immediately push enter to take it into View mode.

Maybe there could be a "duplicate" function with special parameters with options for the new name and where to show it in the list.

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

Re: Copy and Paste File moves Browser View

Post by helmut » Thu Feb 23, 2017 9:31 pm

Brother Gabriel-Marie wrote:... So, what I *want* is this:
Sort set to Name not numeric (or date), asending
Copy and Paste
new file placed next to original
new file selected so that I can immediately push enter to take it into View mode.

Maybe there could be a "duplicate" function with special parameters with options for the new name and where to show it in the list.
Hmm, I wonder what the position of the copied file should be when deactivating [ ] New files are added at the end of the list:
In sort order? Or next to the copied file? And what if several files are copied?

Note: This sounds like a feature request but I leave it here in the bug section till the expected behaviour is clarified.

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

Re: Copy and Paste File moves Browser View

Post by helmut » Sun Mar 12, 2017 11:12 pm

helmut wrote:.. Hmm, I wonder what the position of the copied file should be when deactivating [ ] New files are added at the end of the list:
In sort order? Or next to the copied file? And what if several files are copied?
When thinking about it the position of the new file is clear:
When unchecking the setting [ ] New files are added at the end of the list, the current sort order must apply and depending on the new name the copied file will sit next to the original file.
Right?

Post Reply