From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2FlSHIoS8Gb6wQAAqHPOHw:P1 (envelope-from ) for ; Sun, 22 Sep 2024 12:50:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 2FlSHIoS8Gb6wQAAqHPOHw (envelope-from ) for ; Sun, 22 Sep 2024 14:50:18 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PJJwR8Se; 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=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1727009418; 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=VQobeLJoM+I6XouBMJvKAnyWrNRKq+DqxBp6N7SQVhs=; b=QhOc6yYy37MMmmrh4Ep0YkAoP7DVtgSvokhw66Fy8aThrOES5J500bXY2lpNoeXvEeD4MM aAUweTwHlqGJDyS+6OZ+iz3wPFmUvfZBnORcb8H8USWhJRYKEliXauQ/tbMRIz9kVE/Yia gWkzbLLnOBF3QooKaQuq64mZzZ2SUnGUIw1+XFv5h4etDLxDTZVT9FfGe7yKJQ1EZFTIai x3TB7DADqXvX79T9KiMlY8TRwi5IZOB1edHVdPoP6cssLvzq2y3+5LezEBUMmSqmecqmSL jb63TxYtKmfE/eBcxVxrL2kpxLoTS99Y1iBrJ8EHKpwZfrmmqwtfy1Wm/NpNzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PJJwR8Se; 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=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727009418; a=rsa-sha256; cv=none; b=NEcFS61unKW9/9HhmfiB9u4HrgfTwDwyW3id9cRx2FmlhA6bqcAoRG1PvZDPY25c8WpDtU w2KEQJs+Y7sSo76U+YV2N/k5Z7bYvbnCWwb0NZ2GmlhISohXNMr7UkaxPsEduqVxp3lNBT RCdxgm/69Q3S/SPZ5J5hDZj3UJ6O7Ll5/WQ9j0ir18jL27oWCfMXRnPLYjgCOCvxa7f6ci lgPXIkDk5pvkCj8Qv991Uxk7TxEBN5o8YFuEZrej3JUFlkpakYw2qBcCj9lm0Xo8E92N33 NjBq6UOYMjgkk0t0lYRHF/H2ouJpkdbcU/iM8XEgmiygCJNtxnu4oSfWIJr4Gg== 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 A2C5A6A1D for ; Sun, 22 Sep 2024 14:50:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssM1d-0004On-9X; Sun, 22 Sep 2024 08:49:17 -0400 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 1ssM1b-0004Oc-14 for emacs-orgmode@gnu.org; Sun, 22 Sep 2024 08:49:15 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ssM1X-0008At-N7 for emacs-orgmode@gnu.org; Sun, 22 Sep 2024 08:49:14 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C7B69240027 for ; Sun, 22 Sep 2024 14:49:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1727009348; bh=SnCyyvMFdTNZFGCxtB16YD8DR9ZQ0CwK7F8I/gvyhoc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=PJJwR8Se2xSr4W+bj1fOxWhnATUT94dtYA9JswRrg1b+2zfGJ9ZfdzaN3FincSHHk ovQjnEoOQpF0dWaJxQvHPWe/jpKeNcmCrTBg6RUlwBd0+4AymxbICWm/yA01qIqDN+ iWzc5Ptcbsa4/V7p2I3v6R+Ieb/IaJLyjh1Qh7/useUGTpqcKk5ec3DIXeOXTByP1Y hsu6wPNEmpsWqgP8v3t1r0yFfCuKPfPCqbGTa/7pyLfDorrHpBzFzu2D7cLiEYCoMH 3IyFwoi0Mlyy2l+nkAa6Q/pAD6J1nrKC1jn3Sgc/GmnrQmlIiJh8TB0TT/sTd8lGj5 Ln++QBayZ88JQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XBQtD1GpDz9rxF; Sun, 22 Sep 2024 14:49:08 +0200 (CEST) From: Ihor Radchenko To: =?utf-8?Q?Tor-bj=C3=B6rn?= Claesson Cc: emacs-orgmode@gnu.org Subject: Re: Org-cite: Replace basic follow-processor with transient menu? In-Reply-To: <877cbamq2q.fsf@gmail.com> References: <8734m28l9a.fsf@gmail.com> <874j6h3rw8.fsf@localhost> <877cbamq2q.fsf@gmail.com> Date: Sun, 22 Sep 2024 12:50:44 +0000 Message-ID: <87cykvrgwr.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.31 X-Spam-Score: -4.31 X-Migadu-Queue-Id: A2C5A6A1D X-Migadu-Scanner: mx10.migadu.com X-TUID: jctnP4MiNUp9 Tor-bj=C3=B6rn Claesson writes: >> I do think that having extended menus for org-open-at-point could be >> useful. Not by default, but, for example, with a prefix argument. >> > This is a good point, but of much larger scope than just replacing the > follower of the basic citation-processor. No problem. But my idea may still be used - without prefix argument, just move to citation record; with prefix argument - invoke the menu. Follow processors are provided with prefix argument passed to `org-open-at-point': (defun org-cite-basic-goto (datum _)... The "_" argument is the currently ignored prefix argument. > Maybe it is a good idea to start small, for example provide > 1. Open bibtex-entry > 2. Copy DOI > 3. Opening DOI/ISBN/URL links in browser > > Further functionality can easily be added per user, and good solutions > incorporated by default in the future? +1. Ideally, these options should simply be a customization. > I have played some more with this - would it be a good idea to include > macros to get citekey, datum and _? I would be happy to clean this up a > bit, add DOI/ISBN/URL-functionality, documentation and prepare a bug repo= rt/patch. > > (defmacro org-cite-basic-follow--citekey () > '(org-element-property :key (car (oref (transient-prefix-object) scope)= ))) > > (defmacro org-cite-basic-follow--datum () > '(car (oref (transient-prefix-object) scope))) > > (defmacro org-cite-basic-follow--_ () > '(cadr (oref (transient-prefix-object) scope))) > > (transient-define-prefix org-cite-basic-follow (datum _) > "How should we follow references?" > [["Open" > ("b" "bibliography entry" > (lambda () > (interactive) > (org-cite-basic-goto > (org-cite-basic-follow--datum) > (org-cite-basic-follow--_))))] This looks way too complicated. Is there an easier way to access transient prefix command arguments from suffixes? Maybe something provided by transient itself? --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at