Sort folders apart

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
hunsey
Posts: 2
Joined: 11 Oct 2014 01:45

Sort folders apart

Post by hunsey »

Is it possible to have just one folder sorted by folders apart, the rest of the folders not sorted apart? Or is it a universal command? I want to have a paper folder sorted by folders apart. But not have to select it in Sort by/Sort folders apart because then every folder is sorted this way.
Thanks.

highend
Posts: 14639
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Sort folders apart

Post by highend »

It's a universal command. Either all or nothing.

Paper folders support manual sorting (at least) so you could do what you want (but with no automation)...
One of my scripts helped you out? Please donate via Paypal

totmad1
Posts: 131
Joined: 24 Jun 2013 12:37

Re: Sort folders apart

Post by totmad1 »

You could try sort column Attr.
It will separate folders from files.
If you have the Pro edition you could use the following script.
It surmises that you have your paper folder open in an unlocked tab
because it will close it and reopen in new tab.

Code: Select all

"sort paper folder"
          $pf = tab("get", "path"); 
          $pf = replace($pf, "paper:", "");
          sortby Attr, a;
          sel f; 
          $listFiles = get("SelectedItemsPathNames", , a) ;
          sel i;
          $listFolders = get("SelectedItemsPathNames", , a) ;
          $FullList = $listFolders <crlf>$listFiles ;
          tab("close") ;
          writefile("<xypaper>\$pf.txt", $FullList, , );
          #340 ;  // open new tab
           goto "paper:$pf";
           sortby Index, a;
totmad1 (totally mad one)

hunsey
Posts: 2
Joined: 11 Oct 2014 01:45

Re: Sort folders apart

Post by hunsey »

Thanks totmad1, that worked!

totmad1
Posts: 131
Joined: 24 Jun 2013 12:37

Re: Sort folders apart

Post by totmad1 »

Glad to be of help.
To all, don't be afraid to ask, this is without a doubt
the best forum for help on the internet.
Of course it also has the best developer.
totmad1 (totally mad one)

DrChiron
Posts: 40
Joined: 04 Apr 2013 15:01
Location: Los Angeles environs

Re: Sort folders apart

Post by DrChiron »

Greetings: I hate to be late to the party, but I have folders NOT sorted apart, but force any file or folder to the top of the list by having an exclamation point (!) as the first character of its name. Very easy and no scripts required (unless the presence of the punctuation mark bothers you). Doc
Retired Hollywood Video Engr
[WinX Home amd64] [XYplorer 20.80.0000]

Post Reply