From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yFGkCk6uomJzAgAAbAwnHQ (envelope-from ) for ; Fri, 10 Jun 2022 04:37:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SIZ8Ck6uomJdqwAAauVa8A (envelope-from ) for ; Fri, 10 Jun 2022 04:37:02 +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 B305A28504 for ; Fri, 10 Jun 2022 04:37:00 +0200 (CEST) Received: from localhost ([::1]:40518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzUWA-0001Qf-Oo for larch@yhetil.org; Thu, 09 Jun 2022 22:36:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzUVD-0001Pi-0Q for emacs-orgmode@gnu.org; Thu, 09 Jun 2022 22:35:59 -0400 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:45910) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzUVB-0002x2-EF for emacs-orgmode@gnu.org; Thu, 09 Jun 2022 22:35:58 -0400 Received: by mail-ed1-x530.google.com with SMTP id d14so7920516eda.12 for ; Thu, 09 Jun 2022 19:35:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7AP9tRdW8Uz+p+Yj+21tvY2gcDu4iHgiJdOmU7wcDCE=; b=GhtO40a5H5JB5aM97NSFWmKH7m5PANHxyNCVtkMJc9qSoV29fubRVA1v35t4K0TW4g vlM6gyy0q0dGcoEZdxztSXLEVSFOsi5yy8Ehf7RQFfEzfUl0Qjf558iSt52DY8zQ+5a9 mh/D4VRyt9ngZsybLYr0Tnk2AK+Oa2bjCw8NFhoQKA1pu8G3xj6mGe28jtHS6bEmFAcu dyToQRiyspMGw+d5zmacUbf6zc+argTcw9bRUvy+B+ee2i6PlHenPpHJHajCR5ly3mgY tRpouhg+CVO61jd9tSFeFY66Y7iC9dW37L7TNt9bJa+1pAh+swgfV7eLianXZ7d6kIBJ ZrAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7AP9tRdW8Uz+p+Yj+21tvY2gcDu4iHgiJdOmU7wcDCE=; b=cQZoWgU97u2HOcA9lm7DZbfUyw03KHS7Zs5tVBDo/AbcEoIERRJcALVfuuWB70bpYP Ub96VsY9gMFZhhSFnFkCBxsYQIsb8NlNz2aP3fVt7D9LtHYXHyVr5K0aaXhULqeID9/c UunwefWvmomNzg9FrFwJARklKeENs3paLDhT4iaw3eqIjq1aqcHgM9ltvRJp2BNNdgb0 tj1FrO6q1/QZHeG+NFJC1IhjEczbXzF/dWeAKAXb+4TGolDn92jFHgVYe1LkYV2VNwIt myD3RlfiH8V6tyJayfyOn5zXQfPEzsSqMYLWeNH0jTpD32svXNxgiXkFdSg6s4UKS2j8 s2cw== X-Gm-Message-State: AOAM531AjGi+L0DTPGkPAehfr5pKJw9rrllNwxvKUHXBqn8pjjVr7tln ynnm/aianAs2xL9UfyMgW05fmva66w7vBpEQC1A= X-Google-Smtp-Source: ABdhPJxUT1foPV3tnaytXDc6gFj6ygmUFDCs1vpJ1jtUFVikgNasEoULChsULPJTHLpA63IlYe9tXh4fPBRKWd+GvGs= X-Received: by 2002:a05:6402:190b:b0:431:3231:fce6 with SMTP id e11-20020a056402190b00b004313231fce6mr34117086edz.127.1654828553430; Thu, 09 Jun 2022 19:35:53 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:906:478e:b0:712:12f6:242d with HTTP; Thu, 9 Jun 2022 19:35:52 -0700 (PDT) In-Reply-To: <87tuw31iub.fsf@mm.st> References: <87sgbsq2t5.fsf@gmail.com> <87tuw31iub.fsf@mm.st> From: Samuel Wales Date: Thu, 9 Jun 2022 19:35:52 -0700 Message-ID: Subject: Re: idea for capture anywhere in x To: Nick Econopouly Cc: Maxim Nikulin , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=samologist@gmail.com; helo=mail-ed1-x530.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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654828620; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7AP9tRdW8Uz+p+Yj+21tvY2gcDu4iHgiJdOmU7wcDCE=; b=CjblpF1ByTe65UMUTU6n8kW/5306hVadkL4byyfwZzvqV06dIDZ8zlGvS5xijJbjsTD5bo cHZZbQCJHPtu56qEnes6CPoWYuLQsipz5ax9CUYQITKhFD36M2JzhR5E1Unckk3fI1c2Rv vtrlY2q8xqd2+HwV1KbMq2ZUibnR5DVuIIZCCNs84Jta3GcKx+8SPpBuzGpiP85z/SGhR3 OY0tfKTafrhiFQCVmEJLUJl6xGwu3yd+V2bVEvsx05rF2q71WkOx0yafCjLySnekdnMYae xRqKt1spj+7T7fYWR+sXrP5YIxlfXI2mjOEdAtJ6M57KvX1QaUzmK1M9yKvFxw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654828620; a=rsa-sha256; cv=none; b=adKnR1xb1gPacoXLTtdCFCaEGXDI8j31y1EHF5lWzhMr2ZNSEgohMUA7gjW9rEVwy1IMWY Vt2pmmEVIiYsJKybTX7gS2+N6NKppcSjTiOax3uWb82b387sfcXVbWujjJO2QY/39x7I41 CJ/knedkFKElYf2j53JDOZRizVsmrTkMackAvScf21k552c7wMDRG0m1EIpfArOlBtxC1R s90CGwwniUxMO/wxT00jVDEU1tvwUSFVv2FJ4gGfNrGiwuvt5Yq7PYrIkP8YhPgaIRIbeR hpWky2AFQmg0sywWHTURPr5PF/PlHlaNrtqkbv+Ly7+j7fnflu3966tuGW1x0w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GhtO40a5; dmarc=pass (policy=none) header.from=gmail.com; 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: -4.29 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GhtO40a5; dmarc=pass (policy=none) header.from=gmail.com; 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: B305A28504 X-Spam-Score: -4.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3qwFapgCW9NS with the org capture firefox extension broken, i recalled this old thread, thinking it might be a fix, and i think i understand the issue. so i thought i would summarize here in this one post. i think i was not clear in this thread in a few places. apologies for that. 1. [current need, urgent] i want to select text with mouse in firefox, then have plain text and url save to an org entry. this would then replace the need for the firefox org-capture extension. it seems like emacsclient calling org-capture can grab the selected /text/. [presumably in a capture template via a % format or via lisp that calls gui-get-selection or something like that.] a cli command like this sounds good. but saving the /url/ seems not possible in a cli command because it will not have access to firefox's current url. otoh, if there is such a thing as "a cli command that will ask firefox for its current url" then it is possible. if such a solution is possible then i can make it controllable completely by mouse [i often cannot use keyboard] merely by adding the cli command [such as an emacsclient call] to my fluxbox menu. that would be a complete solution. 2. in this thread i thought it would also be great to select text with mouse /in any running application in x/, then have selection be saved to an org entry. this might be possible with the above possible solution, minus the url issue. i can maybe work around the /firefox/ url issue by manually selecting the url in the url bar after selecting text. cli command creates second entry in org; i clean up manually in emacs later. kind of dumb but maybe will work. does this sound like a sensible thing to try to do to work around the fact that the org capture extension is broken? i like the idea that it will maybe be robust to firefox changes and doesn't require me to yet again try to figure out org-protocol. [i never got org protocol to work in firefox. which is why i liked the org capture extension.]