Page 1 of 1

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

Posted: 04 Feb 2014 04:29
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.

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

Posted: 04 Feb 2014 08:37
by highend
Because this char (as well as "|") are reserved for the separation of multiple folders in this field...

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

Posted: 04 Feb 2014 14:56
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.

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

Posted: 04 Feb 2014 15:32
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.

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

Posted: 05 Feb 2014 14:57
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 '|'.

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

Posted: 05 Feb 2014 15:44
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...