Visual filter suggestions

Features wanted...
admin
Site Admin
Posts: 66297
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post 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").

panorama
Posts: 83
Joined: 22 May 2007 16:01

Post 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:

Gandolf

Post 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.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Post 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"...
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

panorama
Posts: 83
Joined: 22 May 2007 16:01

Post 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!

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Post 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 ;)
Proud XYplorer Fanatic

jjk
Posts: 202
Joined: 10 Oct 2007 20:11
Location: Paris

Re: Visual filter suggestions

Post 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.

Pagat
Posts: 306
Joined: 09 Oct 2007 21:23
Location: Austria

Re: Visual filter suggestions

Post 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.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Visual filter suggestions

Post 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";
Proud XYplorer Fanatic

jjk
Posts: 202
Joined: 10 Oct 2007 20:11
Location: Paris

Re: Visual filter suggestions

Post by jjk »

Thanks Pagat and Jacky.
It is so simple with scripting ! So thanks Don also :)

Pagat
Posts: 306
Joined: 09 Oct 2007 21:23
Location: Austria

Re: Visual filter suggestions

Post 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 "#".

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Visual filter suggestions

Post 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";
Proud XYplorer Fanatic

jjk
Posts: 202
Joined: 10 Oct 2007 20:11
Location: Paris

Re: Visual filter suggestions

Post 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 ?

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Visual filter suggestions

Post 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.
Proud XYplorer Fanatic

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Visual filter suggestions

Post 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.

Post Reply