click and search: exclude location

Things you’d like to miss in the future...
Post Reply
yusef88
Posts: 1126
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

click and search: exclude location

Post by yusef88 »

help file says:
Location: Here you can state the location to be searched. Leave the field empty to always search the current location. Enter * (asterisk) to search the whole PC.
what if the user want to exclude a location?

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

Re: click and search: exclude location

Post by highend »

Then he reads the next line and finds the link for all the supported search switches...
One of my scripts helped you out? Please donate via Paypal

yusef88
Posts: 1126
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: click and search: exclude location

Post by yusef88 »

the /excl= switch doesn't work in location field so it is a wish
Image

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

Re: click and search: exclude location

Post by highend »

winstore.png
winstore.png (23.82 KiB) Viewed 991 times
quick-search.png
quick-search.png (98.42 KiB) Viewed 990 times
One of my scripts helped you out? Please donate via Paypal

yusef88
Posts: 1126
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: click and search: exclude location

Post by yusef88 »

you're right but if the search pattern itself is a switch this won't work
maybe this is an excessive request so thank you anyways

Code: Select all

/types={:Video}

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

Re: click and search: exclude location

Post by highend »

Mh?

Start dir: R:\test

Files:
R:\test\1\1.avi
R:\test\2\2.avi
R:\test\3\3.avi

Location for the search category: /excl=R:\test\2

Search pattern for the item: /types={:Video}

Result:
R:\test\1\1.avi
R:\test\3\3.avi

What am I missing here?
One of my scripts helped you out? Please donate via Paypal

yusef88
Posts: 1126
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: click and search: exclude location

Post by yusef88 »

try go to the drive root or my computer and perform the search because here it gives me all file types in the results
Image

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

Re: click and search: exclude location

Post by highend »

try go to the drive root or my computer and perform the search because here it gives me all file types in the results
Probably a bug, let's see what Don has to say...
One of my scripts helped you out? Please donate via Paypal

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

Re: click and search: exclude location

Post by admin »

I cannot reproduce this when I click the "Video" item in the Catalog: Items are filtered by /types={:Video} as expected.

However, when I check the "Video" item in the Catalog then the /types switch is ignored. This might be unexpected at first sight, but it makes sense since this way a Boolean combination of all checked items in the category is used for the search, and individual item switches have to be ignored here.

So IMO it's alright as it is.

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

Re: click and search: exclude location

Post by highend »

I can reproduce that behavior with the current beta

If the search category uses an /excl=<some path>
switch in the Location, than clicking (and not checking it)
on the item (with e.g. Pattern: /types={:Video})

leads to a result that includes everything, not only
the relevant types.

If the /excl=<some path> is removed from the category,
the quick search works as expected when clicked
One of my scripts helped you out? Please donate via Paypal

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

Re: click and search: exclude location

Post by admin »

Confirmed.

This is obviously done on purpose on the code (if the category has any switches, then drop any item switches), but unfortunately and untypically I did not make any comment on why I did it like this. :\

I will change it now.

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

Re: click and search: exclude location

Post by highend »

Thanks, and I move the thread to "Bug reports"...
One of my scripts helped you out? Please donate via Paypal

Post Reply