Firefox search plugin [message #60977] |
Wed, 02 July 2008 01:52  |
lbnc
Messages: 15 Registered: January 2005
|
Junior Member |
|
|
Hi there,
rather than using the built-in help from IDL I find myself using the
webpages at http://idlastro.gsfc.nasa.gov/idl_html_help/Functional_List_ of_IDL_Routines.html
all the time. Because you can navigate quite easily to the help page
once you know the name of the function/procedure you are interested
in, I wrote a small search plugin for Firefox that allows you to just
enter the routine name in the search field in the top right corner
(upper case!) and voila! magic happens and you navigate to the right
help page. If you want to be able to do that, too, do the following:
0) download and install Firefox from www.mozilla.com
1) navigate to the searchplugins directory in your installation
directory (e.g. C:\Program Files\Mozilla Firefox\)
2) open a file called IDL.xml using your favourite editor and insert
the following
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>IDL Help</ShortName>
<Description>Function/Procedure Lookup for IDL</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16">data:image/x-
icon;base64,Qk32AAAAAAAAAHYAAAAoAAAAEAAAABAAAAABAAQAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAA AICAgADAwMAAAAD
%2FAAD%2FAAAA%2F%2F8A%2FwAAAP8A%2FwD%2F%2FwAA%2F%2F%2F
%2FAIiIiIiIiIiIiIiIgAiIiIiIiIgLMIiIiIiIiAswiIiIiIiIgAiIiIiIi IgLMIiIiIiIiAswiIiIiIiICzCIiIiIiIgLswiIiIiIAIC7MIiIiICzCAuzC IiIgLMIgLMIiIiAuzALswiIiIgLu7swiIiIiIAAAAiIiIiIiIiIiIiI </
Image>
<Url type="text/html" method="GET" template="http://
idlastro.gsfc.nasa.gov/idl_html_help/{searchTerms}.html"></Url >
<SearchForm>http://idlastro.gsfc.nasa.gov/idl_html_help/
Functional_List_of_IDL_Routines.html</SearchForm>
</SearchPlugin>
3) save file, restart Firefox
4) select IDL Help as the search engine in the top right corner of
Firefox
5) type PLOT and hit enter
6) Bob's your uncle.
I "stole" the icon from my IDL 6.2 installation, I hope I am forgiven.
Obviously, if you are using the IDL help, you will find this feature
completely pointless, however there might be people who use the help
pages like me so I thought I share.
So long
Lasse Clausen
|
|
|
|
|
Re: Firefox search plugin [message #61110 is a reply to message #60977] |
Wed, 02 July 2008 10:02   |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On Jul 2, 2:52 am, l...@lbnc.de wrote:
> Hi there,
>
> rather than using the built-in help from IDL I find myself using the
> webpages athttp://idlastro.gsfc.nasa.gov/idl_html_help/Functional_Lis t_of_IDL_Ro...
> all the time. Because you can navigate quite easily to the help page
> once you know the name of the function/procedure you are interested
> in, I wrote a small search plugin for Firefox that allows you to just
> enter the routine name in the search field in the top right corner
> (upper case!) and voila! magic happens and you navigate to the right
> help page. If you want to be able to do that, too, do the following:
>
> 0) download and install Firefox fromwww.mozilla.com
> 1) navigate to the searchplugins directory in your installation
> directory (e.g. C:\Program Files\Mozilla Firefox\)
> 2) open a file called IDL.xml using your favourite editor and insert
> the following
> <SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
> <ShortName>IDL Help</ShortName>
> <Description>Function/Procedure Lookup for IDL</Description>
> <InputEncoding>UTF-8</InputEncoding>
> <Image width="16" height="16">data:image/x-
> icon;base64,Qk32AAAAAAAAAHYAAAAoAAAAEAAAABAAAAABAAQAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAA AICAgADAwMAAAAD
> %2FAAD%2FAAAA%2F%2F8A%2FwAAAP8A%2FwD%2F%2FwAA%2F%2F%2F
> %2FAIiIiIiIiIiIiIiIgAiIiIiIiIgLMIiIiIiIiAswiIiIiIiIgAiIiIiIi IgLMIiIiIiIiAswiIiIiIiICzCIiIiIiIgLswiIiIiIAIC7MIiIiICzCAuzC IiIgLMIgLMIiIiAuzALswiIiIgLu7swiIiIiIAAAAiIiIiIiIiIiIiI </
> Image>
> <Url type="text/html" method="GET" template="http://
> idlastro.gsfc.nasa.gov/idl_html_help/{searchTerms}.html"></Url >
> <SearchForm>http://idlastro.gsfc.nasa.gov/idl_html_help/
> Functional_List_of_IDL_Routines.html</SearchForm>
> </SearchPlugin>
> 3) save file, restart Firefox
> 4) select IDL Help as the search engine in the top right corner of
> Firefox
> 5) type PLOT and hit enter
> 6) Bob's your uncle.
>
> I "stole" the icon from my IDL 6.2 installation, I hope I am forgiven.
>
> Obviously, if you are using the IDL help, you will find this feature
> completely pointless, however there might be people who use the help
> pages like me so I thought I share.
Cool. I got this working (word of warning for others, make sure you
get your line breaks correct when copy-and-pasting).
By the way, I have a custom Google search available on my website
(michaelgalloy.com over on the right side) that will search the IDL
docs. The search is publicly available so the Javascript that does the
search could be embedded in any website that wants it.
Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
|
|
|
Re: Firefox search plugin [message #61139 is a reply to message #61072] |
Mon, 07 July 2008 07:36  |
Mike[2]
Messages: 99 Registered: December 2005
|
Member |
|
|
On Jul 4, 4:06 am, l...@lbnc.de wrote:
> indeed, that bothered me two. But instead of diving into XML I decided
> to direct the query to a little HTML page I created that translates
> the query into upper case characters using JavaScript and the
> redirects you to the IDL help pages.
>
> In the Url tag of your IDL.xml, change the template value to
>
> http://www.lbnc.de/idl_search/ulconverter.html?q={searchTerm s}
>
> That should do the trick nicely.
Very nicely - this is a great tool - thanks!
Mike
|
|
|