Page 1 of 1

Sort folders apart

Posted: 11 Oct 2014 01:50
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.

Re: Sort folders apart

Posted: 11 Oct 2014 09:27
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)...

Re: Sort folders apart

Posted: 11 Oct 2014 20:50
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;

Re: Sort folders apart

Posted: 13 Oct 2014 23:53
by hunsey
Thanks totmad1, that worked!

Re: Sort folders apart

Posted: 14 Oct 2014 20:55
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.

Re: Sort folders apart

Posted: 15 Oct 2014 03:05
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