ext:xls should also list xlsx files, right?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
javanius
Posts: 18
Joined: Sun Mar 20, 2022 11:45 pm

ext:xls should also list xlsx files, right?

Post by javanius »

Hi,
When I type ext:xls, shouldn't the files with xlsx extension also be listed?
Because the xlsx extension has the word xls in it.
void
Developer
Posts: 16897
Joined: Fri Oct 16, 2009 11:31 pm

Re: ext:xls should also list xlsx files, right?

Post by void »

Everything matches the whole extension with ext:

Please separate multiple extensions with a semicolon (;)

For example:

ext:xls;xlsx



Please try extension: for partial searches:

extension:xls

-or-

.xls
javanius
Posts: 18
Joined: Sun Mar 20, 2022 11:45 pm

Re: ext:xls should also list xlsx files, right?

Post by javanius »

Thanks void,
The .xls option is also nice, but extension: met my needs directly.
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: ext:xls should also list xlsx files, right?

Post by Stamimail »

Consider to replace:
ext: for partial searches
and
extension: for "matches the whole extension".

I too expected (intuitively) that ext: will make partial searches of extensions,
and to use ext:"xls" for escaping xlsx extension.
Please separate multiple extensions with a semicolon (;)
I found that "extension:" doesn't support it (;) yet.
void
Developer
Posts: 16897
Joined: Fri Oct 16, 2009 11:31 pm

Re: ext:xls should also list xlsx files, right?

Post by void »

ext: is designed to match the whole extension.

Users will not want ext:c to match cpp files.

I will consider swapping ext: and extension:


I found that "extension:" doesn't support it (;) yet.
Most search functions that take a single string parameter do not support ; lists.

I will consider accepting semicolon (;) lists for these types of search functions, where a ; in the property text is uncommon.
(users could always escape a literal ; with ";")

Thanks for the suggestions.

For now, please consider subexpressions:
extension:<jpg|png>
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: ext:xls should also list xlsx files, right?

Post by Stamimail »

void wrote: Tue Nov 29, 2022 2:35 amUsers will not want ext:c to match cpp files.
Why do you think so.
ext: can/should behave like the other "columnName:" search functions.
This reminds me that there is a column called "Extension", so that "extension:" should behave like a "columnName:" search function.

Maybe you can suggest a more intuitive syntax than wfn: to make ext:c match only c files. I suggested ext:"c", but maybe you can suggest something better.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: ext:xls should also list xlsx files, right?

Post by raccoon »

Bro, there is nothing wrong with how ext: works. It is also a core component of how all other Everything features work, from Filters to Index Exclusions. ext: needs to be wholeword and not a partial substring match.

You have other options at your disposal, but most of your posts read as blatant and patent bellyaching for the past week. I do not understand why. This is a technical forum and the users of Everything are technically inclined, and where you find inconsistency you will also find necessity, context and obvious patterns of common use. Why are you fighting?

If you want ext: to behave like extension: then type the following macro definition command into your search bar and hit enter. But if your intent is to inflict this change upon me and everyone else... No. Just no.

/define ext=extension:
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: ext:xls should also list xlsx files, right?

Post by Stamimail »

Take it easy. I'm just saying what I think is the right thing to do, based on what I see at that moment. This could be an initial view, and I could very well be wrong. No need to be angry about it.

/define ext=extension:
How can I view and edit all these macros afterwards?
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: ext:xls should also list xlsx files, right?

Post by raccoon »

Stamimail wrote: Tue Nov 29, 2022 9:10 pmHow can I view and edit all these macros afterwards?
The searchbar command /define will briefly show the names of all defined macros in the statusbar.

The searchbar command about:ini will open an Explorer window to your Everything settings files, including Macros csv.

A search for macros csv will show your macros file(s) which can be previewed with Alt+P. A Macros GUI is on the to-do list.

The searchbar command /undef macroname will remove previously defined macro.
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: ext:xls should also list xlsx files, right?

Post by Stamimail »

Thank You :thumbsup:
void
Developer
Posts: 16897
Joined: Fri Oct 16, 2009 11:31 pm

Re: ext:xls should also list xlsx files, right?

Post by void »

Everything 1.5.0.1331a adds semicolon (;) delimited list syntax support to all string search functions.

For example:

extension:jpg;png
name:notepad.exe;explorer.exe
artist:jane;john



Use double quotes to escape a literal ;

For example:

extension:";"
name:"file;name;with;semicolons.txt"
tuska
Posts: 1062
Joined: Thu Jul 13, 2017 9:14 am

Re: ext:xls should also list xlsx files, right?

Post by tuska »

Thank you for this implementation! :)

However ...

Code: Select all

extension:jpg;png	does not work - please check
ext:jpg;png		works

ext:";"			) different search result -
extension:";"		) please check
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: ext:xls should also list xlsx files, right?

Post by raccoon »

void wrote: Thu Dec 08, 2022 5:50 am Use double quotes to escape a literal ;
For example:
extension:";"
name:"file;name;with;semicolons.txt"
@void, does this affect the following example as given on this post...

path:"C:\Path1\;C:\Path Two\;D:\Media\" .csv
void
Developer
Posts: 16897
Joined: Fri Oct 16, 2009 11:31 pm

Re: ext:xls should also list xlsx files, right?

Post by void »

Thank you for the issue report tuska,
extension:jpg;png does not work - please check
Maybe you have a macro that is overriding this search function?

Does the following search show the correct results:
::extension:jpg;png

::extension: will bypass any macros.



Could you please send debug logs when performing an extension: search:
  • In Everything, please clear your search.
  • From the Tools menu, under the Debug submenu, click Start Debug Logging.
  • Copy and paste the following into your search box:
    extension:jpg;png
  • From the Tools menu, under the Debug submenu, click Stop Debug Logging.
    ---this will open your %TEMP%\Everything Debug Log.txt in Notepad---
  • Could you please send this file to support@voidtools.com

@void, does this affect the following example as given on this post...
path:"C:\Path1\;C:\Path Two\;D:\Media\" .csv
No, there's a few functions that take lists as parameters.
These functions will handle ; on their own.

Functions that accept lists parameters:
childfilelist:"file1.txt";"file2.txt";"file3.txt";...
filelist:"file1.txt";"file2.txt";"file3.txt";...
fullpathlist:"file1.txt";"file2.txt";"file3.txt";...
ext:jpg;png

You can use ; or | with these functions.
These functions will eat the |
| doesn't need to be escaped with double quotes.
; or | is treated as OR.
These functions match the whole filename / extension.



I have deliberately made content search functions not support lists.
You will need to use subexpressions for content search functions, eg: content:<abc|123>



path: is a search modifier and is not needed in that search.

For example:
path:"c:\windows;c:\program files"
is the same as
"c:\windows;c:\program files"

Everything is smart enough to know ; followed by a absolute path should be treated as a separate path.

So in short, path:"C:\Path1\;C:\Path Two\;D:\Media\" will behave the same.
tuska
Posts: 1062
Joined: Thu Jul 13, 2017 9:14 am

Re: ext:xls should also list xlsx files, right?

Post by tuska »

void wrote: Thu Dec 08, 2022 10:02 pm Thank you for the issue report tuska,
extension:jpg;png does not work - please check
Maybe you have a macro that is overriding this search function?
Yes, sorry! :(
I had a filter macro: extension.
I deleted this filter macro.

New search results:

Code: Select all

extension:jpg;png
Result:   apng;jpg;png;png_e607ca23

wfn:extension:jpg;png
Result:	  jpg;png
void wrote: Thu Dec 08, 2022 10:02 pm Does the following search show the correct results:
::extension:jpg;png
Here are the results:

Code: Select all

extension:jpg;png
Result:   apng;jpg;png;png_e607ca23

wfn:extension:jpg;png
Result:	  jpg;png
Please let me know if you need anything else.
Last edited by tuska on Fri Dec 09, 2022 12:11 am, edited 1 time in total.
void
Developer
Posts: 16897
Joined: Fri Oct 16, 2009 11:31 pm

Re: ext:xls should also list xlsx files, right?

Post by void »

These appear to be the correct results.
Please let me know if anything is unexpected.

Use the exact: search modifier to match the whole extension.
tuska
Posts: 1062
Joined: Thu Jul 13, 2017 9:14 am

Re: ext:xls should also list xlsx files, right?

Post by tuska »

void wrote: Fri Dec 09, 2022 12:11 am These appear to be the correct results.
Please let me know if anything is unexpected.

Use the exact: search modifier to match the whole extension.
Thanks for checking! :)
Post Reply