Search fails if folder has a semi-colon it its name

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".
Post Reply
Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Search fails if folder has a semi-colon it its name

Post by Papoulka »

This is with XYPlorer Free v13.70.01 (latest), running under Windows 7 32-bit.

If a folder name contains ';' search won't work within it (says 'search location currently not available'). Other special chars cause no problems ie a folder named [{}'=-_+)(&%,.~`$#@!~`] works OK. Add the semicolon and search fails.

Thanks for a terrific product. I wasn't sure I'd ever find an actual bug, but there it is.

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

Re: Search fails if folder has a semi-colon it its name

Post by highend »

Because this char (as well as "|") are reserved for the separation of multiple folders in this field...
One of my scripts helped you out? Please donate via Paypal

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Search fails if folder has a semi-colon it its name

Post by Papoulka »

Thanks for explaining it.

Then I would suggest only accepting '|' as a separator, since it can't be in a folder name anyway. And / or another character like ':'. One reason at least would be to avoid the situation I was in, where searches seemed to randomly fail until I narrowed it down.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Search fails if folder has a semi-colon it its name

Post by TheQwerty »

Papoulka wrote:Then I would suggest only accepting '|' as a separator, since it can't be in a folder name anyway. And / or another character like ':'. One reason at least would be to avoid the situation I was in, where searches seemed to randomly fail until I narrowed it down.
Unfortunately, doing so at this time would probably affect more people than have ever run into this issue.

Some alternate solutions:
Offer a way to escape the ';' character such as ';;'.
Add a checkbox under the location field to enable/disable multi-location searches - this would likely make it difficult to do a multi-location search within semi-colon containing locations.


FWIW, if you want to search within C:\A\B;1\ starting the search while browsing C:\A\ should do as you expect.

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Search fails if folder has a semi-colon it its name

Post by Papoulka »

Thanks for your replies and ideas.

To your last point, no, I don't think searching within a folder having a semi-colon in its name will work regardless of where I start.

As for fixes: XYP is rich in settable options. So, let the user choose the separator to be used in the search string. Many programs allow setting such special characters. Let it default to ';' - but let me change it to something like '|'.

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

Re: Search fails if folder has a semi-colon it its name

Post by admin »

Papoulka wrote:If a folder name contains ';' search won't work within it (says 'search location currently not available').
I thought I had built in enough smartness to do the right thing. Could you give an example for a wrongly parsed path name?

PS: OH, I just saw in works fine in Quick Name Search, but not so in Find Files. Fix comes...

Post Reply