Page 1 of 1
Search with and without dash
Posted: Mon Sep 04, 2023 9:16 am
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!
Re: Search with and without dash
Posted: Mon Sep 04, 2023 9:31 am
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.
Re: Search with and without dash
Posted: Mon Sep 04, 2023 11:15 am
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..?
Re: Search with and without dash
Posted: Mon Sep 04, 2023 2:47 pm
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).
Re: Search with and without dash
Posted: Thu Sep 07, 2023 6:35 am
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
Re: Search with and without dash
Posted: Tue Sep 19, 2023 1:45 pm
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?
Re: Search with and without dash
Posted: Wed Sep 20, 2023 1:02 am
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
Re: Search with and without dash
Posted: Fri Oct 06, 2023 3:27 am
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.