General escape operator

Discussion related to "Everything" 1.5.
Post Reply
w64bit
Posts: 338
Joined: Wed Jan 09, 2013 9:06 am

General escape operator

Post by w64bit »

I tried to search for this text in a TXT file:

Code: Select all

"Verdana" font="0"
If i do:
ext:txt content:""Verdana" font="0""
it does not find anything.

If I use &quot: it's working.

Is there any general way to search this text without using &quot: ?
Like a general escape operator.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: General escape operator

Post by void »

Please try:

Code: Select all

ext:txt content*:"Verdana" font="0"
content*: will eat the remaining search text and treat it as literal.



*:
w64bit
Posts: 338
Joined: Wed Jan 09, 2013 9:06 am

Re: General escape operator

Post by w64bit »

Thank you.
Can I rename content*: to cc: ?
I tried with bookmarks with no result.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: General escape operator

Post by void »

Can't be done with Filters or Bookmarks.

However, it can be done with macros.

In Everything, type in the follow search and press ENTER:

Code: Select all

/define cc=content*:
If successful, cc=content*: is shown in the status bar for a few seconds.

/define
w64bit
Posts: 338
Joined: Wed Jan 09, 2013 9:06 am

Re: General escape operator

Post by w64bit »

tried

Code: Select all

/define cc=content*:
/define cc=content*
/define cc=content
using cc: or cc*: gives no result
therube
Posts: 5723
Joined: Thu Sep 03, 2009 6:48 pm

Re: General escape operator

Post by therube »

Your search would be something like:

c:/out/ ext:txt cc:MPEG Audio


So you include
cc:
in your search, and, you include the term you want to search for (MPEG AUDIO, in this case).


I believe the search would for the term "MPEG AUDIO" (mpeg<sp>audio),
rather then simply finding those two words somewhere within the file?

Likewise, "Verdana" font="0", would look for that, including the quote marks & spacing, as written - literally.
So all these would be different, & you would need to be specific as to your search,
cc:"Verdana" font="0"
:

"Verdana" font="0"
Verdana font="0"
Verdana font=0
w64bit
Posts: 338
Joined: Wed Jan 09, 2013 9:06 am

Re: General escape operator

Post by w64bit »

I created file.txt in folder D:\1
file contains "Verdana" font="0" (I want to find all text, including 4 quotes)

/define cc=content*
ext:txt D:\1 cc:"Verdana" font="0"
does not found anything

ext:txt D:\1 content*:"Verdana" font="0"
it's working
therube
Posts: 5723
Joined: Thu Sep 03, 2009 6:48 pm

Re: General escape operator

Post by therube »

/define cc=content*


should be:
/define cc=content*:



And then your search is,
cc:search for this
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: General escape operator

Post by void »

What is your active filter? maybe that is rewriting something.

What's shown in the debug console when you search for:
ext:txt D:\1 cc:"Verdana" font="0"
:
  • In Everything, clear your search.
  • From the Tools menu, under the Debug submenu, click Start Debug Logging...
  • Search for:
    ext:txt D:\1 cc:"Verdana" font="0"
  • From the Tools menu, under the Debug submenu, click Stop Debug Logging...
    ---This will open your %TEMP%\Everything Debug Log.txt in notepad.
  • What is shown in this file at the bottom under
    search 'ext:txt D:\1 cc:"Verdana" font="0"' filter '' sort 5 ascending 0?
w64bit
Posts: 338
Joined: Wed Jan 09, 2013 9:06 am

Re: General escape operator

Post by w64bit »

I deleted all settings' files and I recreated them.
All OK now!
Thank you void.
Thank you therube.
Post Reply