How to exclude punctuation from search?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

How to exclude punctuation from search?

Post by Biff »

How to exclude punctuation from search?

E.g.: searching for 1word.2word,3word.4word-5word
shall find this
1word 2word 3word 4word 5word
void
Developer
Posts: 16750
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to exclude punctuation from search?

Post by void »

Everything treats punctuation as important.



Either:

1) avoid typing the punctuation in your search.

-or-

2) use Ctrl + Shift + V to paste text with punctuation removed.
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: How to exclude punctuation from search?

Post by Biff »

Ah, yes, certainly, definitely, OK, I understand. Thank you.

How could one enter in the search field this
1word.2word,3word.4word-5word
and let Everything search for this
1word 2word 3word 4word 5word?
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: How to exclude punctuation from search?

Post by raccoon »

Select 1word.2word,3word.4word-5word from the search bar and hit the keyboard combination CTRL-X to Cut, and then hit the keyboard combination SHIFT+CTRL+V to Paste Without Punctuation, this will spit out 1word 2word 3word 4word 5word into the search bar.

Please refer to this thread dated 1 Nov 2022.

viewtopic.php?f=4&t=12227
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: How to exclude punctuation from search?

Post by Biff »

Ah, I see, great, works.

Many thanks.
void
Developer
Posts: 16750
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to exclude punctuation from search?

Post by void »

Please try the following filter:
  • In Everything, from the Search menu, click Add to filters....
  • Change the Name to:
    Remove Punctuation
  • Change the Search to:
    #[regex-replace:#[:search:#]:,"[!#$%&'()+,\-\.;=@\[\]^_`{}~]"," "#]:
  • Change the Macro to:
    removepunctuation<search>
  • Click OK.
Filters can be activated from the Search menu, Filter bar (View -> Filters), right clicking the status bar, filter macro or filter keyboard shortcut.

When the Remove Punctuation filter is active, all basic punctuation is removed from your search.
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: How to exclude punctuation from search?

Post by Biff »

Great, many thanks for the filter. It even works with content, super.

Could one make the "Filters"
Image
scrollable / navigatable with the touchpad / mouse wheel / numeric keypad? Like it is here:
Image
void
Developer
Posts: 16750
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to exclude punctuation from search?

Post by void »

Everything uses the stock system context menus which don't support scrolling.

I have on my TODO list to add my own context menus with scrolling support.
Thank you for the suggestion.
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: How to exclude punctuation from search?

Post by Biff »

OK, thank you very much!
Post Reply