Search with and without dash

General discussion related to "Everything".
Post Reply
asdlh
Posts: 2
Joined: Mon Sep 04, 2023 9:09 am

Search with and without dash

Post by asdlh »

Hello!

Case: files named "file123-45-678name.pdf" and "file12345678name.pdf"

Is there a way to search for "123-45-678" or "12345678" and have both files in search result?

Thanks a lot for help!
void
Developer
Posts: 16770
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search with and without dash

Post by void »

Search for:

123 45 678



Everything 1.5 will have a option to ignore punctuation in filenames.

If you would like to try this now, please check out the Everything 1.5 alpha.

To ignore punctuation in filenames: Search for:

12345678

Use Ctrl + Shift + V to paste without punctuation.
asdlh
Posts: 2
Joined: Mon Sep 04, 2023 9:09 am

Re: Search with and without dash

Post by asdlh »

Thanks. Ignore punctuation really works but only in case of seaching "12345678".
If I search "123-45-678", one without dashes is not shown in search results. Is there a way..?
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: Search with and without dash

Post by therube »

If you specifically input the dashes (or copy/paste - without doing as mentioned above), then they are treated literally (regardless of PUNC settings).
void
Developer
Posts: 16770
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search with and without dash

Post by void »

Everything 1.5.0.1356a adds an advanced setting to ignore punctuation in the search box when Ignore Punctuation is enabled under the Search menu.

To ignore punctuation in the search box when Ignore Punctuation is enabled under the Search menu:
  • 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:
    punc
  • Select ignore_punctuation_type.
  • Set the value to: Filename and search
  • Click OK.
ignore_punctuation_type



Everything will continue to treat : / \ as path separators.
: / \ and are ignored when used with a search function that supports Ignore Punctuation.

For example:
name:a:bc\123
is the same as:
name:abc123
burgundy
Posts: 273
Joined: Fri Oct 16, 2009 9:50 am

Re: Search with and without dash

Post by burgundy »

I downloaded Everything 1.5.0.1356a and made the change to "ignore_punctuation_type".

However when I search using:
april-2023
it does not find files with the following in their name (which I want to find):
april 2023
.
How do I do this?
void
Developer
Posts: 16770
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search with and without dash

Post by void »

Can't be done easily yet.

This will work as expected in the next alpha update.

convert punctuation to spaces when using ignore_punctuation_type
void
Developer
Posts: 16770
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search with and without dash

Post by void »

Everything 1.5.0.1357a will now ignore all punctuation in the search box when ignore_punctuation_type is set to filename and search.
Post Reply