Page 3 of 5

Posted: 22 Jun 2007 08:12
by admin
Okay, summing it all up, and giving Gandolf, who started all this, the last word I settle for:

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 :wink: (although it's a pity that English does not allow "Filter In").

Posted: 22 Jun 2007 12:21
by panorama
admin wrote:it's a pity that English does not allow "Filter In").
it does

it just doesn't mean what you want it to here!

Have a look:

http://www.usingenglish.com/reference/p ... er+in.html



:twisted:

Posted: 23 Jun 2007 07:06
by Gandolf
Thanks Donald, that works very well (but see a bug report!).

I'd forgotten the use of filter in a traffic situation, it means almost exactly the opposite of the normal use of the word.

Posted: 23 Jun 2007 09:23
by j_c_hallgren
That traffic usage of 'filter in' was unknown to me...of course, it shows there as British-English .vs. International, so... :roll:

IMHO, those two words seem contradictory, kinda like "(to) separate 'abc' together" compared to "(to) separate 'abc' apart"...

Posted: 23 Jun 2007 15:47
by panorama
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... :roll:
That's probably because we Americans "merge" into traffic rather "filtering" in...

But I'll stop, otherwise this forum is going to start looking like alt.usage.english, which is also fun... but is less likely to turn up tips and trick for our favorite file manager!

Posted: 23 Jun 2007 18:31
by jacky
hmm.... ok I actually just upgraded, and it seems you forgot to put that new command into the VF's context menu (TB icon) !! But how am I supposed to use it then?! :P ;)

Re: Visual filter suggestions

Posted: 25 Jan 2009 11:59
by jjk
I pop again this topic, because, after having searched, I have not found what I'd want.
I think it would be useful to be able to visual filter on currently selected files, i.e. to display only selected files.

Re: Visual filter suggestions

Posted: 25 Jan 2009 12:43
by Pagat
You could use the following script command to show only the selected files in the list:

Code: Select all

::filter getinfo("SelectedItemsNames", "|")
If you put it in your catalog you have one click access to it.

Re: Visual filter suggestions

Posted: 25 Jan 2009 13:24
by jacky
Yep, this can be done through scripting, I actually have such a feature in a script of mine...
Pagat wrote:

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!
Here's what I use that should avoid such problems (though I'm not saying it's perfect) :

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";

Re: Visual filter suggestions

Posted: 25 Jan 2009 13:54
by jjk
Thanks Pagat and Jacky.
It is so simple with scripting ! So thanks Don also :)

Re: Visual filter suggestions

Posted: 25 Jan 2009 15:59
by Pagat
yup, my example is the shortest one (i believe) but has some disadvantages.

There is one more character that can lead to problems: #
In a visual filter it's representing a digit, so it won't work out of the box if a filename consists a "#".

Re: Visual filter suggestions

Posted: 25 Jan 2009 16:39
by jacky
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";

Re: Visual filter suggestions

Posted: 27 Jan 2009 10:13
by jjk
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";
It works very fine. Thanks.
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 ?

Re: Visual filter suggestions

Posted: 27 Jan 2009 10:22
by jacky
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 ?
Nope, (AFAIK) as soon as you use a VF it'll be added on the VF history/MRU.

Re: Visual filter suggestions

Posted: 27 Jan 2009 16:17
by serendipity
jjk wrote:
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";
It works very fine. Thanks.
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 ?
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.
Or simply, save settings before your VF followed by your VF and then restart without saving.