From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id w5ssI30IWF/0DgAA0tVLHw (envelope-from ) for ; Tue, 08 Sep 2020 22:41:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id agPeHn0IWF9kZQAAbx9fmQ (envelope-from ) for ; Tue, 08 Sep 2020 22:41:01 +0000 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 1D0F99404CA for ; Tue, 8 Sep 2020 22:41:01 +0000 (UTC) Received: from localhost ([::1]:40976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFmIO-0002sF-4h for larch@yhetil.org; Tue, 08 Sep 2020 18:41:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFmI3-0002s2-3C for emacs-orgmode@gnu.org; Tue, 08 Sep 2020 18:40:39 -0400 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:43163) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFmI1-0007kx-Dk for emacs-orgmode@gnu.org; Tue, 08 Sep 2020 18:40:38 -0400 Received: by mail-pf1-x442.google.com with SMTP id f18so372416pfa.10 for ; Tue, 08 Sep 2020 15:40:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Ma/yjYObnZst54UA0Y40CY6/C1/Kn8CO5T/nRrheONg=; b=aKPgrHUt3iZFJtBo01G79C1lxDVrE9tgbB2S7eRwb4I2oG1lK5iX+T32ARbHR9hTGx fnxsQcCNnZW49WC6grDTGcr2CO3uQMKJrcP71+Lu1h5MlIy9ZJSYNkl3CgjIAunPjxAC MvsM5OqDlCiCKzA37Z8Gp0orQku+wZswU4HbKJjP9jAAnr6FOQr8ZHJWXFaLTqIdmqde Zwie01qvrsnYa6GJ4/LPSnfJl+yvdUpaBEhCpOTaubVkQ38VSIF0o9wpLpZW7KNrvPTY xHU5/EwASwajqlnlre4kM3BiYvwzPUeu+lp0RmLs08XIHrm8u8SmD9tYgB2B+d1Zb5Hz XuLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Ma/yjYObnZst54UA0Y40CY6/C1/Kn8CO5T/nRrheONg=; b=bjOy9RreNXyrO4vUmTTowdGwn0nxw/DFwbTGvVHBe75R4zF3ipnaTf9EtCjDF4tCQB fd6wwWA6SPE4Jt61L4mV69TV0w7jQbwsk8292Uf80fgJvtg5hn1EVo6uvgyj2OeJJUGB caZ4OZpkh75lizcbvCU8Zl8HuNsCml/t1nQWLudazIRbl97aKvkTjVdxQRkjLPQ6viNa QP/wgl2eHMgrJnRcFV+XbYXK8r+KjKkuINEOcYpErbpB4PZiuuFhxiMeBVIeXN+1SBPi FvJ3JAFZsiyfYlQYKptLu3ALIwM96dDwJhWhEHP7DmGGSz9tZlWqSoG7NWzABdxHk0IM Xfjg== X-Gm-Message-State: AOAM532Z3hyT7NtftCkAlYIbmVYVcLYY0hXfxWfDle2e5lrpvKiNe8YY cQNxG9t0YuVDUq7m0Po1B7XBWPvpMAoHMpg1/ec= X-Google-Smtp-Source: ABdhPJz+vi+/pvi3n9W6LnR5d3syX1cYGpy+VU0haMieja1x6HTaEMAWLKWOlz0z9zivmyhxwMdhPpmqj47r0zSxsZY= X-Received: by 2002:a17:902:9692:: with SMTP id n18mr832076plp.110.1599604835892; Tue, 08 Sep 2020 15:40:35 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6a10:8371:0:0:0:0 with HTTP; Tue, 8 Sep 2020 15:40:35 -0700 (PDT) In-Reply-To: References: <87sgbsq2t5.fsf@gmail.com> From: Samuel Wales Date: Tue, 8 Sep 2020 15:40:35 -0700 Message-ID: Subject: Re: idea for capture anywhere in x To: Maxim Nikulin Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::442; envelope-from=samologist@gmail.com; helo=mail-pf1-x442.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=aKPgrHUt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: DGd78YV740y/ On 9/7/20, Maxim Nikulin wrote: > 08.09.2020 12:05, Samuel Wales wrote: >> well for a non-emacs application, i want to select text and capture >> using wm menu. > > Do you mean a tiny tool that takes content of X primary selection or > clipboard and passes it to emacs-client org-protocol argument? maybe. guessing probably. i want it to take contents of x primary selection or clipboard and get it into emacs using a capture template item. whether this requries oprg-protocl, idk. so basically fluxbox menu calls some trivial command which invokes capoture on my already-existing capture template such as the one that i already use for hte firefox org-capture extension to use. > Implementation should have a few lines of code and should allow you to > bind it to window manager menu or hotkeys. On the other hand I do not > see great difference from pasting text directly to emacs. Customization > glue (primary selection/clipboard, name of template, etc.) is thicker > than code that do the actual job. > > The harder part is extracting of formatted text (that could be > application specific) and converting it to org markup. I had a look > into emacs sources and did not find extension points to obtain > application-specific format, so external tool could provide some benefit > (e.g. capturing link with description from libreoffice). while such features would be great, my needs are modest i think. i would be delighted with just plain text. but if possible i'd want it to be inserted as utf-8 even if the terminal or deluge or whatever uses some different encoding. > > > -- The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html