Branch view with files and parent folders only

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Branch view with files and parent folders only

Post by LittleBiG »

Thanks for the ghost filter idea and the script. I already had the comparison coded, so I tried to incorporate your ghost filter code into my comparison.

Code: Select all

  $folder = "C:\Downloads";
  $find = "*.txt";
  $exclusionlist = "";

  $results = quicksearch("$find /f", $folder,, "s") . <crlf>;
  $allfolders = quicksearch("/d", $folder);
  foreach($fol, $allfolders, <crlf>, "e") {
    if (gettokenindex($fol."*",$results,<crlf>) == 0) {
      $exclusionlist .= $fol."|" ;
    }
  }
  $exclusionlist = formatlist($exclusionlist, "des");
  if ($exclusionlist) { ghost(regexreplace($exclusionlist, "(#|\[)", "[$1]"), 1); }
  tab("new","$folder\?$find or attr:d /flat");
  sortby "Path", "a";
On my Downloads folder yours is 120 seconds, mine is 75, which is still unacceptable. And it assumes ghost filter is not in use for other purposes.

Anyway, thank you for showing that it is indeed possible theoretically. You expressed it correctly for me: "if you really want it"

Post Reply