[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: orgmode-capture-all on macOS

From: Max Nikulin
Subject: Re: orgmode-capture-all on macOS
Date: Fri, 1 Dec 2023 22:03:24 +0700
User-agent: Mozilla Thunderbird

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))))
       :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 via email to

[Prev in Thread] Current Thread [Next in Thread]