New search pattern switch

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

Re: New search pattern switch

Post by admin »

You don't think so?

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: New search pattern switch

Post by highend »

No clue, that's why I'm asking :masked:
One of my scripts helped you out? Please donate via Paypal

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

Re: New search pattern switch

Post by admin »

I don't know either. I don't use the switch. :biggrin:

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: New search pattern switch

Post by highend »

Ok :mrgreen:
One of my scripts helped you out? Please donate via Paypal

oXYgen
Posts: 43
Joined: 26 May 2014 05:57

Re: New search pattern switch

Post by oXYgen »

Thanks for the update! I've tested the latest beta and found /p switch is working but /x switch is not.

The main point is that we should consider the folders of the specified depth as the "direct containers" of files. In the first example searching *.jpg /x=1 should return User3 folder only (because User1 and User2 folders contain *.jpg). Currently XYplorer finds Root, User1, User2 and User3.

Btw, clicking on the Root item in the search results causes XYplorer to report "Location currently not available". It's weird :?

I've added November folder to my first post. Searching *.jpg /x=4 should return November and Software folders but searching *.jpg /x=3 should return Software folder only.
Last edited by oXYgen on 27 Nov 2020 15:13, edited 1 time in total.

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

Re: New search pattern switch

Post by admin »

Makes sense, but tricky! :maf: I'll try ... :cup: :cup:

oXYgen
Posts: 43
Joined: 26 May 2014 05:57

Re: New search pattern switch

Post by oXYgen »

The fix is not working again :bug: Try to rename November to August. Searching *.jpg /x=1 will find User2 by mistake.

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

Re: New search pattern switch

Post by admin »

Indeed. Interesting task. The next version should fix it for good! :cup:

oXYgen
Posts: 43
Joined: 26 May 2014 05:57

Re: New search pattern switch

Post by oXYgen »

I'm impressed! Everything works like a charm now :party:

It took some time to think about the change: "If there are no folder in relative level 5 than nothing is returned". It seems to me that this behavior is more acceptable and I couldn't find any flaws in it. Personally I use /p=1 and /x=1 switches only.

You should clarify the following phrase in Help: "The depth of the returned paths can be optionally specified".
  1. From my point of view, "depth" has a different meaning than "level". It covers the specified level and all previous levels as well (from 1 to n). There should be a clear statement that no other levels will be returned.
  2. Information about the scanning depth is not available, i.e. found folders themselves may not contain the files we search but their descendants may. In fact, XYplorer performs a deeper scan than /p and /x switches alone.

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

Re: New search pattern switch

Post by admin »

Great. :)

I will the Help as it is now. Since you are the only one using the feature it should be sufficient. :mrgreen:

oXYgen
Posts: 43
Joined: 26 May 2014 05:57

Re: New search pattern switch

Post by oXYgen »

I believe it would have a lot of users if it were more descriptive in Help.

Sometimes I catch myself thinking that XYplorer is like a universe itself and there are tons of options and capabilities that will never be discovered by me. It is amazing software!

Thanks for the brilliant feature anyway. XYplorer is the best :tup:

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

Re: New search pattern switch

Post by admin »

Thanks! :D

If you got free time and feel like writing a short article about the usage of this feature, I will post it on the website. It's a long-standing idea to have a section of usage illustrations / testimonials / samples.

Post Reply