Page 1 of 1

Filter (list only) folders that contain a specific file type?

Posted: 10 Oct 2017 08:26
by Megalith
Can the visual filter be configured to list only folders that contain a specific file type, like PDFs?

Re: Filter (list only) folders that contain a specific file type?

Posted: 10 Oct 2017 08:58
by highend
Afaik no,
but you could use a script that shows these (subfolders of the current path!) folders
in a paperfolder...

Code: Select all

    $matches = quicksearch("*.pdf /f /maxdepth=1 /limitperdir=1");
    paperfolder("PDF", regexreplace($matches, "\\[^\\]+(\r?\n|$)", <crlf>));

Re: Filter (list only) folders that contain a specific file type?

Posted: 10 Oct 2017 09:06
by Megalith
Thanks, but your script doesn't seem to do anything other than bring up a popup menu with those two lines of code. Maybe I'm doing it wrong...

Re: Filter (list only) folders that contain a specific file type?

Posted: 10 Oct 2017 09:12
by highend
Indent both lines by at least one space (they were posted with 4)

Re: Filter (list only) folders that contain a specific file type?

Posted: 10 Oct 2017 09:13
by Megalith
Awesome, thank you.