Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

syncing w3m/firefox bookmarks

33 views
Skip to first unread message

Andreas Politz

unread,
Nov 20, 2009, 11:28:29 AM11/20/09
to help-gn...@gnu.org

Hi,

has somebody solved the problem of reading/writing the same set of
bookmarks in firefox and w3m yet ?

Thanks,

-ap

Thierry Volpiatto

unread,
Nov 20, 2009, 2:10:19 PM11/20/09
to help-gn...@gnu.org
Andreas Politz <pol...@fh-trier.de> writes:

See http://www.emacswiki.org/cgi-bin/emacs/BookmarkExtension

With this you can actually import your w3m bookmarks in standard emacs
bookmarks (temporarily or definitely), you can also bookmark from
firefox to emacs bookmarks.

I plan to add also firefox bookmark importation (will be done soon).

So with that, all bookmarks will be centralized to standard emacs
bookmarks.

--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France

Lennart Borgman

unread,
Nov 20, 2009, 2:20:49 PM11/20/09
to Thierry Volpiatto, help-gn...@gnu.org
On Fri, Nov 20, 2009 at 8:10 PM, Thierry Volpiatto
<thierry....@gmail.com> wrote:
> Andreas Politz <pol...@fh-trier.de> writes:
>
>> Hi,
>>
>> has somebody solved the problem of reading/writing the same set of
>> bookmarks in firefox and w3m yet ?
>
> See http://www.emacswiki.org/cgi-bin/emacs/BookmarkExtension
>
> With this you can actually import your w3m bookmarks in standard emacs
> bookmarks (temporarily or definitely), you can also bookmark from
> firefox to emacs bookmarks.
>
> I plan to add also firefox bookmark importation (will be done soon).


Could you perhaps also write them as an .org file?


Thierry Volpiatto

unread,
Nov 20, 2009, 2:39:39 PM11/20/09
to help-gn...@gnu.org
Lennart Borgman <lennart...@gmail.com> writes:

When *.json file will be converted to elisp data (alist,hash-table,
etc...) everything is possible.

Andreas Politz

unread,
Nov 20, 2009, 3:56:49 PM11/20/09
to help-gn...@gnu.org
Thierry Volpiatto <thierry....@gmail.com> writes:

> Lennart Borgman <lennart...@gmail.com> writes:
>
>> On Fri, Nov 20, 2009 at 8:10 PM, Thierry Volpiatto
>> <thierry....@gmail.com> wrote:
>>> Andreas Politz <pol...@fh-trier.de> writes:
>>>
>>>> Hi,
>>>>
>>>> has somebody solved the problem of reading/writing the same set of
>>>> bookmarks in firefox and w3m yet ?
>>>
>>> See http://www.emacswiki.org/cgi-bin/emacs/BookmarkExtension
>>>

Thanks, I'll have a look at it.

>>> With this you can actually import your w3m bookmarks in standard emacs
>>> bookmarks (temporarily or definitely), you can also bookmark from
>>> firefox to emacs bookmarks.
>>>
>>> I plan to add also firefox bookmark importation (will be done soon).

??
firefox -> emacs bookmarks
works, and you are working on
emacs bookmarks -> firefox
or the other way around.


>>
>>
>> Could you perhaps also write them as an .org file?
>

This would actually better fit the tree-structure of firefox, since
bookmarks are plain lists, no ?

> When *.json file will be converted to elisp data (alist,hash-table,
> etc...) everything is possible.
>
>>
>>

-ap

Tim X

unread,
Nov 20, 2009, 5:54:34 PM11/20/09
to
Andreas Politz <pol...@fh-trier.de> writes:

I use a package called bmk-mgr, which allows me to maintain bookmarks
from within w3m/w3. I also can import bookmarks from a firefox bookmarks
file and I think will export the bookmarks in a format firefox can
import.

To my knowledge, there isn't an elisp package which will allow you to
add/update bookmarks in a firefox bookmark file. Would probably be handy
if there was one.

Another alternative is I think the g-client package allows you to save
bookmarks to google web marks, which you could also use with firefox.

Tim


--
tcross (at) rapttech dot com dot au

Thierry Volpiatto

unread,
Nov 21, 2009, 1:30:39 AM11/21/09
to help-gn...@gnu.org
Andreas Politz <pol...@fh-trier.de> writes:

> ??
> firefox -> emacs bookmarks
> works, and you are working on
> emacs bookmarks -> firefox
> or the other way around.

No,

- bookmarking a web page from Firefox to Emacs bookmarks works.

- bookmarking a web page from W3m in Emacs bookmarks works.

- Importing your W3m bookmarks in Emacs bookmarks works.

- Jumping to Firefox from one of these bookmarks works.

TODO:

- Importing Delicious bookmarks in Emacs bookmarks.

- Importing Firefox bookmarks in Emacs bookmarks.

Andreas Politz

unread,
Nov 21, 2009, 3:24:03 AM11/21/09
to help-gn...@gnu.org
Tim X <ti...@nospam.dev.null> writes:

> Andreas Politz <pol...@fh-trier.de> writes:
>
>> Hi,
>>
>> has somebody solved the problem of reading/writing the same set of
>> bookmarks in firefox and w3m yet ?
>>
> I use a package called bmk-mgr, which allows me to maintain bookmarks
> from within w3m/w3. I also can import bookmarks from a firefox bookmarks
> file and I think will export the bookmarks in a format firefox can
> import.

If bmk-mgr is able to export/import to/from firefox, that sounds like a
workable solution.


>
> To my knowledge, there isn't an elisp package which will allow you to
> add/update bookmarks in a firefox bookmark file. Would probably be handy
> if there was one.
>
> Another alternative is I think the g-client package allows you to save
> bookmarks to google web marks, which you could also use with firefox.

The idea behind this, looking for a third way, might be good. We could
use a local html file and export there, maybe via org, by running some script
from firefox/emacs.
>
> Tim

-ap

rustom

unread,
Nov 21, 2009, 10:03:03 AM11/21/09
to
On Nov 21, 11:30 am, Thierry Volpiatto <thierry.volpia...@gmail.com>
wrote:
>
> TODO:

>
> - Importing Firefox bookmarks in Emacs bookmarks.

In /.mozilla/firefox/<user>/ there is a sqlite database called
places.sqlite

If you copy that out (safer that way!) to some other directory say ~/
tmp
and there run
~/tmp$ sqlite3 places.sqlite

then give
select * from moz_places, moz_bookmarks where moz_places.id =
moz_bookmarks.fk
you get (I think!!) something like a dump of firefox's bookmarks
[My firefox is 3.5]

Thierry Volpiatto

unread,
Nov 21, 2009, 12:15:20 PM11/21/09
to help-gn...@gnu.org
rustom <rusto...@gmail.com> writes:

Thank you for this precious info. ;-)

rustom

unread,
Nov 21, 2009, 12:43:44 PM11/21/09
to
On Nov 21, 10:15 pm, Thierry Volpiatto <thierry.volpia...@gmail.com>
wrote:
> rustom <rustompm...256@gmail.com> writes:
> > On Nov 21, 11:30 am, Thierry Volpiatto <thierry.volpia...257@gmail.com>

> > wrote:
>
> >> TODO:
>
> >> - Importing Firefox bookmarks in Emacs bookmarks.
>
> > In /.mozilla/firefox/<user>/ there is a sqlite database called
> > places.sqlite
>
> > If you copy that out (safer that way!) to some other directory say ~/
> > tmp
> > and there run
> > ~/tmp$ sqlite3 places.sqlite
>
> > then give
> > select * from moz_places, moz_bookmarks where moz_places.id =
> > moz_bookmarks.fk
> > you get (I think!!) something like a dump of firefox's bookmarks
> > [My firefox is 3.5]
>
> Thank you for this precious info. ;-)
>
> --
> A + Thierry Volpiatto
> Location: Saint-Cyr-Sur-Mer - France

I think my sql is almost certainly wrong
I got some sense of whats there from here (but its not enough)
https://developer.mozilla.org/en/The_Places_database
http://kb.mozillazine.org/Places.sqlite#Technical_Information
Also if you want to hack on sqlite its nice to have something like
sqlite manager (firefox plugin)

Thierry Volpiatto

unread,
Nov 21, 2009, 5:17:30 PM11/21/09
to help-gn...@gnu.org
rustom <rusto...@gmail.com> writes:

Thanks, it will be helpful as i have a poor knowledge of sql.

Thierry Volpiatto

unread,
Nov 26, 2009, 9:32:22 AM11/26/09
to help-gn...@gnu.org
Lennart Borgman <lennart...@gmail.com> writes:

> On Fri, Nov 20, 2009 at 8:10 PM, Thierry Volpiatto
> <thierry....@gmail.com> wrote:

>> Andreas Politz <pol...@fh-trier.de> writes:
>>
>>> Hi,
>>>
>>> has somebody solved the problem of reading/writing the same set of
>>> bookmarks in firefox and w3m yet ?
>>

>> See http://www.emacswiki.org/cgi-bin/emacs/BookmarkExtension


>>
>> With this you can actually import your w3m bookmarks in standard emacs
>> bookmarks (temporarily or definitely), you can also bookmark from
>> firefox to emacs bookmarks.
>>
>> I plan to add also firefox bookmark importation (will be done soon).
>
>

> Could you perhaps also write them as an .org file?

It's done now, See:
http://www.emacswiki.org/cgi-bin/emacs/BookmarkExtension

Lennart Borgman

unread,
Nov 26, 2009, 1:01:02 PM11/26/09
to Thierry Volpiatto, help-gn...@gnu.org
On Thu, Nov 26, 2009 at 3:32 PM, Thierry Volpiatto

<thierry....@gmail.com> wrote:
> Lennart Borgman <lennart...@gmail.com> writes:
>
>> On Fri, Nov 20, 2009 at 8:10 PM, Thierry Volpiatto
>> <thierry....@gmail.com> wrote:
>>> Andreas Politz <pol...@fh-trier.de> writes:
>>>
>>>> Hi,
>>>>
>>>> has somebody solved the problem of reading/writing the same set of
>>>> bookmarks in firefox and w3m yet ?
>>>
>>> See http://www.emacswiki.org/cgi-bin/emacs/BookmarkExtension
>>>
>>> With this you can actually import your w3m bookmarks in standard emacs
>>> bookmarks (temporarily or definitely), you can also bookmark from
>>> firefox to emacs bookmarks.
>>>
>>> I plan to add also firefox bookmark importation (will be done soon).
>>
>>
>> Could you perhaps also write them as an .org file?
>
> It's done now, See:
> http://www.emacswiki.org/cgi-bin/emacs/BookmarkExtension


Thanks for notification.

Do I understand it correctly?
- Are firefox bookmarks first imported as emacs bookmarks?
- And from there you export to org?
- What happens then with the hierarchy that was in firefox? Is it still there?


Thierry Volpiatto

unread,
Nov 26, 2009, 1:21:20 PM11/26/09
to Lennart Borgman, help-gn...@gnu.org
Lennart Borgman <lennart...@gmail.com> writes:

> On Thu, Nov 26, 2009 at 3:32 PM, Thierry Volpiatto
> <thierry....@gmail.com> wrote:
>> Lennart Borgman <lennart...@gmail.com> writes:
>>
>>> On Fri, Nov 20, 2009 at 8:10 PM, Thierry Volpiatto
>>> <thierry....@gmail.com> wrote:
>>>> Andreas Politz <pol...@fh-trier.de> writes:
>>>>
>>>>> Hi,
>>>>>
>>>>> has somebody solved the problem of reading/writing the same set of
>>>>> bookmarks in firefox and w3m yet ?
>>>>
>>>> See http://www.emacswiki.org/cgi-bin/emacs/BookmarkExtension
>>>>
>>>> With this you can actually import your w3m bookmarks in standard emacs
>>>> bookmarks (temporarily or definitely), you can also bookmark from
>>>> firefox to emacs bookmarks.
>>>>
>>>> I plan to add also firefox bookmark importation (will be done soon).
>>>
>>>
>>> Could you perhaps also write them as an .org file?
>>
>> It's done now, See:
>> http://www.emacswiki.org/cgi-bin/emacs/BookmarkExtension
>
>
> Thanks for notification.
>
> Do I understand it correctly?
> - Are firefox bookmarks first imported as emacs bookmarks?

No, that's independant, hit "P" in bookmark menu list (C-x r l) will
show your firefox bookmarks in bookmark interface.

> - And from there you export to org?

No, you create directly a org file with your firefox bookmarks:
M-x bmkext-firefox2org

> - What happens then with the hierarchy that was in firefox? Is it still there?

Yes they come in same order than what there is in bookmarks.html (the
firefox bookmarks).

I really don't know what you want to do exactly with org file, so i
provide a very basic function to make a file like:

,----
| * Firefox Bookmarks
|
| ** My first bookmark
| ** My second bookmark
| ....
`----

Maybe you want to store also bookmarks coming from other browser (e.g
w3m), in this case, i will enhance function to support syncing specific
section. (e.g update Firefox section without modifying w3m section).


NB: As said in precedents posts, Firefox>3 store bookmarks in
places.sqlite.

To enable Firefox autosync places.sqlite with bookmarks.html, you have
to add to user.js:

,----
| user_pref("browser.bookmarks.autoExportHTML", true);
`----

or set this to true in about:config interface (double click).

0 new messages