Search Bar Plugin
出自Gentoo Linux Wiki
目录 |
[编辑] Firefox 浏览器
[编辑] 介绍
The gentoo wiki search plugin is here. To install it you can go here and click the appropriate link: http://gentoo-portage.com/plugins/index.html
After clicking it you will get a nice option in your browser to search the wiki directly in the top right of your browser
[编辑] 问题 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/"
[编辑] 问题 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"
[编辑] 其它搜索引擎
There are more search engines, you can find those on mycraft: http://mycroft.mozdev.org/download.html?name=gentoo&submitform=Search Currently, apart gentoo-wiki and gentoo-portage (from Introduction) you can find gentoo-forums (post & topics), gentoo-bugs (bug no & bug summary) and gentoo-packages.
[编辑] Opera 浏览器
[编辑] Drop Down Search Menu
I found a good explanation You can replace search lines in the Opera browser
$ nano ~/.opera/search.ini
original
| 文件: ~/.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
| 文件: ~/.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
[编辑] Custom Drop Down Search
Search Preferences Tab in Opera
- My ~/.opera/search.ini 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)
[编辑] 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
| 文件: ~/.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 钢管 钢管 钢管 钢管 钢管 钢管 钢管 钢管 钢管 乒乓球桌 篮球架 体育器材 健身器材 健身器材 健身器材 健身器材 探伤机 探伤机 探伤机 探伤机 二手房 二手房 二手房 二手房 北京二手房 北京二手房 北京二手房 北京二手房 北京二手房 北京二手房 北京二手房 门禁 门禁 门禁 门禁 门禁系统 门禁系统 门禁系统 门禁系统 门禁系统 门禁系统 门禁系统 风淋室 洁净工作台 洁净工作台 高效过滤器 高效过滤器 净化工程 净化工程 传递窗 传递窗 净化厂房 净化工程 净化工程 净化工程 监控设备 硬盘录像机 远程监控 智能球摄像机 会计服务 血管瘤 北京写字楼 钢格板 国学 平面磨床 鲜花 鲜花 鲜花 鲜花 鲜花 鲜花 升降机 升降平台
[编辑] Epiphany
Epiphany users can add Smart Bookmarks from the URLs in the Opera section.

