Easy way to reverse order of items for PFA Open?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
eil
Posts: 1864
Joined: 13 Jan 2011 19:44

Easy way to reverse order of items for PFA Open?

Post by eil »

I use Modified descending sorting, so new items added at top and say downloaded series look like:
series 4
series 3
series 2
series 1

When those are opened they get in the playlist in same order, but player starts to play from top, which is not what i want. I presume some scripted sorting>command line parameter>PFA can solve this, but i'd prefer not to turn all my PFAs into scripting lists due to this small matter.

Is there maybe some PFA switch to send items reversed or similar simple tweak i'm not aware of?
Win 7 SP1 x64 100% 1366x768|1900x1080

admin
Site Admin
Posts: 66078
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Easy way to reverse order of items for PFA Open?

Post by admin »

Yes, makes sense. We have the same already for batch rename:

Code: Select all

v25.50.0102 - 2024-02-11 13:04
    + Rename Special | Batch Rename: Added switch /r for "Process in reverse order".
      This switch is especially interesting when automatic increments are added when 
      renaming multiple items at the same time. It allows you to number the items from the 
      bottom up which is nice and natural when the list is sorted by Modified descending.
      Example:
        Larry /r
I'll see how can add it to PFA.

admin
Site Admin
Posts: 66078
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Easy way to reverse order of items for PFA Open?

Post by admin »

What about this rule: if tweak ListProcessFocusedItemFirst=1 AND if the focused item is the last selected item, then do them all in reverse order.

Now something funny: After I tested this idea (and liked it) I found out that I never exposed this tweak to the INI file! It's from 20160415, almost 10 years old, and it's implemented all over the code in lots of places, but you could never set it to 1. :om: :beer: In the next version you can. :party:

This is the plan:

Code: Select all

    + Added tweak to process the focused list item first whenever multiple selections are 
      processed, e.g. in Custom File Associations.
        ListProcessFocusedItemFirst=1
      If the tweak is set to 1 and the focused list item is the last of all selected items 
      then they are all processed in reverse order. Compare these 2 cases when 
      ListProcessFocusedItemFirst is set to 1:
        selections   processed order            selections   processed order
        45           47                         45           49
        46           48                         46           48
        47-Focus     49                         47           47
        48           45                         48           46
        49           46                         49-Focus     45

eil
Posts: 1864
Joined: 13 Jan 2011 19:44

Re: Easy way to reverse order of items for PFA Open?

Post by eil »

Initially i thought exactly about some switch, like that rename one. But indeed, tweak behaviour makes it more flexible.
I never actually could grasp the concept of "shifting focus among selection"(while mouse drag-selection used), but as i understand this tweak allows to change "operation direction" based on which item is selected last = which does the trick i'm searching for.
It's from 20160415, almost 10 years old, and it's implemented all over the code in lots of places, but you could never set it to 1.
Now that's a real "undercover secret feature". :mrgreen:
BTW, thank you for adding this to x32 too, still use it while x64 being polished.

The only thing missing IMHO is the INI description that it's a tweak, cause otherwise it risks "to get lost for a decade again".
Win 7 SP1 x64 100% 1366x768|1900x1080

admin
Site Admin
Posts: 66078
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Easy way to reverse order of items for PFA Open?

Post by admin »

eil wrote: 17 Mar 2026 00:10 BTW, thank you for adding this to x32 too, still use it while x64 being polished.

The only thing missing IMHO is the INI description that it's a tweak, cause otherwise it risks "to get lost for a decade again".
1) Same here :biggrin:

2) Oh yes :)

admin
Site Admin
Posts: 66078
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Easy way to reverse order of items for PFA Open?

Post by admin »

Code: Select all

    + Added tweak to process the focused list item first whenever multiple selections are 
      processed, e.g. in Custom File Associations.
        ListProcessFocusedItemFirst=1
      If the tweak is set to 1 and the focused list item is the last of all selected items 
      then they are all processed in reverse order. Compare these 2 cases when 
      ListProcessFocusedItemFirst is set to 1:
        selections   processed order            selections   processed order
        45           47                         45           49
        46           48                         46           48
        47-Focus     49                         47           47
        48           45                         48           46
        49           46                         49-Focus     45
By the way, since many Windows versions ago, File Explorer has always acted like the left example. I knew that, but I forgot to set ListProcessFocusedItemFirst=1 as the factory default. Next beta.

Post Reply