Filter by extension

Hi, would it be possible to create a button to filter by the extension of the selected file, similar to how the Select SIMILAR command works? I've tried this Set QUICKFILTER="{file|ext}, but it also considers the file name. Thanks.

Try Set QUICKFILTER="*.{file|ext}"

It doesn't work, that's how it copies, for example *..pdf

Then remove the dot:

Set QUICKFILTER="*{file|ext}"

No, that doesn't work either.

Set QUICKFILTER="{file|ext}
Result: .pdf

Set QUICKFILTER="*.{file|ext}"
Result: *..pdf

Set QUICKFILTER="*{file|ext}"
Result: *.pdf

I guess the reason is that your filter is set to regex instead of wildcard. Try:

Set QUICKFILTER="*{file|ext}" QUICKFILTERFLAGS=regexpoff,evaloff

Evaluator to the rescue :wink:

Set QUICKFILTERFLAGS=evalon,regexpoff QUICKFILTER="ext==""{file|ext2}"""

Thank you so much, it worked perfectly. I just removed the asterisk (*) because otherwise, when I clicked the button a second time to reset the filtering, the asterisk remained in the Filter bar and all the files stayed hidden. Thank you again, your help was excellent!

Set QUICKFILTER="{file|ext}" QUICKFILTERFLAGS=regexpoff

Thank you very much as well, your alternative also works very well, but when clicking the button a second time, the bar remains ext=="". To remove that residue I used this:

@if:Set QUICKFILTER
Set QUICKFILTERCLEAR
@if:else
Set QUICKFILTERFLAGS=evalon,regexpoff QUICKFILTER="ext==""{file|ext2}"""

Excuse my ignorance about Evaluator, thank you very much.