Page 1 of 1

Search with Punctuation

Posted: Mon Aug 07, 2023 11:02 pm
by Nancy_Widmore
Hello , is there is away to search around Punctuation

for example

i have 3 dupe folders or files for EXAMPLE iF I search for

AAA_BBB_ZZZ

RESULT ONLY SHOWS

AAA_BBB_ZZZ

However there is also file named

AAA BBB ZZZ

and

AAA.BBB.ZZZ

and

AAA-BBB-ZZZ

i want to be able to search for same file names and the ignore all Punctuation or search around it and everything tool will make it looks like space

because when i search for names with space all result does show up

please help , thanks in advance.

Re: Search with Punctuation

Posted: Tue Aug 08, 2023 12:17 am
by void
Search for:

AAA BBB ZZZ

Instead of:

AAA_BBB_ZZZ



If you are pasting this text, please try Everything 1.5 and use Ctrl + Shift + V to paste without punctuation.

Re: Search with Punctuation

Posted: Tue Aug 08, 2023 12:27 am
by Nancy_Widmore
Yes i use copy and paste sometimes

but how about the advanced search with text file ?

is there is an option to be add to the search tab under ignore Punctuation and be called paste avoid Punctuation or something a like

because ignore Punctuation does not work for paste ?

thanks.

Re: Search with Punctuation

Posted: Tue Aug 08, 2023 12:36 am
by void
Please consider the following filter:
  • In Everything 1.5, from the Search menu, click Add to filters....
  • Change the Name to:
    Remove Punctuation
  • Change the Search to:
    #[regex-replace:#[:search:#]:,"[`~!@#$%^&*()\-=_+{}|\[\]\\;':,./<>?\x22\x00-\x1f]"," "#]:
  • Change the Macro to:
    removepunc<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.

Please note: search operators and path separators will be converted to spaces when this filter is active.



To always remove punctuation when pasting text (not recommended):
  • 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:
    <regex-replace:<regex-replace:$newtext:,"[`~!@#$%^&*()\-=_+{}|\[\]\\;':,./<>?\x22\x00-\x1f]"," ">," +"," ">
  • Click OK.


I will consider a ignore punctuation in search option.

Thank you for the suggestion.

Re: Search with Punctuation

Posted: Mon Aug 14, 2023 1:01 pm
by A7A
i dont want to open a new post so here is 2 question

If pasting this text, please try Everything 1.5 and use Ctrl + Shift + V to paste without punctuation. not sure why this isn't working

this is not working for me using the latest alpha version

i tried ignore punctuation checked on and off

also when i try the add filter
and paste a text

regex-replace:JPEG1 2023 ," +"," "]

These are shown inside the search bar however there is result but not showing using this method

please help

Re: Search with Punctuation

Posted: Tue Aug 15, 2023 12:18 am
by void
Thank you for your post A7A,

Ctrl + Shift + V will only work when the search box has focus.



I missed the starting < in the format, please try:

<regex-replace:<regex-replace:$newtext:,"[`~!@#$%^&*()\-=_+{}|\[\]\\;':,./<>?\x22\x00-\x1f]"," ">," +"," ">

Re: Search with Punctuation

Posted: Tue Aug 15, 2023 3:42 am
by A7A
void wrote: Tue Aug 15, 2023 12:18 am
Ctrl + Shift + V will only work when the search box has focus.
thank you for the time and coding , not sure how to make the search box has focus ?

Re: Search with Punctuation

Posted: Tue Aug 15, 2023 3:44 am
by void
To focus the search box, click on the search box.

When the search box has focus the flashing caret should appear.

Re: Search with Punctuation

Posted: Sat Aug 19, 2023 3:50 am
by A7A
void wrote: Tue Aug 15, 2023 3:44 am To focus the search box, click on the search box.

When the search box has focus the flashing caret should appear.
1- I also have problem with the control+ shift + V

it dont work even with focus search box

using latest version of alpha version
Everything-1.5.0.1355a.x64

sometimes it works but sometimes it shows . and - and it's not supposed to do that i tried ignore Punctuation on and off
and still showing Punctuation.

--------------

2 - I did used the

<regex-replace:<regex-replace:$newtext:,"[`~!@#$%^&*()\-=_+{}|\[\]\\;':,./<>?\x22\x00-\x1f]"," ">," +"," ">

and still not working , filter is active , Punctuation on and off , still showing

if im searching for

25.pal.x64_portable

still paste with dots and _

im lost not sure what to do anymore

Re: Search with Punctuation

Posted: Sat Aug 19, 2023 8:39 am
by NotNull
Please use more interpunction (oh, the irony ;-) ) and capitalization in your message.
It is hard to follow in its current form ...

Re: Search with Punctuation

Posted: Sat Aug 19, 2023 1:14 pm
by A7A
NotNull wrote: Sat Aug 19, 2023 8:39 am Please use more interpunction (oh, the irony ;-) ) and capitalization in your message.
It is hard to follow in its current form ...
Sorry i didn't learn this at the school , i will try but right now i dont understand your answer , what to do if the paste control shift V not working

Re: Search with Punctuation

Posted: Sat Aug 19, 2023 2:26 pm
by NotNull
  • In Everything 1.5, enable Ignore Punctuation (to be found under the Search menu entry )
  • Copy the following text to the clipboard:

    Code: Select all

    notepad......exe
  • Back in Everything, click in the search bar to make it active (the cursor will blink)
  • Press keyboard shortcut 'CTRL + SHIFT + V' to paste the text that is currently on the clipboard ( "notepad......exe" ), but without any punctuation characters.
    The search bar should now show notepad exe and should find notepad.exe

Re: Search with Punctuation

Posted: Sat Aug 19, 2023 5:18 pm
by A7A
NotNull wrote: Sat Aug 19, 2023 2:26 pm
  • In Everything 1.5, enable Ignore Punctuation (to be found under the Search menu entry )
  • Copy the following text to the clipboard:

    Code: Select all

    notepad......exe
  • Back in Everything, click in the search bar to make it active (the cursor will blink)
  • Press keyboard shortcut 'CTRL + SHIFT + V' to paste the text that is currently on the clipboard ( "notepad......exe" ), but without any punctuation characters.
    The search bar should now show notepad exe and should find notepad.exe

I did that tried many times , sometimes it works sometimes it dont , if i use everything app alot it dont work or when i open multi everything

something i just dont understand going on wrong

Re: Search with Punctuation

Posted: Sat Aug 19, 2023 6:16 pm
by NotNull
A7A wrote: Sat Aug 19, 2023 5:18 pm sometimes it works sometimes it dont
Please describe "it doesn't work": what was on the clipboard, what is shown in the search bar?, what is shown in the result list? Do you get an error message?

Make sure only the Everything entry is enabled under the Search menu (i.e. no Match Path, etc. )

Re: Search with Punctuation

Posted: Sat Aug 19, 2023 10:38 pm
by A7A
NotNull wrote: Sat Aug 19, 2023 6:16 pm
A7A wrote: Sat Aug 19, 2023 5:18 pm sometimes it works sometimes it dont
Please describe "it doesn't work": what was on the clipboard, what is shown in the search bar?, what is shown in the result list? Do you get an error message?

Make sure only the Everything entry is enabled under the Search menu (i.e. no Match Path, etc. )
I'm explaining now again , i want everything to show result for all folders and files under

25 pal x64 portable
the name i have in one folder is

25.pal.x64_portable


when i click control shift V it will paste it with dots and _ . sometimes it does paste without it but i dont change any setting that's why im going crazy over it

i even removed the app installed older version still not working and if i searched for

25.pal.x64_portable


it will show me exact thing not the files or folder that have no dots or _

is it clear now ?

Re: Search with Punctuation

Posted: Sun Aug 20, 2023 2:22 am
by void
Where are you copying the "25.pal.x64_portable" text from?

Ctrl+Shift+V will only work if "25.pal.x64_portable" is on the clipboard as "text".
Ctrl+Shift+V will not work if you copy the file (the actual file -not the filename text) -nothing will be pasted in this case, so I'm not sure this is happening, as you say "25.pal.x64_portable" is being pasted



Are you pasting multiple lines of text?
If so, Everything will split each line into an OR operation.
For example:
<line one>|<line two>|<line three>|<etc>




I would need to see debug logs to work out what is going on..
  • In Everything, from the Tools menu, under the Debug submenu, check Verbose.
  • In Everything, from the Tools menu, under the Debug submenu, check Start Debug Logging.
    ---
    Press Ctrl + Shift + V in the Everything search box.
    keep trying until you see text pasted with punctuation.
    ---
  • In Everything, from the Tools menu, under the Debug submenu, click Stop Debug Logging.
    The Everything Debug Log will open in Notepad.
  • Please save this file to the Desktop and send to support@voidtools.com
Privacy

Re: Search with Punctuation

Posted: Sun Aug 20, 2023 5:34 am
by A7A
void wrote: Sun Aug 20, 2023 2:22 am Where are you copying the "25.pal.x64_portable" text from?

Ctrl+Shift+V will only work if "25.pal.x64_portable" is on the clipboard as "text".
Ctrl+Shift+V will not work if you copy the file (the actual file -not the filename text) -nothing will be pasted in this case, so I'm not sure this is happening, as you say "25.pal.x64_portable" is being pasted



Are you pasting multiple lines of text?
If so, Everything will split each line into an OR operation.
For example:
<line one>|<line two>|<line three>|<etc>




I would need to see debug logs to work out what is going on..
  • In Everything, from the Tools menu, under the Debug submenu, check Verbose.
  • In Everything, from the Tools menu, under the Debug submenu, check Start Debug Logging.
    ---
    Press Ctrl + Shift + V in the Everything search box.
    keep trying until you see text pasted with punctuation.
    ---
  • In Everything, from the Tools menu, under the Debug submenu, click Stop Debug Logging.
    The Everything Debug Log will open in Notepad.
  • Please save this file to the Desktop and send to support@voidtools.com
Privacy

I copy the names from Text files , from folders name using f2 or copyfilename software or i use everything to copy names

i also wish there is away to copy the parent dir of a file or of a folder like

MAIN\FOLDER\FILE.MP3 wish there is options just to copy the parent dir which is FOLDER

without edit the path after copying

Re: Search with Punctuation

Posted: Sun Aug 20, 2023 5:38 am
by void
Thank you for the logs.

The issue has something to do with having a RTL and LTR keyboard installed and Ctrl + Shift changing the input from RTL/LTR.

Are you using the left or right Ctrl/Shift?



Please try changing the keyboard shortcut:
  • In Everything, from the Tools menu, click Options.
  • Click the Keyboard tab on the left.
  • To the right of Show commands containing, search for:
    paste
  • Select Search Edit | Paste Without Punctuation.
  • Click Edit....
  • Press a new keyboard shortcut (for example: Ctrl + Alt + V) and click OK.
  • Click OK.
Does the issue persist with this keyboard shortcut?



To prevent Ctrl + Shift from changing your input and layout:
  • 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:
    control
  • Select control_shift_action.
  • Set the value to: None
  • Click OK.

Re: Search with Punctuation

Posted: Sun Aug 20, 2023 1:18 pm
by A7A
Hello , yes im using keyboard right to left and left to right to switch between 5 keyboard languages , i have to use them so now i set it up to

control alt v and it works great , thank you

Re: Search with Punctuation

Posted: Thu Aug 24, 2023 10:35 pm
by Nancy_Widmore
I think this would be better to have an option just to ignore all Punctuation when pasting no matter using CTRL SHIFT V Or just CTRL + V

Re: Search with Punctuation

Posted: Thu Aug 24, 2023 11:34 pm
by void
I will add an option to remove punctuation when pasting text and Search -> Ignore Punctuation is enabled.

Thank you for the suggestions.

Re: Search with Punctuation

Posted: Thu Sep 07, 2023 6:30 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



:a: == :a: awesome...

Re: Search with Punctuation

Posted: Mon Sep 11, 2023 7:35 pm
by Raindrops
Will Everything join the strings on both sides of the punctuation, and form a new string?
In that case, this combined string won't be found, which means a false negative.

Instead, the punctuation should be replaced with a space.
That way, even if the actual file has both tokens on either side of the punctuation mark, it will be found.

That is how CTRL+SHFT+V works.

Re: Search with Punctuation

Posted: Mon Sep 11, 2023 7:41 pm
by Raindrops
I have selected this option. But it does not work as expected.

The word "baarish" occurs in a few file names in my collection.

I tried to search for baarish and baa rish, both times all these files were found.
But when I entered baa,rish in the search box, the search could not find these files at all.
I removed the comma and the search found all files.

Re: Search with Punctuation

Posted: Tue Sep 12, 2023 5:41 am
by void
I will look into converting punctuation to spaces.
(same as Ctrl + Shift + V)
-This might make it impossible to search for : / or \ in full paths.
Thank you for the suggestion.


But when I entered baa,rish in the search box, the search could not find these files at all.
baa,rish appears to find baarish here. (with just Ingore Punctuation checked)

Please try changing your search and applying ignore_punctuation_type.
The next alpha update will automatically refresh your search after changing this setting.
Do you have any other search options checked?

Re: Search with Punctuation

Posted: Wed Sep 20, 2023 10:53 am
by Raindrops
I had just followed the instructions and selected the "Filename and search" option for the Ignore_punctuation_type setting.
When I select the other option ("Filename only") and restart Everything, it cannot find any results for Baa,rish.

In other words, I get the same result regardless of the Ignore_punctuation_type setting.

Re: Search with Punctuation

Posted: Tue Sep 26, 2023 3:09 am
by Nancy_Widmore
I just installed the latest Alpha version and when I search for

AAA_BBB

The results will be

AAA_BBB and AAA.BBB

However there is

AAA BBB

Can you please make it possible to treat Punctuation as space when pasting or feeding the search with a text from advanced search?

Thank you.

Re: Search with Punctuation

Posted: Tue Sep 26, 2023 3:11 am
by void
Yes, the next alpha update will have an option to do this.

I'll have an update soon and will make another post here.

Thank you for the suggestion.

Re: Search with Punctuation

Posted: Fri Sep 29, 2023 5:13 am
by Raindrops
I hope the update addresses the issue I mentioned (3 posts before this one)

Re: Search with Punctuation

Posted: Fri Sep 29, 2023 5:14 am
by Raindrops
Raindrops wrote: Wed Sep 20, 2023 10:53 am I had just followed the instructions and selected the "Filename and search" option for the Ignore_punctuation_type setting.
When I select the other option ("Filename only") and restart Everything, it cannot find any results for Baa,rish.

In other words, I get the same result regardless of the Ignore_punctuation_type setting.
I hope this gets addressed in the new version!

Re: Search with Punctuation

Posted: Thu Oct 05, 2023 6:58 am
by void
Everything 1.5.0.1357a fixes an issue with search_edit_paste_format.

Setting search_edit_paste_format to:
<regex-replace:<regex-replace:$newtext:,"[`~!@#$%^&*()\-=_+{}|\[\]\\;':,./<>?\x22\x00-\x1f]"," ">," +"," ">
should now work as expected.



ignore_punctuation_type=1 will now ignore all punctuation in the search box.

Re: Search with Punctuation

Posted: Thu Oct 05, 2023 11:39 am
by Raindrops
I upgraded to the Everything 1.5.0.1357a, and my punctuation type is set to "filename and search".

And yet Everything is unable to ignore punctuation, except space.

For example, I get several results when I search for Baarish and Baa rish (Everything ignores embedded space).

But I don't get any results with Baa,rish, Baari'sh, Ba=arish, Baaris;h, etc.

Re: Search with Punctuation

Posted: Thu Oct 05, 2023 11:55 am
by void
Do you have regular expressions enabled under the Search menu?

-Please try disabling this option.



What search options are checked under the Search menu?
What is your active filter?

Re: Search with Punctuation

Posted: Thu Oct 05, 2023 12:26 pm
by Raindrops
RegRx was not enabled at all.
In fact, none of the options are selected at present!
XToQeQq0vH.png
XToQeQq0vH.png (11.15 KiB) Viewed 19932 times

Re: Search with Punctuation

Posted: Thu Oct 05, 2023 8:53 pm
by void
Ignore Punctuation must be enabled under the Search menu.

Re: Search with Punctuation

Posted: Fri Oct 06, 2023 3:23 am
by Raindrops
Yes, it works! Thanks for the clarification.

BTW I found that Everything replaces the punctuation mark with a space. (it does not join the string on both sides of that punctuation mark).
This is in fact a good thing: Everything finds item names that have both substrings anywhere in the name.

For example, in my experiment, I inserted = in the middle of the search string Baarish.
Everything not only found items that have Baarish, but also items that have both baa and rish in their name.

Re: Search with Punctuation

Posted: Wed Oct 18, 2023 2:55 pm
by donotbugme
You can use regular expressions to substitute any punctuation marks with a space or use wildcard characters to represent the punctuation marks. For instance,
Ex..

Code: Select all

AAA[_\.\s-]BBB[_\.\s-]ZZZ