emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Nikulin <manikulin@gmail.com>
To: mag_dex <mag_dex@o2.pl>, emacs-orgmode@gnu.org
Subject: Re: orgmode-capture-all on macOS
Date: Fri, 1 Dec 2023 22:03:24 +0700	[thread overview]
Message-ID: <b8dd58bf-99cd-4a4d-ad69-94a72a47bb5e@gmail.com> (raw)
In-Reply-To: <8A75CBCC-933F-4108-BC17-E6D990A3D7A9@o2.pl>

On 28/11/2023 06:58, mag_dex wrote:
> A simple hack to right click on selected text and capture it (with URL 
> if this is Safari) to your OrgMode Inbox.

I do not have a mac. I just have looked into the code and I am curious 
why you decided to update org file from a python script directly instead 
of invoking emacs-client? I mean calling something like

     (let ((type (and url
                 (string-match "^\\([a-z]+\\):" url)
                 (match-string 1 url))))
       (org-store-link-props
        :type type
        :link url
        :initial t)
       (org-capture nil key))

with some capture template KEY that contains %[FILE]. It is inspired by 
`org-protocol-capture'.


      reply	other threads:[~2023-12-01 15:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-27 23:58 orgmode-capture-all on macOS mag_dex
2023-12-01 15:03 ` Max Nikulin [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=b8dd58bf-99cd-4a4d-ad69-94a72a47bb5e@gmail.com \
    --to=manikulin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mag_dex@o2.pl \
    /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).