Support "size:1 234 567 890" search

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
TeToTa
Posts: 10
Joined: Sun May 14, 2023 11:14 pm

Support "size:1 234 567 890" search

Post by TeToTa »

Add the support for the size search if the size input string includes numbers separated by spaces.
It's very inconvenient to delete spaces when you copy and paste the file size from Window' Explorer file's properties.

"size:1 234 567 890" == "size:1234567890"
void
Developer
Posts: 15352
Joined: Fri Oct 16, 2009 11:31 pm

Re: Support "size:1 234 567 890" search

Post by void »

Space is the AND operator in Everything.

I'll look into supporting size:"1 234 567 890"

However, you'll need to use double quotes (") to escape the spaces.

Thank you for the suggestion.
therube
Posts: 4610
Joined: Thu Sep 03, 2009 6:48 pm

Re: Support "size:1 234 567 890" search

Post by therube »

1 234 567 890
Is there a particular place that you're getting a format like that from?
As in, maybe you can filter it to remove the spaces before throwing it into Everything?

> Where in Windows Explorer?
Oh.
Odd still. When I copy, if I simply double click, I'll get the opening paren, so "(10,458,559".
If I actually highlight, I get, "10,458,559"

Commas should not be an issue.
But how are spaces coming about?


(something like s/ //g)
therube
Posts: 4610
Joined: Thu Sep 03, 2009 6:48 pm

Re: Support "size:1 234 567 890" search

Post by therube »

(BTW:

Everything 1.5alpha allows you to search for a file name ;-), & also copy its' size - bypassing Windows Explore ;-).
[Right-click the file size as shown in Everything, Copy Size])
void
Developer
Posts: 15352
Joined: Fri Oct 16, 2009 11:31 pm

Re: Support "size:1 234 567 890" search

Post by void »

It's a locale setting.

Some locales use commas for grouping.
Some locales use spaces for grouping.



It's hard to support spaces, what if I wanted to find a file with 1 byte with the name containing 234?

size:1 234

(i realize this would be uncommon, so maybe eating the space is acceptable for this locale. Everything could use double spaces to break the parsing)
void
Developer
Posts: 15352
Joined: Fri Oct 16, 2009 11:31 pm

Re: Support "size:1 234 567 890" search

Post by void »

Consider changing the digit grouping symbol:
  • From the Start menu, search for:
    region
  • Click on Region settings.
  • On the right, click on Additional date, time & regional settings.
  • Click on Change date, time, or number formats.
  • Click Additional Settings....
  • Set a new digit grouping symbol, for example: '
  • Click OK.
therube
Posts: 4610
Joined: Thu Sep 03, 2009 6:48 pm

Re: Support "size:1 234 567 890" search

Post by therube »

It's a locale setting.
Never knew that.
I knew dots & commas or commas & dots, but never would I have imagined spaces.
Decimal separator


(Seems every time now I go to wikipedia, its layout gets worse & worse.
But, I guess that's par for the course, these days.)
therube
Posts: 4610
Joined: Thu Sep 03, 2009 6:48 pm

Re: Support "size:1 234 567 890" search

Post by therube »

Everything 1.5alpha allows you to ... copy its' size
[Right-click the file size as shown in Everything, Copy Size])
And what gets "copied" (parsed) in the space scenario?
"1 234 567 890" or "1234567890" ?
void
Developer
Posts: 15352
Joined: Fri Oct 16, 2009 11:31 pm

Re: Support "size:1 234 567 890" search

Post by void »

The size in bytes without digit grouping is copied.

For example:
1234567890
void
Developer
Posts: 15352
Joined: Fri Oct 16, 2009 11:31 pm

Re: Support "size:1 234 567 890" search

Post by void »

Everything 1.5.0.1347a adds support for parsing sizes with space when using double quotes.

For example:
size:"1 234 567"
TeToTa
Posts: 10
Joined: Sun May 14, 2023 11:14 pm

Re: Support "size:1 234 567 890" search

Post by TeToTa »

I awaited this thing in 1.5.0 release, but it seems 1.5 is in an infinity dev mode.

So, I tested this thing in the alpha version now. There is a bug.

It works for usual spaces (for example, if I type them with a keyboard), however, when I paste the formatted size from the Explorer, Everything does not work correctly, since the spacers are characters with char code 160 (non-breaking spaces).
void
Developer
Posts: 15352
Joined: Fri Oct 16, 2009 11:31 pm

Re: Support "size:1 234 567 890" search

Post by void »

Sorry development is taking so long.

Everything 1.5.0.1358a adds support for non-breaking spaces as a digit separator.
However, you will still need to double quote pasted text as Everything treats a non-breaking space as the AND operator.

For example:
size:"1 234 567"

To remove non-breaking spaces when pasting:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    paste
  • Select search_edit_paste_format.
  • Set the value to:

    Code: Select all

    [regexreplace:$newtext:,"\xa0",""]
    
  • Click OK.
Post Reply