emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Chris Keschnat <chris@catsu.it>
To: emacs-orgmode@gnu.org
Subject: Re: Capture from Firefox to Org-mode
Date: Tue, 09 Jul 2024 17:07:33 +0200	[thread overview]
Message-ID: <871q42bo3u.fsf@catsu.it> (raw)
In-Reply-To: <87r0c2d75g.fsf@k-7.ch> ("Sébastien Gendre"'s message of "Tue, 09 Jul 2024 15:30:51 +0200")

Sébastien Gendre <seb@k-7.ch> writes:

Hi,
I'm not actively using this but I had it configured and just tested that
it works. It might not answer you're questions directly, but I hope it helps.

> How to capture data from a web page to Org-mode ?
>
> * What I need
> I want to be able to capture different kind of information :
> - Article, to read later
> - Book, with all its metadata (title, author, subject, etc)
> - Magazin, to buy later (title, editor, price, etc)
> - IRL event, that I want to go
>
> For each case, different kind of data is needed to be extracted from the
> web page and passed to Org-capture.

This should all be possible.

> * Capture Protocol
>
> I know it exist an org-protocol for capture, but after reading the
> manual (section 17.16.2 The capture protocol), there is something
> I did not understand.
>
> On the URL of the capture protocol, key value pairs can be specified.
> But are they a predefined set of keys, independent to the capture
> template, or are they related to the capture template special words (ex:
> %a) ?
>
> Is it possible, with Org-protocol, to pass data to be stored into org entry
> properties, or an arbitrary string ?

Capturing the selection works.

Sample capture templates:
#+begin_src emacs-lisp
  ("p" "Protocol" entry (file+headline ,(concat my-org-dir "inbox.org") "Inbox")
   "* %^{Title}\nSource: %u, %c\n #+BEGIN_QUOTE\n%i\n#+END_QUOTE\n\n\n%?")

  ("L" "Protocol Link" entry (file+headline ,(concat my-org-dir "inbox.org") "Inbox")
   "* %? [[%:link][%:description]] \nCaptured On: %U")
#+end_src

> * Firefox extension for Org capture
>
> I have found 2 extensions for capturing to Org-mode from Firefox:
>
> - Org Capture (by Kosta):
>   https://addons.mozilla.org/fr/firefox/addon/org-capture/
>
> - org-protocol (by Wojciech Siewierski):
>   https://addons.mozilla.org/fr/firefox/addon/org-protocol/
>
> Which one do you suggest ?

I'm using this one instead.

Extension: https://github.com/Stebalien/org-capture-extension
Image of configured extension: https://0x0.st/XMHN.png

PS:
I had also used this in the past. If you're willing to have a local
python script listening on a port instead of using org-protocol,
it might be an alternative.

https://github.com/karlicoss/grasp


  reply	other threads:[~2024-07-09 15:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-09 13:30 Capture from Firefox to Org-mode Sébastien Gendre
2024-07-09 15:07 ` Chris Keschnat [this message]
2024-07-09 16:45   ` Morgan Willcock
2024-07-11 14:27     ` Max Nikulin
2024-07-11 21:04       ` Sébastien Gendre
2024-07-11 20:59     ` Sébastien Gendre
2024-07-11 20:57   ` Sébastien Gendre
2024-07-22  1:52   ` Robert Weiner
2024-07-11 14:03 ` Ihor Radchenko
2024-07-11 20:55   ` Sébastien Gendre
2024-07-12 11:37     ` Ihor Radchenko
2024-07-12 16:42       ` Sébastien Gendre

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=871q42bo3u.fsf@catsu.it \
    --to=chris@catsu.it \
    --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).