You are not logged in.

#1 2011-04-23 15:41:27

beniro
Member
From: St. Petersburg, FL, USA
Registered: 2002-12-31
Posts: 313

Firefox Google Search for all the ArchLinux.org subdomains

I hope this isn't too elementary or in the wrong place...  I couldn't find anywhere that offered this particular solution, so...just a suggestion.

I prefer to search *.archlinux.org %keywords when I want something Arch-related, and I remove the search bar.  I just search directly for the nav bar using keywords.  Here is how to get that done with a simple bookmark in Firefox.

Create a bookmark to the following URL:

http://www.google.com/search?source=ig& … =&aql=&oq=

Then, go to the properties for that bookmark.  Set the keyword to whatever...you'll have to type this in the navigation toolbar each time you search.  I set mine to "a"...

Now, whenever I want to search Arch, I'll ctrl+t to open a new tab, then type the following into the navigation bar:

"a gnucash"

That will essentially do the following google search:

"site:*.archlinux.org gnucash"

Pretty neat.  You could obviously create individual subdomain searches by replacing the "*" in the URL with "bbs" or "wiki", etc.  You could create searches for any domain you want by replacing the archlinux.org domain with...whatever.

Hope this is useful to someone.

EDIT: Yes, I also used the arch-firefox-search package, but I find it gives higher quality results to use google.

Last edited by beniro (2011-04-23 15:53:58)

Offline

#2 2011-04-24 05:35:06

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: Firefox Google Search for all the ArchLinux.org subdomains

I've got this in my luakit globals.lua:

afos = "http://www.google.com/search?q=site:bbs.archlinux.org+%s&tbo=1&tbs=qdr:y,sbd:1"

(The "%s" is the search term variable.)
This searches forum posts from now to a year old and displays them in chronological order, with the most recent ones first. The reasoning behind this is that the build-in forum search is not very clever and that posts more than a year old are most likely irrelevant to me anyway.
For AUR and the wiki you can actually use the normal build-in searches though, I think, as they don't have a "date" per se.

Offline

#3 2011-04-24 09:10:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Firefox Google Search for all the ArchLinux.org subdomains

JackH79 wrote:

I've got this in my luakit globals.lua:

afos = "http://www.google.com/search?q=site:bbs.archlinux.org+%s&tbo=1&tbs=qdr:y,sbd:1"

(The "%s" is the search term variable.)
This searches forum posts from now to a year old and displays them in chronological order, with the most recent ones first. The reasoning behind this is that the build-in forum search is not very clever and that posts more than a year old are most likely irrelevant to me anyway.
For AUR and the wiki you can actually use the normal build-in searches though, I think, as they don't have a "date" per se.

I prefer a bit more flexibility wrt to the time period, so I have

bbst () { $BROWSER "http://www.google.com/search?q=site:bbs.archlinux.org+$2&tbo=1&tbs=qdr:$1,sbd:1"; }

in my .bashrc.
$1 := { y | m | w | d }
$2 is the searchphrase. If it includes a space, you need to enclose it in quotes:

[karol@black ~]$ bbst m gnome webkit     # bad
[karol@black ~]$ bbst m 'gnome webkit'   # good

Offline

Board footer

Powered by FluxBB