Apply filters from the address bar

Features wanted...
Post Reply
Lare2
Posts: 65
Joined: 18 Sep 2006 08:29

Apply filters from the address bar

Post by Lare2 »

I don't know if other people would like this feature or not.

But I’ll like if we could apply filters directly from the address bar using wild cards.

For example if we are at "D:\documents\" we could see all text files, on that folder, by adding "D:\documents\*.txt" and hitting enter, which could also apply to more complex ones like "D:\documents\d????.jpg", you got the idea right ?.

Don't know if this has been proposed or not, but just want it to put this idea on the table.

-Lare2

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

Re: Apply filters from the address bar

Post by admin »

Lare2 wrote:I don't know if other people would like this feature or not.

But I’ll like if we could apply filters directly from the address bar using wild cards.

For example if we are at "D:\documents" we could see all text files, on that folder, by adding "D:\documents\*.txt" and hitting enter, which could also apply to more complex ones like "D:\documents\d????.jpg", you got the idea right ?.

Don't know if this has been proposed or not, but just want it to put this idea on the table.
Hi Lare2!

I guess this is your lucky day, because it is already built in, even in two ways!

(1) use the "?" operator to trigger a search via address bar: "D:\documents\?*.txt". Use /r to recurse subfolders: "D:\documents\?*.txt /r".

(2) use the "|" operator to add a Visual Filter to the current tab: "D:\documents\|*.txt". This filter will not recurse subfolders but it will stay with the tab until you take it away, either by Ctrl+Shift+J or by entering an empty filter in the address bar: "D:\documents\|", or simply "|".

Note that in both syntaxes you can leave out the path to apply the search/filter to the current path:
?*.txt
|*.txt

Don

Lare2
Posts: 65
Joined: 18 Sep 2006 08:29

Post by Lare2 »

That's amazing, i'm pretty new to this app and i'm right now reading he help file, and finding that it has so much more features.

Thanks for fast reply

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

Post by admin »

Lare2 wrote:That's amazing, i'm pretty new to this app and i'm right now reading he help file, and finding that it has so much more features.

Thanks for fast reply
We are all amazed by it! :wink:

You might also try the XYwiki ( http://88.191.26.34/XYwiki/index.php ) for more tips and inspiration!

allen
Posts: 89
Joined: 10 Sep 2006 19:25
Location: Northern Maine

Post by allen »

One of my favorite features of xyplorer :)

Am I missing any distinctions between the filter/search--
* Both are the same in terms of their ability to filter/syntax within the current folder
* Advantage to the search method is its ability to flatten a folder hierarchy, recurssing through sub folders.
* Advantage to the filter method is that it persists as you navigate from place to place

Am I missing any other subtleties, or are the two essentially the same functionally beyond that?

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

Post by admin »

allen wrote:One of my favorite features of xyplorer :)

Am I missing any distinctions between the filter/search--
* Both are the same in terms of their ability to filter/syntax within the current folder
* Advantage to the search method is its ability to flatten a folder hierarchy, recurssing through sub folders.
* Advantage to the filter method is that it persists as you navigate from place to place

Am I missing any other subtleties, or are the two essentially the same functionally beyond that?
One more: only the search knows Boolean syntax (prefixed by the ":" operator): "?:*.htm or *.php". Ok, this one can be done as filter as well: "|*.htm;*.php", but not things like "?:(*.htm or *.php) and not ???.*".

allen
Posts: 89
Joined: 10 Sep 2006 19:25
Location: Northern Maine

Post by allen »

Great to know. I think I've got it all sorted out then. Their subtle differencies make it often trivial which you use, but there are certainly situations where one is greatly advantageous over the other and vice versa. Making sure I knew them well enough to decide :)

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

Post by jacky »

admin wrote:One more: only the search knows Boolean syntax (prefixed by the ":" operator)
And by that I think Don meant: only seach knows Boolean syntax (prefixed by the ":" operator) and RegExp syntax (prefixed by the ">" operator) :P ;)
Proud XYplorer Fanatic

allen
Posts: 89
Joined: 10 Sep 2006 19:25
Location: Northern Maine

Post by allen »

jacky wrote:
admin wrote:One more: only the search knows Boolean syntax (prefixed by the ":" operator)
And by that I think Don meant: only seach knows Boolean syntax (prefixed by the ":" operator) and RegExp syntax (prefixed by the ">" operator) :P ;)
Just double checked, regex is fine in visual filter as well as search modes. Boolean is the lone syntax exclusion from the view filters.

e.g. these both work:

Code: Select all

My Documents\backup\?>(^.*?\.(exe|zip)$)

My Documents\backup\|>(^.*?\.(exe|zip)$)

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

Post by jacky »

allen wrote:Just double checked, regex is fine in visual filter as well as search modes. Boolean is the lone syntax exclusion from the view filters.
:oops: oh yeah, forgot for a minute RegExp worked on VF too, silly me :oops:
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 »

Just another little difference came to my mind, that jacky *discovered* recently (I never intentionally built that in, but it works :roll: :wink: ). With a search, you can pass more than one location at the same time in the Address Bar using the ";"-separator:

"E:\Dir1;E:\Dir2?* /" = do not include subfolders
"E:\Dir1;E:\Dir2?* /r" = include subfolders
"E:\Dir1;E:\Dir2?*" = take include subfolders setting from find files tab
(BTW, the * is optional when you want to find all items.)

This allows you a quick visual comparison of 2 (or more) folders, even better when you turn on the grid.

Of course, this is not possible with Visual Filters.

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 »

admin wrote:Just another little difference came to my mind, that jacky *discovered* recently (I never intentionally built that in, but it works :roll: :wink: ). With a search, you can pass more than one location at the same time in the Address Bar using the ";"-separator:

This allows you a quick visual comparison of 2 (or more) folders, even better when you turn on the grid.
Glad to know that even Don doesn't know all the power of XY! :D :lol: I've had the same thing happen on very rare occasion!
This function is something that, if not already done so, needs to be documented in a place/way that can be found easily....as it, in an obscure way, accomplishes a portion of what a dual-pane setup would... :wink:
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.

Post Reply