NOT option in Visual Filter

Features wanted...
Post Reply
Gandolf

NOT option in Visual Filter

Post by Gandolf »

I can't remember if this has been requested before but I couldn't see it in a search of the Forum. I frequently want to see all files that are not of a particular type. Since I don't necessarily know what the other file types might be it is not possible to select a filter to show only them, so what I require is a filter to not show certain files. Rather like the Invert function in the Find Files.

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 »

I also could see this coming in handy in some cases when one doesn't want to exclude from display all other file types, but wish to spotlight a particular type by it being "normal"...

That's how I understand Gandolf's wish...
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.

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

Re: NOT option in Visual Filter

Post by admin »

Gandolf wrote:I can't remember if this has been requested before but I couldn't see it in a search of the Forum. I frequently want to see all files that are not of a particular type. Since I don't necessarily know what the other file types might be it is not possible to select a filter to show only them, so what I require is a filter to not show certain files. Rather like the Invert function in the Find Files.
Yeah, never asked for but already somewhere on my list. So I did it right now. Nice function! :)

Gandolf

Post by Gandolf »

What speed of response!!

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

Post by jacky »

This is pretty cool indeed! :D

I found this a bit "weird" though:

Code: Select all

!a*;b*  -> hide all items starting with "a" or "b". 
I would have though that to do that, one would have to use !a*;!b*
and that !a*;b* would mean hide items starting starting with "a", and show ones starting with "b"

No obviously this is kinda stupid here :P but could be used to have like *something*;!*.txt if you want al items with "something" in their name, but no text files.... :idea:
Proud XYplorer Fanatic

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

Post by admin »

jacky wrote:This is pretty cool indeed! :D

I found this a bit "weird" though:

Code: Select all

!a*;b*  -> hide all items starting with "a" or "b". 
I would have though that to do that, one would have to use !a*;!b*
and that !a*;b* would mean hide items starting starting with "a", and show ones starting with "b"

No obviously this is kinda stupid here :P but could be used to have like *something*;!*.txt if you want al items with "something" in their name, but no text files.... :idea:
Yes, I wanted to do it like this at first. But 5 minutes later you would have asked for AND and OR operators and parentheses... :wink: No, let's keep this one simple: "!" inverts (inverses?) the filter results, finish. It just turns "show" into "hide".

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

Post by jacky »

admin wrote:Yes, I wanted to do it like this at first. But 5 minutes later you would have asked for AND and OR operators and parentheses... :wink: No, let's keep this one simple: "!" inverts (inverses?) the filter results, finish. It just turns "show" into "hide".
hehe.. ok.

/me removes the adding Boolean mode into VF suggestion from its list! :P ;)
Proud XYplorer Fanatic

Post Reply