Req: Browser Plugin

Plug-in and third party software discussion.
Post Reply
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Req: Browser Plugin

Post by therube »

Req: Browser "Plugin"

(Actually I do not want a Plugin, but more to get an Everything "protocol" set up, correctly. From there you should be able to use a bookmarklet <a bit of JavaScript> to pass the wanted string to Everything.)



OK, the idea is to highlight a word(s) on a web page from within your browser & perform an Everything search on said words.



idea: Open in Regedit

Open in Regedit in IE

Open in Regedit

Open in regedit is similar in concept & works.
(Mostly works. Worked fine initially. Now there may be some oddities as Mozilla <?> has changed over time.)


Registering an Application to a URL Protocol

Register protocol

Code: Select all

REGEDIT4

[HKEY_CLASSES_ROOT\foo]
@="URL:foo Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\foo\shell]

[HKEY_CLASSES_ROOT\foo\shell\open]

[HKEY_CLASSES_ROOT\foo\shell\open\command]
@="\"C:\\Program Files\\Application\\program.exe\" \"%1\""

Code: Select all

REGEDIT4

[HKEY_CLASSES_ROOT\EVE]
@="URL:Everything Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\EVE\shell]

[HKEY_CLASSES_ROOT\EVE\shell\open]

[HKEY_CLASSES_ROOT\EVE\shell\open\command]
@="\"C:\\DEV\\Locate\\Everything.exe\" -filename %1"

Now the latter code works (kind of).
Everything opens & the string is searched for.

First problem, the passed string is like "EVE: thisiswhatiwant", i.e. "EVE:" is prefaced to the string (in %1).
So we would want to strip that out.

Second problem is that enclosed spaces are (URL is) encoded (in Mozilla browsers) such that "this is what i want" comes back as "this%20is%20what%20i%20want). (I believe that's the case. And this does not happen in IE.)



noscript.fixURI still effectual?
(This would be pertinent to Mozilla & NoScript users.)


http://www.nirsoft.net/utils/regscanner.html
RegScanner Tool: Alternative to RegEdit find/search of Windows

Using reg: Links

Starting from version v1.50, RegScanner allows you to use reg: URL as a link to the Registry key in RegEdit editor.
For Example: Clicking the link below will open RegEdit with the specified Registry key:
reg:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion
You can also type the same reg: string in the address bar of Internet Explorer or in the Run dialog-box of Windows.
void
Developer
Posts: 16770
Joined: Fri Oct 16, 2009 11:31 pm

Re: Req: Browser Plugin

Post by void »

I have added URL Protocol support to "Everything" for the next release.

The following will be supported:
  • ES: URL Protocol (ES is short for Everything Search).
  • Install URL Protocol from installer (disabled by default).
  • Install/Uninstall URL Protocol from within "Everything".
  • -install_url_protocol command line option.
  • -uninstall_url_protocol command line option.
  • -url <es:search-string> command line option.
The -url <es:search-string> command line option will un-escape %xx characters and remove the ES: prefix.
For example:

Code: Select all

Everything.exe -url "ES:Hello%20World"
will create a new search window with the search filled in with Hello World.

The following registry entry will be installed (if enabled):

Code: Select all

REGEDIT4

[HKEY_CLASSES_ROOT\ES]
@="URL:Everything 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.exe\" -url \"%1\""
-will have an alpha release for testing soon.
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: Req: Browser Plugin

Post by therube »

(Keywords: GVIM, Vim. I was looking for this thread but I wasn't searching for the correct terms. The keywords should help next time.)
Post Reply