emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Machulis <kyle@nonpolynomial.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: firefox bookmarks to org-mode
Date: Wed, 27 Nov 2013 17:38:54 -0800	[thread overview]
Message-ID: <CAF1EFcdKZEkd7j0E4ZF-pY=PGOE4Xbsc8eGOe0EOTAzE93Ywbg@mail.gmail.com> (raw)
In-Reply-To: <xgzob55jtw4.fsf@hafnfirdingur.hafro.is>

[-- 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 --]

      reply	other threads:[~2013-11-28  1:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-27 23:40 firefox bookmarks to org-mode Julian M. Burgos
2013-11-28  1:38 ` Kyle Machulis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAF1EFcdKZEkd7j0E4ZF-pY=PGOE4Xbsc8eGOe0EOTAzE93Ywbg@mail.gmail.com' \
    --to=kyle@nonpolynomial.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).