FreshPorts -- The Place For Ports If you buy from Amazon USA, please support us by using this link.
Follow us
Blog
Twitter

I am looking for an LTO tape library. Do you have one to spare?
Website Feedback
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 working freshports via opera
Author: epilogue 
Date:   08-02-05 20:45

<opera evangelism>

opera (and linux-opera) is a browser which has several outstanding features and which is constantly breaking new ground (tabs anyone?, zooming, spatial navigation, mouse gestures, e-mail filtering borrowed *by* - not from - gmail, and the list goes on and on and on...).

while many of these features have trickled down to the other browsers, i am not sure that all have. one, the subject of this post, just may encourage you give opera a try.

</opera evangelism>

so, in ~/.opera and ~/.linux-opera, there is a file called search.ini. it is a simple text file which, if you take the time to study and hack away at, can offer great rewards in productivity. it offers you the same functionality as a specialised browser search bar, except that it works from the address bar, and you can plug in virutally any database you want.

there are the defaults, which include google:

[Search Engine 1]
Name=&google
URL=http://www.google.ca/search?q=%s&sourceid=opera&num=30&ie=utf-8&oe=utf-8
Query=
Key=g <<<<<<<<<< key can be anything you want
Is post=0
Has endseparator=0
Encoding=utf-8
Search Type=0
Verbtext=17063
Position=-1
Nameid=0

in your address bar, just type 'g <search value>' and press [enter], then say goodbye to that google bar and hello to a cleaner looking interface.

NB: you do not type the < > or the ' ' in the example above, but you knew that, right? ;)

(for you keyboard power-users, moving to the address bar is just as simple as F8. try CTRL+B for a nice list of available keyboard shortcuts -- all customizable, btw)

now, you can also add your own search.ini entries. let's look at a few useful BSD entries:

[Search Engine 2]
Name=google &BSD
URL=http://www.google.ca/bsd?q=%s&sourceid=opera&num=30&ie=utf-8&oe=utf-8
Query=
Key=b
Is post=0
Has endseparator=0
Encoding=utf-8
Search Type=0
Verbtext=17063
Position=-1
Nameid=0

'b <search value>' will now give you the results from google.ca/bsd.

[Search Engine 10]
Name=&freshports port name
URL=http://www.freshports.org/search.php?query=%s&search=go&num=20&stype=name&method=match&deleted=excludedeleted&start=1&casesens
itivity=caseinsensitive
Query=
Key=f
Is post=0
Has endseparator=0
Encoding=iso-8859-1
Search Type=0
Verbtext=17063
Position=-1
Nameid=0

[Search Engine 11]
Name=&freshports file desc
URL=http://www.freshports.org/search.php?query=%s&search=go&num=20&stype=shortdescription&method=match&deleted=excludedeleted&star
t=1&casesensitivity=caseinsensitive
Query=
Key=ff
Is post=0
Has endseparator=0
Encoding=iso-8859-1
Search Type=0
Verbtext=17063
Position=-1
Nameid=0

'f <search value>' returns freshports <port name> results, while
'ff <search value>' returns freshports <short description> results.

with a few careful edits, you can have any feature of http://www.freshports.org/search.php built right into your plain old address bar. neat, huh?

----------

there are quite a few search.ini tutorials out there on the web and finding them is just as easy as entering 'g edit search.ini' on your opera address bar.

happy hacking.


cheers,
epi



Reply To This Message
 
 Re: working freshports via opera
Author: Dan 
Date:   18-02-05 11:53

Similarly, visit http://mycroft.mozdev.org/download.html and under "Install search plugins", type FreshPorts. You'll find a plugin for Mozilla.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.


Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2014 Dan Langille. All rights reserved.