Search Bar Plugin
From Gentoo Linux Wiki
Contents |
[edit] Firefox
If you are using Firefox 2.0 or newer, just open the dropdown menu of you search bar on some web sites. For exemple, in this page, there should be an entry Add Gentoo Linux Wiki (English), it lets you download and install plugins automatically.
[edit] Search engines
When you are on some gentoo pages, you can see that you can add search engines plugins for Firefox. In this page, you can add the one for "Gentoo Linux Wiki". On the http://gentoo.org main page, you can add "Gentoo list archives". On http://forums.gentoo.org, you can add "Gentoo Website", "Gentoo Forums" (post & topics), and "Gentoo Bugzilla" (bug no & bug summary). On http://gentoo.zapto.org you'll be able to add a searchengine plugin for this website (search by description, search revdeps). In the next section, you'll see how to add search engine for gentoo-portage.
You can add keywords for them, to quickly search "gw editing search bar" "gpo thing", or "gzo what", "revdep app-shells/bash"...
There are more search engines, you can find those on mycraft: http://mycroft.mozdev.org/download.html?name=gentoo&submitform=Search
[edit] Gentoo-portage
[edit] Introduction
To install it you can go here and download both files into the "searchplugin" folder in your firefox installation folder: http://svn.gentoo-portage.com:8080/gentoo-portage/trunk/other/firefoxsearchplugin/
After restarting Firefox you will get a nice option in your browser to search the wiki directly in the top right of your browser
[edit] Problems I
If the search bar does not show up instantly after clicking the link you may fix it by doing this:
su -c "chgrp wheel /usr/lib/mozilla-firefox/searchplugins/ && chmod g+ws /usr/lib/mozilla-firefox/searchplugins/"
All users in the group "wheel" now have enough permissions to add searchplugins
As of Firefox 1.0.6 it is under /usr/lib/mozilla-firefox, so you have to type:
su -c "chgrp wheel /usr/lib/mozilla-firefox/searchplugins/ && chmod g+ws /usr/lib/mozilla-firefox/searchplugins/"
[edit] Problems II
If you're using the firefox-bin package you'll have to set the following directory:
su -c "chgrp wheel /opt/firefox/searchplugins && chmod g+ws /opt/firefox/searchplugins"
[edit] Keymark
In the bookmarks menu go to manage bookmarks and add a new bookmark. The name isn't important, but the Location should behttp://gentoo-wiki.com/Special:Search?go=Go&search=%sand the put whatever keyword you want to use (lets say 'gw'). Then place the bookmark somewhere (it's not important where. Now you should be able to type in you location bar
gw <some search term>and search the wiki
[edit] Opera
[edit] Drop Down Search Menu
I found a good explanation You can replace search lines in the Opera browser
$ nano ~/.opera/search.ini
original
| File: ~/.opera/search.ini |
|
... [Search Engine 14] Name=Translation URL=http://r.lycos.com/r/opipreftrans/http://translation.lycos.com/lycos?urltext=%s&systran_lp=en_fr&partner=demo-Lycos2-en Query= Key= Is post=0 Has endseparator=0 Encoding=iso-8859-1 Search Type=100 Verbtext=17063 Position=-1 Nameid=0 ... |
this one will search on gentoo-portage.com
| File: ~/.opera/search.ini |
|
... [Search Engine 14] Name=gentoo-portage URL=http://www.gentoo-portage.com/search-result.php?search=%s Query= Key= Is post=0 Has endseparator=0 Encoding=iso-8859-1 Search Type=100 Verbtext=17063 Position=-1 Nameid=0 ... |
as it was suggested on the forum you can use
- Gentoo Forum Search
http://forums.gentoo.org/search.php?search_keywords=%s
- Portage Search
http://www.gentoo-portage.com/search-result.php?search=%s
- Gentoo Bug Search
http://bugs.gentoo.org/show_bug.cgi?id=%s
- Gentoo-Wiki
[edit] Custom Drop Down Search
Search Preferences Tab in Opera
- My ~/.opera/search.ini file:
| File: ~/.opera/search.ini |
|
... [Search Engine 1] Name=Find &in page URL= Query= Key=i Is post=0 Has endseparator=-1 Encoding= Search Type=0 Verbtext=17063 Position=-1 Nameid=0 [Search Engine 2] Name=&Google URL=http://www.google.com/search?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8 Query= Key=g Is post=0 Has endseparator=0 Encoding=utf-8 Search Type=0 Verbtext=17063 Position=-1 Nameid=0 [Search Engine 3] Name=Google &Linux URL=http://www.google.com/linux?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8 Query= Key=l Is post=0 Has endseparator=0 Encoding=utf-8 Search Type=0 Verbtext=17063 Position=-1 Nameid=0 [Search Engine 4] Name=Google G&roups URL=http://groups.google.com/groups?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8 Query= Key=r Is post=0 Has endseparator=0 Encoding=utf-8 Search Type=0 Verbtext=17063 Position=-1 Nameid=0 [Search Engine 5] Name=Google &News URL=http://news.google.com/news?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8 Query= Key=n Is post=0 Encoding=utf-8 Search Type=0 Verbtext=17063 Position=-1 Nameid=0 Has endseparator=-1 [Search Engine 6] Name=&Forums.Gentoo URL=http://forums.gentoo.org/search.php?search_keywords=%s Query= Key=f Is post=0 Encoding=urf-8 Search Type=0 Verbtext=17063 Position=-1 Nameid=0 Has endseparator=0 [Search Engine 7] Name=B&ugs.Gentoo URL=http://bugs.gentoo.org/show_bug.cgi?id=%s URL=http://bugs.gentoo.org/buglist.cgi?query_format=specific&order=relevance+desc&bug_status=__all__&product=&content=%s Query= Key=u Is post=0 Has endseparator=0 Encoding=utf-8 Search Type=0 Verbtext=17063 Position=-1 Nameid=0 [Search Engine 8] Name=Gentoo-&Portage URL=http://www.gentoo-portage.com/search-result.php?search=%s Query= Key=p Is post=0 Has endseparator=0 Encoding=utf-8 Search Type=0 Verbtext=17063 Position=-1 Nameid=0 [Search Engine 9] Name=Gentoo-&Wiki URL=http://gentoo-wiki.com/index.php?search=%s&go=Go Query= Key=w Is post=0 Has endseparator=0 Encoding=utf-8 Search Type=10 Verbtext=17063 Position=-1 Nameid=0 [Search Engine 10] Name=Fr&eshmeat URL=http://freshmeat.net/search/?q=%s§ion=projects Query= Key=e Is post=0 Has endseparator=-1 Encoding=iso-8859-1 Search Type=4 Verbtext=17063 Position=-1 Nameid=0 [Search Engine 11] Name=&Dict.org URL=http://www.dict.org/bin/Dict?Form=Dict1&Query=%s&Strategy=*&Database=* Query= Key=d Is post=0 Has endseparator=0 Encoding=utf-8 Search Type=6 Verbtext=17063 Position=-1 Nameid=0 ... |
Note: If you missing an entrance in the Drop Down Menu, you porbably missing Key= value (in linux it's case sensitve)
[edit] Side Search Panel
Side Search Panel and Drop Down Search Menu side by side
To add buttons on your Side Panel in the Opera
you've got to edit ~/.opera/toolbar/standard_toolbar (1).ini
| File: ~/.opera/toolbar/standard_toolbar (1).ini |
|
... [Search Panel Toolbar.content] Search0 ;Button1, "Find in page search"=Search, 1 ;Spacer2 Button3, "Google search"=Search, 1 Button4, "Linux Google search"=Search, 2 Button5, "Groups Google search"=Search, 3 Button6, "News Google search"=Search, 4 Spacer7 Button8, "Forums.Gentoo search"=Search, 5 Button9, "Bugs.Gentoo search"=Search, 6 Button10, "Gentoo-Portage search"=Search, 7 Button11, "Gentoo-Wiki search"=Search, 8 Button12, "Freshmeat search"=Search, 9 ... |
Note:I commented out Button 1 so by default i have "Find in Page", see the screenshot
[edit] Epiphany
Epiphany users can add Smart Bookmarks from the URLs in the Opera section.

