Friday, May 29, 2009

chromium-browser with bookmark keywords

I've been enjoooying chromium-browser on */Linux since last ~3weeks, you'll find lotsa references out there on howto install it, in my ubuntu it boils down to:

echo deb hardy main > /etc/apt/sources.list.d/chromium.list
#echo " DIRECT;" > /etc/apt/apt.conf.d/85launchpad
apt-key adv --recv-keys --keyserver 4E5E17B5
apt-get update
apt-get install chromium-browser

One important functionality I was missing was the ability to create "%s" bookmarks (ala firefox), the nice thing is that it's actually support, tho not "fancy" at the moment because of laking bookmark editor (May/09).
Good news is that you can actually ride it via sql:

# Author: JuanJo
# License: GPLv2+
# Usage: (chromium-browser must not be running)
# ./ ## *see* it, then:
# ./ | sqlite3 $HOME/.config/chromium/Default/Web?Data
# Goodies:
# at the address bar type eg:
# yh tate
# wa theta
# rae teta
# bspot juanjosec

while read k url;do
case "$k" in ""|\#*) continue;;esac
echo -n "INSERT INTO keywords (short_name, keyword, favicon_url, url) "
echo "VALUES ('$k','$k','about:blank','$url');"
done < <(echo "$KEYWORDS"| sed 's/%s/{searchTerms}/')

Incidentally nuff, I'm now at a roaming session I need to last +4hs, so I closed my ff-3.1b3 cpu toaster and left riding entirely on chrome-browser (who needs flash after all ?).


Felipe said...

Awesome, JuanJo!

CruX said...

Hey! Good post! Just take a look at the missing "r" in the title ;-)

JuanJo said...

quACK! ... cada vez que tengo que tipear chromium me pregunto si estos changos no tenían algún asesor latino que les diera una mano con la amigabilidad del nombre para nosotros los hispanoparlantes.