From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SKiaC+ErSmOffAAAbAwnHQ (envelope-from ) for ; Sat, 15 Oct 2022 05:41:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0DzEC+ErSmM76wAA9RJhRA (envelope-from ) for ; Sat, 15 Oct 2022 05:41:21 +0200 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 C9FD53D574 for ; Sat, 15 Oct 2022 05:41:20 +0200 (CEST) Received: from localhost ([::1]:55158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojY35-0000B0-DH for larch@yhetil.org; Fri, 14 Oct 2022 23:41:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojY2D-0000Ab-BJ for emacs-orgmode@gnu.org; Fri, 14 Oct 2022 23:40:25 -0400 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:38566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojY2B-0004tf-O1 for emacs-orgmode@gnu.org; Fri, 14 Oct 2022 23:40:25 -0400 Received: by mail-lf1-x129.google.com with SMTP id g7so5157292lfv.5 for ; Fri, 14 Oct 2022 20:40:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=1vYqIKEIAQGLvEcCNc30nFDZE3nQiB2wQ/WljsuOdmA=; b=kONXmBuWNYzEVKBOJXJ8+t38sbuzNKB8NOovV0sE8FBeo9KAq6kTg9x81uAd177pb2 7dJA/LtuXBcw4C8bAWlO7MvwgJpLhMUBYunqeVXqbA1pdEloFZPSYnhUXeDOkp/QjV0Q 7T+gQHacQBoXiBYhgOLw0wPypwyThU0RwEyZWWJ4jLB0Tgcnyyqv9aaZ1j+cm9sxSZ30 lAEoeeZ2e4IWBzAmr+G0vMOcxkGnYnLz9MeFBQmyz8CbLcXgypzeLBist2VeHSAUiAzW Naj7qA9DnC07ifOuqGGnFk+REqtC/km8FAvmwLnEGBUUjSPeVuHk7qf6M2m+3vybLQgm YPRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1vYqIKEIAQGLvEcCNc30nFDZE3nQiB2wQ/WljsuOdmA=; b=3R/xEuw9ixJE8BeXOr8qjeD5YyJNwLr1PlkHVAcVmeam9n3iHeQSd6hHNSaEJjjd8O nQUujbiHb8NUIi//ISDRZSh/gUflnvzVknzHBiSFB8Dre9TBqSkp7vuNY7/CRLfuXhma v1hVBQpRcWwpKO2cMg1rSPSFeSSlNt2z6K7arqgtUhbzehbzbulTlwJO1rXqAUK4+KnM ktuMMbjO7dFlHDLV09Zp6Zi5VpweXYuyBoSRMNwDT6X9fH5au05nghUUaTytC/LdQwW8 ZH5vjp2GyPkGUFp/t7cQgx514MxkmJK1+PiMAKCfW0MACGMTFXCuCz8FIugLC/+oyq/C YFQw== X-Gm-Message-State: ACrzQf33uB/sROvNOmiCCY7UiXXUF7AmvDVV5M8mgaZNCNZBi/FC0Hxo Ox5hASU0gO3Y+o4F4ep7Owc= X-Google-Smtp-Source: AMsMyM6Ugl68vwVYl69ueX0IJzeszcrtZZX4r0R5CB4VkXD6C0RaaZhuMzj3YpofnShdOtbbRnsWSg== X-Received: by 2002:a05:6512:2a98:b0:4a2:d66f:c57c with SMTP id dt24-20020a0565122a9800b004a2d66fc57cmr308931lfb.506.1665805221289; Fri, 14 Oct 2022 20:40:21 -0700 (PDT) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id z15-20020a2eb52f000000b0026e15713edesm633275ljm.9.2022.10.14.20.40.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Oct 2022 20:40:20 -0700 (PDT) Message-ID: Date: Sat, 15 Oct 2022 10:40:18 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: idea for capture anywhere in x To: Samuel Wales Cc: Org Mode List References: <87tuw31iub.fsf@mm.st> <87r0zelo7e.fsf@posteo.net> Content-Language: en-US From: Max Nikulin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=manikulin@gmail.com; helo=mail-lf1-x129.google.com X-Spam_score_int: -49 X-Spam_score: -5.0 X-Spam_bar: ----- X-Spam_report: (-5.0 / 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, NICE_REPLY_A=-2.856, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665805280; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=1vYqIKEIAQGLvEcCNc30nFDZE3nQiB2wQ/WljsuOdmA=; b=BXh6WmAh+DJGd8HovZ/SYSFu5kprXcGlvPIcmpErQiFHZUpdIuYKw+LVR0kDE4b9hBTxI9 NcMaRFWtXvz1wH6N+Iz6j5zoXFghy0QmcipdHf1YXk4CgOpRWadJAenh4U4DaYD0M/ha7r StFr/pJjdUSydnxZErZxQCuMk6HcHBqJ9Ou0F/EjxAejnF40TEALZrtxTAtbyl+saff1Xd wRTBpYdHt5u3EGl2vZgd1SB3znh5ME98JRCuUB2ykj4T0mBJXGjwGfrQQ7vO+hRGFDdeY/ fbWorSi0tdJ9YvJvl2Pi7F7rqhG8g0DizF/x49aeJ0orZuFHi9APaMol5GZvug== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665805280; a=rsa-sha256; cv=none; b=e8i8IreS54gu0NY5qddhVUrOKvRyCiz4tkn3T+zdn4u0YbWIeF8+codzLmVWfVviYTHANr ILsiMMAv4X7GYLPN7pk25CyKFH8SEZYIWckaUQymKUsqX0rZua/RsIk97tf7iTnKNSpsbM ACVlhGMjjAjx6BwvhvUFhEwsDrwEOy60t/IUHMacSn3eBwXtQJTgvuHV8zMwLydrUnotzr HT8zncDC81y1FlfmHErfgxskAYLGZh5EEa5dcR8MVcJcnt0alqmREiRstio2WwHiQpIofV HXSxbsDk7vHB3+qWkv+X0fJZZRyixHBmr5MaeztFUGeGMbxgSNU/399yqUTx6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=kONXmBuW; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: 6.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=kONXmBuW; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: C9FD53D574 X-Spam-Score: 6.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: MOXcuWQ4hYj/ On 12/10/2022 08:09, Samuel Wales wrote: > > the thread is about doing the same thing, or as much as possible of > it, more generally in x. Samuel, I assume that you are quite happy with org-capture Firefox extension. Have you managed to setup capturing text from other applications? From my point of view all necessary moving parts have been discussed in this or later threads. Have you assembled them to a working solution suitable for you? - Window manager menu item and shortcut calling emacsclient --eval '(org-capture nil "c")' - Capture template that fetches X PRIMARY_SELECTION or CLIPBOARD. - Optionally try to get formatted text and convert it from HTML to Org using pandoc. - Perhaps try to get window title of the active application. What I have not tried yet is if drag&drop API may provide more details than X selection, but I am unsure if such workflow is suitable for you. Probably it is better to discuss code in the context of particular applications. Despite you wish a general approach, amount of information exposed by applications may vary. Some code may depend on Emacs version an I am unsure which one you are using currently.