comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Firefox search plugin
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Firefox search plugin [message #60977] Wed, 02 July 2008 01:52 Go to next message
lbnc is currently offline  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 #61072 is a reply to message #60977] Fri, 04 July 2008 01:06 Go to previous messageGo to next message
lbnc is currently offline  lbnc
Messages: 15
Registered: January 2005
Junior Member
On 3 Jul, 14:49, Mike <Michael.Mill...@gmail.com> wrote:
> On Jul 2, 1:02 pm, "mgal...@gmail.com" <mgal...@gmail.com> wrote:
>
>> Cool. I got this working (word of warning for others, make sure you
>> get your line breaks correct when copy-and-pasting).
>
> Yes - very cool.  Thanks Lasse!
>
> Do you know if this can be made case insensitive?   It works for
> "PLOT", but not for "plot".  I wonder if there is some xml magic that
> can change the searchTerms to all uppercase before submitting the Url?
>
> Mike

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.

Cheers
Lasse Clausen
Re: Firefox search plugin [message #61082 is a reply to message #60977] Thu, 03 July 2008 06:49 Go to previous messageGo to next message
Mike[2] is currently offline  Mike[2]
Messages: 99
Registered: December 2005
Member
On Jul 2, 1:02 pm, "mgal...@gmail.com" <mgal...@gmail.com> wrote:
> Cool. I got this working (word of warning for others, make sure you
> get your line breaks correct when copy-and-pasting).

Yes - very cool. Thanks Lasse!

Do you know if this can be made case insensitive? It works for
"PLOT", but not for "plot". I wonder if there is some xml magic that
can change the searchTerms to all uppercase before submitting the Url?

Mike
Re: Firefox search plugin [message #61110 is a reply to message #60977] Wed, 02 July 2008 10:02 Go to previous messageGo to next message
Michael Galloy is currently offline  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 Go to previous message
Mike[2] is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: FREE SOFTWARE DOWNLOAD ONLINE
Next Topic: What Else!? More IDL 7 Woes.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 11:06:40 PDT 2025

Total time taken to generate the page: 0.31865 seconds