Page 1 of 1

Find Files scope is confusing re Text vs All Types

Posted: 30 Jun 2014 18:30
by Papoulka
This is with v14.20.0100 under Windows 7 32-bit. I have searched the forum and the Help but find no references to the subject. I'm posting it as a bug rather than a suggestion because it's possible that the progarm isn't working as intended.

--> If I start up Find Files, enter *.* and choose "All types", I want and expect to be searching all the files, regardless of their extension. Currently, that's not what happens.

With the current defaults, Find Files using Content will only work if a file extension is .txt or .log or some others in a small set. If it isn't one of these, nothing is returned. Because of this hidden file extension filtering, I only get the truly general search I want if I remember to set Type = Text & Binary under Contents. However, that's not intuitive (to me) and is not the default.

I suggest: Don't limit the set of files searched when "All types" is selected. Or maybe change the default Type to "Text & Binary", but there could be some argument against that.

Thanks

Re: Find Files scope is confusing re Text vs All Types

Posted: 30 Jun 2014 19:45
by bdeshi
The argument is that searching for text content inside non-plaintext files by default will make all content searches take close to eternity by default.

By the way, when "text" is selected on Contents tab, exactly which file extensions are searched is determined by "config->previewed formats->text"

Re: Find Files scope is confusing re Text vs All Types

Posted: 01 Jul 2014 19:38
by Papoulka
Thanks for the info about where the file type subset is defined.

However, my original point still stands: If I start up Find Files, enter *.* and choose "All types", I want and expect to be searching all files, regardless of their extension.

If I want to limit the search to certain extensions there are several ways to do that. I don't want it to be invisibly done for me. Currently, it appears that XY is ignoring my request for "All Types" and instead acting as if I had specified "Text files", which I specifically did not.

Am I missing something? This seems like clearly wrong behavior.

Re: Find Files scope is confusing re Text vs All Types

Posted: 02 Jul 2014 07:56
by bdeshi
Maybe you have some other search filters activated. (other than just Name&Location)
FindFilters.png
For example, if "Contents" is enabled and "text and binary" is selected there, then you can face the situation posted above.

Re: Find Files scope is confusing re Text vs All Types

Posted: 02 Jul 2014 16:48
by Papoulka
Thanks for trying to help. I see now that I wasn't clear in my original post! Having 'Contents' selected *is* the case I'm trying to address. So to restate the case:

I want to find all occurrences of the word "overflow" in a folder full of files. These all happen to be text files, but many have odd extensions such as "records.log OLD". So I start up Find Files. In Contents I enter "overflow" and leave the rest at defaults. In Name & Location I enter *.* and take the default "All types". With these settings I want and expect to be searching all the files, regardless of their extension.

Currently, that's not what happens. Evidently, if in Contents I leave the default Type as "Text", then XY will (over in Name & Location) ignore my request for "All types". It will only search files it thinks might have plain text. In other words, even with "All types" selected, XY will act as if I had chosen "Text files" - a different choice altogether and specifically not what I wanted.

To put it another way, it seems that choices in the "Contents" pane are invisibly overriding choices in "Name & Location".

Yes, I can get around this by specifying "Text and Binary" under Contents - but I was only searching for text, had no interest in binary, and had no idea that the windows interacted.

So - I think XY should not perform this override. If I specify "All types", search all types.


EDIT: I see that another thread got started by this; evidently new in 14.10. http://www.xyplorer.com/xyfc/viewtopic. ... 06#p107100

Re: Find Files scope is confusing re Text vs All Types

Posted: 02 Jul 2014 17:05
by bdeshi
XY is performing fine. You have two filters: first "All Types", then in Contents just "Text". Only the exts common to both will be found. The common item here is text extensions.
It's true if you set even more filters.

Re: Find Files scope is confusing re Text vs All Types

Posted: 02 Jul 2014 19:57
by Papoulka
.
Thanks; I understand now and I'll try to remember how it works. It can be confusing, but I have no suggestions now on what to do differently.

Re: Find Files scope is confusing re Text vs All Types

Posted: 03 Jul 2014 06:57
by bdeshi
just choose "text and binary" in Contents to make sure all extensions are searched for content.