Click & Search location not honored

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
acheton
Posts: 293
Joined: 27 Jul 2010 23:58
Location: XY 64bit, Win 11 at 100%

Click & Search location not honored

Post by acheton »

Hi Don,

According to the release notes relating to the "click & search" leaving the location field for the category empty should search the current directory only:
In the category's Properties dialog there is also a Location field.
Leave it empty to always search the current location. Else enter any
path. Enter * (asterisk) to search the whole PC.
However what I am seeing is that this carries out a recursive search for items in the category. So when I click on a filter (*.xml) on say drive D it searches all folders on the drive not the current directory. This doesn't seem right...

thanks


Paul

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

Re: Click & Search location not honored

Post by admin »

Really? I cannot reproduce this. Are you sure the Location field is empty?

Sometimes it is unclear what is the "current path". If you have locked tree the tree and the list might have different current paths. Also when the current list contains results of a prior search (maybe over multiple directories), what is its current path?

So it depends on the context. What is your context?

acheton
Posts: 293
Joined: 27 Jul 2010 23:58
Location: XY 64bit, Win 11 at 100%

Re: Click & Search location not honored

Post by acheton »

I am sure that the location field is empty, my category details are attached. My tree is off and locked. All I did to replicate the issue was to navigate to a location on a tab and then click on the filter. It seems to understand where I am as the search results are limited to the directory I am in although it recurses.
To see the attached files, you need to log into the forum.

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

Re: Click & Search location not honored

Post by admin »

Attachment failed...

acheton
Posts: 293
Joined: 27 Jul 2010 23:58
Location: XY 64bit, Win 11 at 100%

Re: Click & Search location not honored

Post by acheton »

Attachment again.
To see the attached files, you need to log into the forum.

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

Re: Click & Search location not honored

Post by admin »

acheton wrote:I am sure that the location field is empty, my category details are attached. My tree is off and locked. All I did to replicate the issue was to navigate to a location on a tab and then click on the filter. It seems to understand where I am as the search results are limited to the directory I am in although it recurses.
I'm not sure I get it. The search results are correct but you think that the whole drive is searched? Why do you think so?

acheton
Posts: 293
Joined: 27 Jul 2010 23:58
Location: XY 64bit, Win 11 at 100%

Re: Click & Search location not honored

Post by acheton »

Well when I run the search it shows results from all subdirectories. Thus a search in D:\ shows results from all subdirectories which it should not...

acheton
Posts: 293
Joined: 27 Jul 2010 23:58
Location: XY 64bit, Win 11 at 100%

Re: Click & Search location not honored

Post by acheton »

So to illustrate using the category above and the following item:
2014-05-13 11_50_28-.png
Produces this sort of search results when enabling on drive D
ScreenClip.png
Note the subdirectories. Whereas I was expecting only results in the root of drive D.
To see the attached files, you need to log into the forum.

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

Re: Click & Search location not honored

Post by admin »

Oh, you want to search only the root? In that case put switch "/n" into the Location box.

acheton
Posts: 293
Joined: 27 Jul 2010 23:58
Location: XY 64bit, Win 11 at 100%

Re: Click & Search location not honored

Post by acheton »

admin wrote:Oh, you want to search only the root? In that case put switch "/n" into the Location box.
Surely given the release notes this shouldn't this be unnecessary?

acheton
Posts: 293
Joined: 27 Jul 2010 23:58
Location: XY 64bit, Win 11 at 100%

Re: Click & Search location not honored

Post by acheton »

admin wrote:Oh, you want to search only the root? In that case put switch "/n" into the Location box.
/n produces the same results!

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

Re: Click & Search location not honored

Post by admin »

It is not even released. :)

Wait for the next version and help file.

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

Re: Click & Search location not honored

Post by admin »

acheton wrote:
admin wrote:Oh, you want to search only the root? In that case put switch "/n" into the Location box.
/n produces the same results!
Not here.

Place /n in the Location field.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Click & Search location not honored

Post by bdeshi »

acheton, XY searches recursively by default, so you need to override it, if you want to search only the root location.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

acheton
Posts: 293
Joined: 27 Jul 2010 23:58
Location: XY 64bit, Win 11 at 100%

Re: Click & Search location not honored

Post by acheton »

admin wrote:Place /n in the Location field.
OK that works fine. So the release notes are incorrect. That is fine.

Post Reply