Organizing Firefox bookmarks with Freemind
Here’s how you can organize your Firefox, Camino, Mozilla, Netscape, and even Internet Explorer bookmarks (they all use the same file format) using Freemind.
Note that on my system, Freemind resides at ~/freemind
and my
bookmarks reside at ~/.mozilla/firefox/**default/bookmarks.html
.
Install the necessary file conversion tools:
sudo apt-get install xbel xbel-utils xsltproc
Netscape to XBEL conversion:
ns_parse ~/.mozilla/firefox/**default/bookmarks.html bookmarks.xbel
XBEL to Freemind conversion:
xsltproc -o bookmarks.mm ~/freemind/accessories/xbel2mm.xsl bookmarks.xbel
Organize your bookmarks using Freemind:
freemind.sh bookmarks.mm
Freemind to XBEL conversion:
xsltproc -o bookmarks_new.xbel ~/freemind/accessories/mm2xbel.xsl bookmarks.mm
XBEL to Netscape conversion:
xbel_parse --netscape < bookmarks_new.xbel > bookmarks_new.html
Once you are satisfied with your newly organized bookmarks (
bookmarks_new.html
), you can overwrite the old ones:mv bookmarks_new.html ~/.mozilla/firefox/*default/bookmarks.html