Filter By Selected Extension(s)
Filter Out Selected Extension(s)
As jc said, the By vs Out makes it clear even for me what it means
it doesadmin wrote:it's a pity that English does not allow "Filter In").
That's probably because we Americans "merge" into traffic rather "filtering" in...j_c_hallgren wrote:That traffic usage of 'filter in' was unknown to me...of course, it shows there as British-English .vs. International, so...![]()
Code: Select all
::filter getinfo("SelectedItemsNames", "|")I believe this one might not always work as expected though, for instance when a filename contains "[" or if you have two items "foo" and "foobar" and select only "foo", then both will show!Pagat wrote:Code: Select all
::filter getinfo("SelectedItemsNames", "|")
Code: Select all
"&Filter Current Selection"
end 0==getinfo("CountSelected"), "No selection !", 1;
substr $sel, getinfo("SelectedItemsNames", '"|"'), 0, -3;
replace $sel, $sel, "[", "[[]";
filter '"'.$sel.'"';
status "Selection filtered";Code: Select all
"&Filter Current Selection"
end 0==getinfo("CountSelected"), "No selection !", 1;
replace $sel, report('"{Name}"|', 1), "[", "[[]";
replace $sel, $sel, "#", "[#]";
filter $sel;
status "Selection filtered";It works very fine. Thanks.jacky wrote:Right, well here's a quick update then:Code: Select all
"&Filter Current Selection" end 0==getinfo("CountSelected"), "No selection !", 1; replace $sel, report('"{Name}"|', 1), "[", "[[]"; replace $sel, $sel, "#", "[#]"; filter $sel; status "Selection filtered";
Nope, (AFAIK) as soon as you use a VF it'll be added on the VF history/MRU.jjk wrote:Do you know a mean for that ? More generally is it possible to use a visual filter without save it in VF list ?
But you can always edit the List management and delete that entry or you can use the Tweak: ForgetMRU to 1 in the configuration file before your VF and then set to 0 after your VF.jjk wrote:It works very fine. Thanks.jacky wrote:Right, well here's a quick update then:Code: Select all
"&Filter Current Selection" end 0==getinfo("CountSelected"), "No selection !", 1; replace $sel, report('"{Name}"|', 1), "[", "[[]"; replace $sel, $sel, "#", "[#]"; filter $sel; status "Selection filtered";
Now I have another request : if a select say 20 files and apply this script, the list of the 20 files names is displayed when right-clicking on "Toggle No/Last Visual Filer" button on toolbar. It is a very very laaarge line. And also, such a filter on selection is by definition temporary.
So I'd like that those filters are not saved in the visual filter list.
Do you know a mean for that ? More generally is it possible to use a visual filter without save it in VF list ?