Is it possible to ignore certain symbols in search in 1.5?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
JTCGiants56
Posts: 192
Joined: Fri Nov 28, 2014 3:58 pm

Is it possible to ignore certain symbols in search in 1.5?

Post by JTCGiants56 »

For example, if I paste something with an "&" or a "/", can I have the search automatically ignore them?
void
Developer
Posts: 16669
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is it possible to ignore certain symbols in search in 1.5?

Post by void »

To paste without punctuation:

Press Ctrl + Shift + V in the search box.
-or-
Right click the Search box and click Paste Without Punctuation.



To ignore punctuation in your filenames and search:
  • 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.
    ---
  • In Everything 1.5, from the Search menu, Check Ignore Punctuation.
    (when checked, Everything will ignore punctuation in the filename and search)


To remove & and / when pasting text:
  • 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:,"[&/]","">
    
  • Click OK.


search_edit_paste_format
<regexreplace:...>
JTCGiants56
Posts: 192
Joined: Fri Nov 28, 2014 3:58 pm

Re: Is it possible to ignore certain symbols in search in 1.5?

Post by JTCGiants56 »

void wrote: Wed Dec 20, 2023 3:08 am To paste without punctuation:

Press Ctrl + Shift + V in the search box.
-or-
Right click the Search box and click Paste Without Punctuation.



To ignore punctuation in your filenames and search:
  • 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.
    ---
  • In Everything 1.5, from the Search menu, Check Ignore Punctuation.
    (when checked, Everything will ignore punctuation in the filename and search)


To remove & and / when pasting text:
  • 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:,"[&/]","">
    
  • Click OK.


search_edit_paste_format
<regexreplace:...>
Perfect thanks!
JTCGiants56
Posts: 192
Joined: Fri Nov 28, 2014 3:58 pm

Re: Is it possible to ignore certain symbols in search in 1.5?

Post by JTCGiants56 »

Hello void, would it be possible to ignore the "!" exclamation as well? When I add this to the regex it no longer lets me paste anything because it is the NOT character. Is it possible to still keep this as the NOT character, but ignore it within the names of files when doing a search?
void
Developer
Posts: 16669
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is it possible to ignore certain symbols in search in 1.5?

Post by void »

Please try the following search_edit_paste_format:

<regexreplace:<regexreplace:$newtext:,"[&/]","">,"(.)!","$1">
JTCGiants56
Posts: 192
Joined: Fri Nov 28, 2014 3:58 pm

Re: Is it possible to ignore certain symbols in search in 1.5?

Post by JTCGiants56 »

void wrote: Wed Dec 20, 2023 3:52 am Please try the following search_edit_paste_format:

<regexreplace:<regexreplace:$newtext:,"[&/]","">,"(.)!","$1">
Great thanks
JTCGiants56
Posts: 192
Joined: Fri Nov 28, 2014 3:58 pm

Re: Is it possible to ignore certain symbols in search in 1.5?

Post by JTCGiants56 »

void wrote: Wed Dec 20, 2023 3:52 am Please try the following search_edit_paste_format:

<regexreplace:<regexreplace:$newtext:,"[&/]","">,"(.)!","$1">
Apologies void, one more issue.

If I add the quote symbol (") to the ignore group, I start running into issues.
Here is the line -

Code: Select all

<regexreplace:<regexreplace:$newtext:,"[&/#-%"]","">,"(.)!","$1">
void
Developer
Posts: 16669
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is it possible to ignore certain symbols in search in 1.5?

Post by void »

Easiest way to escape the double quote:

<regexreplace:<regexreplace:$newtext:,"[&/#-%\x22]","">,"(.)!","$1">
JTCGiants56
Posts: 192
Joined: Fri Nov 28, 2014 3:58 pm

Re: Is it possible to ignore certain symbols in search in 1.5?

Post by JTCGiants56 »

void wrote: Wed Dec 20, 2023 6:03 am Easiest way to escape the double quote:

<regexreplace:<regexreplace:$newtext:,"[&/#-%\x22]","">,"(.)!","$1">
Awesome, thanks again for your quick assistance.
Post Reply