Only display *.xyz files, then filter those for file name

Hi forum,

is there a way to filter

  • first for a certain file type, e.g. PDF (i.e. hide everything except PDF files),
  • and then use the filter box to filter those PDF files for matching file names?

What I wouldn't want is a button that sets the filter box to something like **.pdf and I'd have to type my way between those two asterisks every time.

For example in Thunderbird, I can use a first filter box to filter for sender, then leave that first filter box populated as it is, and type into a second filter box in order to additionally filter for subject. This is extremely convenient.

Regards David.P

You could run a find for "*.pdf" and then quick-filter the find result. Filtering an already filtered file display is not possible, afaik.

Try this button. Click it a second time to clear both filters.

@ifset:SHOWFILTERFILENAME=*.pdf Set SHOWFILTERFILENAME Set QUICKFILTERCLEAR Set FOCUS=Source @ifset:else Set SHOWFILTERFILENAME=*.pdf Set QUICKFILTER

That's an incredibly useful button, thank you. I shall create similar buttons for *.doc files etc. from this template.

Can the button be made into a toggle button, such that it appears pressed when, and as long as, the filter is active?

Regards David.P

Yes, add this at the first line:

@toggle:if SHOWFILTERFILENAME=*.pdf

Like so? o)

@toggle:if SHOWFILTERFILENAME=*.js @ifset:SHOWFILTERFILENAME=*.js Set SHOWFILTERFILENAME Set QUICKFILTERCLEAR Set FOCUS=Source @ifset:else Set SHOWFILTERFILENAME=*.js Set QUICKFILTER
A nice button indeed! Thanks Leo, I think I'm gonna use that as well. o)

A fast Leo you are! o)

(Is that kind of post-blocker not active anymore, which threw you back to edit-mode, in case there are posts from other users in the meantime?)

Thanks Leo, that is one unbeforkalievable useful button. And it can be used in parallel with the thumbnails/details view mode buttons.

Multiple copies of this button (with different file extensions) even seem to toggle each other automatically, which is also great.