[Needlesearch] Feature Request: Opera-like short search

Belgabor belgabor at gmx.de
Wed Mar 16 11:03:03 EST 2005


Hi guys,

I promised, and now I deliver =)
This is a patch to the current CVS that implements what I proposed. (to be
applied in the needlesearch/src/needlesearch directory)

Functionality:
- Adds 'Enter keyword' to the properites of a search engine. This will
become the keyword property of generated bookmarks.
- 'Generate Bookmarks'. Adds a bookmark folder called 'NeedleSearch' to the
bookmark root and fills it with bookmarks to serve as forwarders to map the
mozilla keyword functionality from the addressbar to needlesearch search
engine entries. WARNING! This folder is deleted and recreated everytime you
select the menuitem.

How to use:
- Add search engine the normal way (eg the google example from the
needlesearch webpage)
- Go to the editor and change the keyword field to something easy in the
properties of the created engine (eg 'g')
- Choose 'Generate bookmarks' in the editor menu
- Go to the addressbar, enter your keyword+(space)+searchterms to execute
your search (eg 'g mozilla')

Things that should be done but I didn't know/didn't have the time to do
- Localization. Currently only 'Enter keyword' in the properties window is
localized. As I don't know the workings of xul localization properly this
might break things for people on other locales.
- Customization of the name of the folder that holds the redirection
bookmarks
- Option to automatically recreate the bookmarks when the keyword of a
search engine is changed
- Check if it works in mozilla. It should, but I only checked in firefox

Things that would be nice
- Buttons for 'generate bookmarks', in the editor as well as maybe in the
needlesearch bar.
- Make the auto-adder and editor buttons moveable in firefox. All other
buttons are strictly speaking no longer necessary =)
- Several things I currently forgot =)

Cheers
Tobias

> > A good idea, but I can see one fallacy. The addressbar is a bit more
> than
> > just the place to enter addresses to go to. What springs to mind is that
> it
> > gets updated if the page you go to is redirected or you click on a link.
> I
> > don't think I want to skip on that functionality =)
> 
> Absolutely.  Two solutions would be:
> 
> 1) Add a button that copies the current fetched address (i.e. translated 
> search url, redirect, or clicked-link address) to the clipboard (or even 
> directly to the searchterms box).
> 
> 2) After saving the user-entered searchterms to the pull-down menu 
> (functionality which already exists) automatically update the 
> searchterms with the final fetched address.
> 
> Of the above, I prefer (1).
> 
> 
> Kandarp Patel
> kpatelPro at gmail.com
> 

-- 
SMS bei wichtigen e-mails und Ihre Gedanken sind frei ...
Alle Infos zur SMS-Benachrichtigung: http://www.gmx.net/de/go/sms
-------------- next part --------------
A non-text attachment was scrubbed...
Name: needlesearch-keyword.patch.bz2
Type: application/x-bzip
Size: 5413 bytes
Desc: not available
Url : http://mozdev.org/pipermail/needlesearch/attachments/20050316/8076e47f/needlesearch-keyword.patch.bin


More information about the Needlesearch mailing list