emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* firefox bookmarks to org-mode
@ 2013-11-27 23:40 Julian M. Burgos
  2013-11-28  1:38 ` Kyle Machulis
  0 siblings, 1 reply; 2+ messages in thread
From: Julian M. Burgos @ 2013-11-27 23:40 UTC (permalink / raw)
  To: emacs-orgmode

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óknastofnun/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: julian@hafro.is

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: firefox bookmarks to org-mode
  2013-11-27 23:40 firefox bookmarks to org-mode Julian M. Burgos
@ 2013-11-28  1:38 ` Kyle Machulis
  0 siblings, 0 replies; 2+ messages in thread
From: Kyle Machulis @ 2013-11-28  1:38 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1712 bytes --]

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 = window.content;
  let d  = ev.target.ownerDocument;

location.href='org-protocol://capture://w/'+encodeURIComponent(wc.location.href)+'/'+encodeURIComponent(d.title)+'/'+encodeURIComponent(window.getSelection());
  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 <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?  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óknastofnun/Marine Research Institute
> Skúlagata 4, 121 Reykjavík, Iceland
> Sími/Telephone : +354-5752037
> Bréfsími/Telefax:  +354-5752001
> Netfang/Email: julian@hafro.is
>
>

[-- Attachment #2: Type: text/html, Size: 2607 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-28  1:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-27 23:40 firefox bookmarks to org-mode Julian M. Burgos
2013-11-28  1:38 ` Kyle Machulis

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).