From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Machulis Subject: Re: firefox bookmarks to org-mode Date: Wed, 27 Nov 2013 17:38:54 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b6d95eed0894804ec32c62e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlqZI-00021n-IV for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 20:39:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlqZE-0008MW-8k for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 20:39:00 -0500 Received: from mail-vb0-f41.google.com ([209.85.212.41]:38672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlqZE-0008Ll-3G for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 20:38:56 -0500 Received: by mail-vb0-f41.google.com with SMTP id w5so5662608vbf.28 for ; Wed, 27 Nov 2013 17:38:55 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --047d7b6d95eed0894804ec32c62e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable While it's been a while since I've done this, I did get it working at least once, in a roundable way. I had a setup for bookmarking via org-protocol and keysnail (http://github.com/mooz/keysnail). I set up org-protocol in firefox like the documentation said (though I remember it being REALLY finnicky, but this was well over a year ago so I can't remember exactly what the issue was). I made an org-capture template bound to w (hence the /w/ in the URL below), that would take the bookmark name and URL. The keysnail setup looked like: key.setGlobalKey(['C-c', 's', 'l'], function (ev, arg) { let wc =3D window.content; let d =3D ev.target.ownerDocument; location.href=3D'org-protocol://capture://w/'+encodeURIComponent(wc.locatio= n.href)+'/'+encodeURIComponent(d.title)+'/'+encodeURIComponent(window.getSe= lection()); display.echoStatusBar("Saved " + d.title + " to org links buffer"); }, 'Save to org-mode capture', true); So, not the most direct route, but it did the job. These days, I just use pinboard. Might be nice to make a pinboard to org exporter though. :) On Wed, Nov 27, 2013 at 3:40 PM, Julian M. Burgos wrote: > Dear list, > > Could anyone give me some pointers on a set-up to get links from firefox > to an org-mode file? I would like to press a key combination in firefox > (say Ctrl-D) and have the web address of the site stored as an entry in > some org-mode file. > Many thanks, > > Julian > > > -- > Julian Mariano Burgos, PhD > Hafranns=F3knastofnun/Marine Research Institute > Sk=FAlagata 4, 121 Reykjav=EDk, Iceland > S=EDmi/Telephone : +354-5752037 > Br=E9fs=EDmi/Telefax: +354-5752001 > Netfang/Email: julian@hafro.is > > --047d7b6d95eed0894804ec32c62e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
While it's been a while since I've done = this, I did get it=20 working at least once, in a roundable way. I had a setup for bookmarking via org-protocol and keysnail (http://github.com/mooz/keysnail).

I set up org-protocol in firefox like the documentation=20 said (though I remember it being REALLY finnicky, but this was well over a year ago so I can't remember exactly what the issue was). I made an= =20 org-capture template bound to w (hence the /w/ in the URL below), that=20 would take the bookmark name and URL.

The keysnail setup looked like:

key.setGlobalKey(['C-c= ', 's', 'l'], function (ev, arg) {
=A0 let wc =3D wi= ndow.content;
=A0 let d=A0 =3D ev.target.ownerDocument;
=A0 location= .href=3D'org-protocol://capture://w/'+encodeURIComponent(wc.locatio= n.href)+'/'+encodeURIComponent(d.title)+'/'+encodeURICompon= ent(window.getSelection());
=A0 display.echoStatusBar("Saved " + d.title + " to org link= s buffer");
}, 'Save to org-mode capture', true);

So, not the most direct route, but it did the job. These days, I just use=20 pinboard. Might be nice to make a pinboard to org exporter though. :)


On Wed, Nov 27, 2013 at 3:40 PM, Julian = M. Burgos <julian@hafro.is> wrote:
Dear list,

Could anyone give me some pointers on a set-up to get links from firefox to an org-mode file? =A0I would like to press a key combination in firefox<= br> (say Ctrl-D) and have the web address of the site stored as an entry in
some org-mode file.
Many thanks,

Julian


--
Julian Mariano Burgos, PhD
Hafranns=F3knastofnun/Marine Research Institute
Sk=FAlagata 4, 121 Reykjav=EDk, Iceland
S=EDmi/Telephone : +35= 4-5752037
Br=E9fs=EDmi/Telefax: =A0+354-5752001
Netfang/Email: julian@hafro.is


--047d7b6d95eed0894804ec32c62e--