Page 4 of 4

Re: Open files in the same order as sorted in XYplorer

Posted: 23 Apr 2016 17:21
by admin
So this confirms Ruben Keestra.

what if you do this (* = focus)?
40
* 9
34

Re: Open files in the same order as sorted in XYplorer

Posted: 23 Apr 2016 19:06
by bdeshi
are you asking me?

Re: Open files in the same order as sorted in XYplorer

Posted: 23 Apr 2016 19:15
by admin
Yes, Sammay. I was not totally sure about your findings. So you can confirm Ruben? If yes, does focus have any influence on the opening order? (I don't think so -- looking at my code it's 100% impossible).

Re: Open files in the same order as sorted in XYplorer

Posted: 23 Apr 2016 19:41
by bdeshi
No, my results are not exactly the same as Reuben's I think.

With a direct open operation, files are always opened in the sorted order, irrespective of focus.

But using drag-drop, the focused file is opened first, and the remaining files are in the order as sorted in XYplorer.
However, in RK's case, according to this screenshot, the focused file is opened inbetween the others.
admin wrote:what if you do this (* = focus)?
40
* 9
34
drag-drop: 9 > 40 > 34.
direct open: 40 > 9 > 34.

Apparently the focus-independent open order does not extend to drag-drops yet.

edited.

Re: Open files in the same order as sorted in XYplorer

Posted: 23 Apr 2016 20:26
by admin
Yes, this is by design. It's necessary because the shell context menu can be shown from the drop context menu, and the shell context menu needs the focused item first:

Code: Select all

      - Notable exception: When opening multiple files via the shell context 
        menu, the old behavior has to be continued because the focused file is 
        expected to control the nature of the menu, and the controlling file has 
        to be the first file processed for technical reasons. (This might be the 
        reason why Explorer started this slightly weird behavior in the first 
        place.)
This does not explain Ruben's issue since he opens by ENTER.

So Ruben is still the only one.

Re: Open files in the same order as sorted in XYplorer

Posted: 24 Apr 2016 04:27
by bdeshi
agreed.

Re: Open files in the same order as sorted in XYplorer

Posted: 24 Apr 2016 19:31
by admin
Actually, I thought about it and I think I can safely change the behavior also for drag-and-drop. Next version...

Re: Open files in the same order as sorted in XYplorer

Posted: 25 Apr 2016 08:57
by Ruben Keestra
The focus doesn't make any difference anymore.
Thanks for all the help. I'm curious about the new update!

Re: Open files in the same order as sorted in XYplorer

Posted: 25 Apr 2016 09:00
by admin
Ruben Keestra wrote:The focus doesn't make any difference anymore.
Thanks for all the help. I'm curious about the new update!
But you did not drag and drop, right? So the update will make no difference.

Re: Open files in the same order as sorted in XYplorer

Posted: 25 Apr 2016 10:55
by Ruben Keestra
No, I just hit Enter.

Re: Open files in the same order as sorted in XYplorer

Posted: 25 Apr 2016 16:54
by Ruben Keestra
Thanks for the new version! The new version has the same behaviour like you said it would. So it's not a solution for me...

Re: Open files in the same order as sorted in XYplorer

Posted: 25 Apr 2016 16:59
by admin
Well, it's not yet uploaded.

Re: Open files in the same order as sorted in XYplorer

Posted: 25 Apr 2016 17:13
by Ruben Keestra
Ah, I was using .200 and now .300. I thought that this was the new one :roll:

Re: Open files in the same order as sorted in XYplorer

Posted: 25 Apr 2016 17:20
by admin
Here in the forum, when I say "next version" I mean the next beta version.