es: URL Protocol

Discussion related to "Everything" 1.5 Alpha.
Post Reply
void
Developer
Posts: 15395
Joined: Fri Oct 16, 2009 11:31 pm

es: URL Protocol

Post by void »

The es: URL Protocol allows you to open Everything and set the search from a web-browser.

For example, clicking on es:abc will open Everything and set the search to: abc



Installation
Syntax
Search
Query Strings
Select Filename
Escape Character
Advanced Setup
Examples
Excel Link



Installation

The es: URL Protocol is disabled by default.

To enable the es: URL protocol:
  • In Everything, from the Tools menu, click Options.
  • Click the General tab on the left.
  • Check es: URL protocol.
  • Click OK.


To disable the es: URL protocol:
  • In Everything, from the Tools menu, click Options.
  • Click the General tab on the left.
  • Uncheck es: URL protocol.
  • Click OK.


Syntax

es:search
es:search?query-settings
es:search?query-settings#filename-select

search sets the search box text.
query-settings enables/disables search options. (optional)
filename-select selects a file/folder by filename. (optional)

Escape special URL characters with: %



Search

The es:// or es: prefix is removed when applying your search.

The standard Everything search syntax is supported.

The search can be blank.

Escape special URL characters with: %



Query Strings

Use ? to start the query string.
Use & to separate key=value pairs.

For example:

es:mysearch?key=value&key2=value2&key3=value3&...

The following query strings are supported:
sort=<property-name>
ascending=1
case=1
diacritics=1
path=1
regex=1
wholeword=1
whole_word=1
suffix=1
prefix=1
ignorepunctuation=1
ignore_punctuation=1
ignorewhitespace=1
ignore_whitespace=1
filter=<filter-name>
view=details
view=thumbnails
view=<thumbnail-size>
thumbnailsize=<thumbnail-size>
thumbnail_size=<thumbnail-size>
newwindow=1
new_window=1



Select Filename

Use # to select a file/folder by filename.

For example, search for notepad and select C:\Windows\Notepad.exe:
es:notepad#c:\windows\notepad.exe

Escape special URL characters with: %



Escape Character

Use % to escape special URL characters such as: : ? & #

# %23
: %3A
% %25
? %3F
& %26
(space) %20



Advanced Setup:

The es: URL protocol is installed in the registry under:

HKEY_CLASSES_ROOT\ES

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\ES]
@="URL:Everything Search Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\ES\shell]

[HKEY_CLASSES_ROOT\ES\shell\open]

[HKEY_CLASSES_ROOT\ES\shell\open\command]
@="\"C:\\Program Files\\Everything\\Everything64.exe\" -url \"%1\"
The open command can be customized.
-url



Examples:

Search for ABC AND 123:
es:ABC%20123

Search for foo#bar:
es:foo%23bar

Enable regex and search for ^123456789:
es:^123456789?regex=1

Enable regex, set the sort to date modified descending and search for ^123456789:
es:^123456789?regex=1&sort=date-modified-descending

Clear the search and select C:\Windows\Notepad.exe
es:#c%3A%5Cwindows%5Cnotepad.exe

Search for *.jpg and show thumbnails:
es:*.jpg?view=128



Excel Link:

Use =HYPERLINK() to create a clickable link in Excel.

For example:

=HYPERLINK("es:"&A1, "Open in Everything")
Post Reply