From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 2DfyJf71aWWPfwAA9RJhRA:P1 (envelope-from ) for ; Fri, 01 Dec 2023 16:04:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2DfyJf71aWWPfwAA9RJhRA (envelope-from ) for ; Fri, 01 Dec 2023 16:04:30 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7CFE0164A9 for ; Fri, 1 Dec 2023 16:04:30 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Oy9VxnTN; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701443070; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=42pQqohrF+z8IAJSLEpLmFLuzx3X6iCqkfjcbZc4VeI=; b=MZhBd2WLhGEDgY45FaQiYuOusiapqGHCw5N5dCZO7XgQBCBfMNsGiM1U2FYEe/JJuWSo+X xD+gYkWkU29kFoIE5mc6aBzCk52kY3pbmWjzJ2oOOyQCLdrB7c5+F0qRVk41ql1HID8doK BwNs03z8z5TsJREpPOWbi2vvmhOrn136TwAX2OB4WELkW/WnvlhP3A4E9+4BCCVLNi4l5N G2YtvMZFwKJ5+PDE2ds5qFL4ouKI5KspnMTQ5hjUO7x0wPTioqfn/ILVDLhgXnYjryHiaD nQta7L5K1JfwsLmL+dFRqYOi2lSWNHhfzgV2kqvltxPWe5JalC95z6glf8RQtA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Oy9VxnTN; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701443070; a=rsa-sha256; cv=none; b=rb/mssckQiKjo3ko2O5sDSxtO+jDEtqhPVBDtXLysS6x1ESA7Fp8kB3mAg6vi/fkxExOBk B8jjQ3w31wgde0jV8NxzJoaoqwwTrk2zlyzRHky613/jEO6abYjmyLdzOAQPDZmJOXTdac njnH6OgGwLXhl6WOxa64jiY9Twg9eO/6GckTkG+79jBIxYH+IvV2RJYgmPYzs95oxCdzcC oYVzFX16buVMl1aISPtSLP2D66Nu2/Ua7OsXoplRGmfeqzxPCuDxGz9TTSh/FBG2c41bOJ 2GXTMC/1ncn9HWC3edh+BPBa7Jr4V6to6PLyQAxemHpe28fdPtjCRfYwUNpc0Q== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r953I-0002o6-1Z; Fri, 01 Dec 2023 10:03:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r953D-0002nV-6G for emacs-orgmode@gnu.org; Fri, 01 Dec 2023 10:03:31 -0500 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r953B-000070-HE for emacs-orgmode@gnu.org; Fri, 01 Dec 2023 10:03:30 -0500 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2c9d3aad61fso21559071fa.2 for ; Fri, 01 Dec 2023 07:03:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701443006; x=1702047806; darn=gnu.org; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=42pQqohrF+z8IAJSLEpLmFLuzx3X6iCqkfjcbZc4VeI=; b=Oy9VxnTN7R6WnVTaGJjyUDenirmzO47hfwuU4ysnrkXNOfztDsA8UR8YdXTmW0wBuj h0LlC88GnQwUR2ziMl5RRFPXZEKs2OdtyxU0VW+4Jjw7Qr0xikpbgs2CUD1MKDp37wDD jIfXeI0ccnfQ9Lt1pcgykcUfnOTuEyD3c7Nt1OIudwN0eVIm6rjr4nSYoM1cbtf6pPEh T2XkJhxApAwYDYbdnvyesmFpNjLBpUuIhFEJVpZDJGmJxTjo0tqHjTQ+dvbYiLY0Q/M4 20mYNuLEipDuMrvBdOJbgQYem26Visjv4IxM5+r9oudjj185dPqCNbsp1dNFqA9sLc6L LAwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701443006; x=1702047806; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=42pQqohrF+z8IAJSLEpLmFLuzx3X6iCqkfjcbZc4VeI=; b=dQyiNdfD6Qj7OaMQA+wX62GxdFuGDdmr60+xjc/pa6zQXmTMzMXh1KjL6eVEpXziL4 jqEzlpo1+25OYPFyleRN5k4YxXmNB1Lkz/fKZgVp4CzXV7msF+L07z3Na1CQNku0+M6X Rw+um+ouMWr0ZcaK/iXeTeO5XKGb3sLa1ryRSNJAHymFtesLm/k0olnAcqH+W90iXGgj gvQ/RD/eLaoEgLIsT42Ql0Io7u3/SsmSaur0rqj6UwCqfD5Quj3f0jZtY3hFblKm1bwq FjOCtEiwhtklc43oQ7n/Wy3zJB0Xa5g7xV1b6UqNqTkwzsDSA604BesiZiWDF32W9aKM CepA== X-Gm-Message-State: AOJu0Yx4prqVEHZLUuSbKfusFFoSlWJ4GIjJpa5/X3GnibklsqclfOD+ A5mqyMq9ph1K7x0ZBaxACPM= X-Google-Smtp-Source: AGHT+IEv75jFks2I4ay54pAJ77hRssIHB5WQ5i6t3/v+BVI5+1bBGLf6K8sx+supUb/akTvjfa905w== X-Received: by 2002:a2e:9083:0:b0:2c9:d872:e7a3 with SMTP id l3-20020a2e9083000000b002c9d872e7a3mr883073ljg.90.1701443006001; Fri, 01 Dec 2023 07:03:26 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id v25-20020a2e9259000000b002c9ba8a47cesm439290ljg.92.2023.12.01.07.03.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Dec 2023 07:03:25 -0800 (PST) Message-ID: Date: Fri, 1 Dec 2023 22:03:24 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: orgmode-capture-all on macOS Content-Language: en-US, ru-RU To: mag_dex , emacs-orgmode@gnu.org References: <8A75CBCC-933F-4108-BC17-E6D990A3D7A9@o2.pl> From: Max Nikulin Mail-Followup-To: mag_dex , emacs-orgmode@gnu.org In-Reply-To: <8A75CBCC-933F-4108-BC17-E6D990A3D7A9@o2.pl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::22c; envelope-from=manikulin@gmail.com; helo=mail-lj1-x22c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 3.18 X-Spam-Score: 3.18 X-Migadu-Queue-Id: 7CFE0164A9 X-Migadu-Scanner: mx12.migadu.com X-TUID: Us/bbuJKahxR 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'.