From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uD/BD9NrIGdDoAAA62LTzQ:P1 (envelope-from ) for ; Tue, 29 Oct 2024 05:00:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id uD/BD9NrIGdDoAAA62LTzQ (envelope-from ) for ; Tue, 29 Oct 2024 06:00:03 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=lzUJCF5K; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730178003; a=rsa-sha256; cv=none; b=njgOhr24sCn9rVXRlznbLNbqUefadUh7XP8/waaUOtANPuEfA8Ls8u90v907Dnz67WwbQI T2WhajgbsBasx0RKMkR+7rtm4IcHxI1hlQn0ipAYsAkC61nLmmL34l2cp5B6I7EDvsYGvo fc2ns+RwWzH+pw8sOFBmElAMg7OQ8lGO/YkeO6FBnTmfZDEsUj01hPv9chCpfSoPby2mzi T1tU3NATMfsR76MQhlVwrtX4fQWV+MKeTaIO19RKRFKC5AbJzLQ19u7R4X6ShCYJ5hVW6D Ta9f8ILuOFUACscGhTZM15wSMvmehrhyg6WokYX7O3LSP1m6rylXvzHVuHhfEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=lzUJCF5K; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730178003; 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=dDAyacj9ymcfNSwnk9/R93yyuizQR3/e354EgDAAUO4=; b=Rjqdv7XnUP5ynyM232qWgeg+4r009krR1a7nqZM5SeLELa58ozj9ixQJzBLR+XKE3kIAOK 0Cz7xu3+cmcODVHCKL+e/YgpHG6eCg2e6Z0Z+bWY2ZGLhNgdaDpZRqTj4DqCdNsi9S8vhn S8TRDTkC+qLaJ6fwBHd4O0Y8cEDj/bXEtavtq0llK/qBCeU69OQOX7dnse5fD62x820fYL /P87Jw47W0ntz4s5loX6qROUa6JEUQ6CyKtOVMo6nnQjnykFUf1EukwP22Lvs8704XSfG8 ok3ivhiGEWJy+YP1GZ3gU8/aLkeOrpK190dtTq7UIZJR4U3qxs+KirmBcTz5AA== 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 E749A8929E for ; Tue, 29 Oct 2024 06:00:02 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5eK9-0002io-Pu; Tue, 29 Oct 2024 00:59:22 -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 1t5eJz-0002hr-09 for emacs-orgmode@gnu.org; Tue, 29 Oct 2024 00:59:12 -0400 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t5eJv-0008Kj-Qw for emacs-orgmode@gnu.org; Tue, 29 Oct 2024 00:59:09 -0400 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a7aa086b077so631388366b.0 for ; Mon, 28 Oct 2024 21:59:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730177945; x=1730782745; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dDAyacj9ymcfNSwnk9/R93yyuizQR3/e354EgDAAUO4=; b=lzUJCF5KhHv63VzYu3/7dP6gBoPmch9gmMrglZVf/Dq3uomaanTrTvQ2AfRRD6oNlC UB2hmofUfBa6SAuCTv/Lue4X7SccUhdLuUQR+n8ZjB9isvurDPDJpJO8Y9XjMMkjTh1U u8zvQG7g/G/RD0/Of26HpfMVf93IJEPukGLK8js0d+Ss/PbtpspLA8Ki0WIlmvJvkhI8 q8ULpEdFdRYhc+d95MVCVDKb+2gSWXDBblci/wyUDhOOcdPjWdv4DhElqAaC3oE/Nfl4 cEH8ZKNfVXblz9fixLYC/PkmG/LFdXaIV+vHvj5WABPaksxzdXZNm7k2xd0B+m5ceGBb 4z1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730177945; x=1730782745; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dDAyacj9ymcfNSwnk9/R93yyuizQR3/e354EgDAAUO4=; b=VZo001ha8Trp49wRREEzSyU5HKikPs53cizVnjq0/TMjYh/xaWTKSrHGWa2WsHRXLQ BFYIH+o5xNhY1lhGWGOTtYLs6R1+t75Hn4tGPwPdOrTpB6pnn311RbPgiE8oftGaXjgX uLs+3eDBXFsbBjEgoFgKDYQFVq5JepsSF+wj+3G9soG+7kh2VFNM69MLZZ2Gs6CSTw4D PO91SASEKmtKDo4sXicolbnzm8hCFZQVMKXu053CTTZRCAOBGdHzHZOsIi1CRJ0NsaE5 oZYrTLMSUhsJpIFu8UISjxJPa6Y8joQulUYIBEpyDQ1WltOoTQcR04rLsMvIhKH2DrXk uLgA== X-Forwarded-Encrypted: i=1; AJvYcCW3jzIPNJtxnOo9dO1KK3Rj4f5hjn246coSi/bnwCJ+4xWUWucg2qLcS0+KRBQUcrZAoeF5rmLYDan7nw8Q@gnu.org X-Gm-Message-State: AOJu0YyoO5no7GqNbcaC8AxxRZeBctf7jQlR7GVGmaFLOiyoYny2NFCS VGm4C4IiWYsBVi7ucrAYkFcQYy4A6oLH+rjZpMhO2SOzy0wYTe1IxFhHy7UOtUr4c4SNKqp5uG5 tUW8QYonbpIPdhq8qwo/diNsfRVE= X-Google-Smtp-Source: AGHT+IFyV/Gw4ijhlTEnfPdQpj5ThbmguifDFQVeeVYTB+oE+KwpvEWZbRCsq53QG0Jb8Ksli8Y7w9bYPL1oIfPgq/Q= X-Received: by 2002:a17:906:794f:b0:a9a:4597:a7f3 with SMTP id a640c23a62f3a-a9de619876amr1069114866b.62.1730177944623; Mon, 28 Oct 2024 21:59:04 -0700 (PDT) MIME-Version: 1.0 References: <8734m28l9a.fsf@gmail.com> <874j6h3rw8.fsf@localhost> <877cbamq2q.fsf@gmail.com> <87cykvrgwr.fsf@localhost> <8734lpmkjn.fsf@gmail.com> <87r08lqlbu.fsf@localhost> <87a5ewfvo1.fsf@gmail.com> <87r085vb1s.fsf@bernoul.li> <87bjz9o188.fsf@localhost> <87r0839jfc.fsf@bernoul.li> In-Reply-To: <87r0839jfc.fsf@bernoul.li> From: =?UTF-8?Q?Tor=2Dbj=C3=B6rn_Claesson?= Date: Tue, 29 Oct 2024 06:58:53 +0200 Message-ID: Subject: Re: Org-cite: Replace basic follow-processor with transient menu? To: Jonas Bernoulli Cc: Ihor Radchenko , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=tclaesson@gmail.com; helo=mail-ej1-x62f.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 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: -0.51 X-Spam-Score: -0.51 X-Migadu-Queue-Id: E749A8929E X-Migadu-Scanner: mx12.migadu.com X-TUID: RvGZJh/zQBUX Hi again! Den l=C3=B6r 26 okt. 2024 kl 14:45 skrev Jonas Bernoulli = : > [Obviously completely untested:] > > (defcustom org-cite-basic-follow-actions > '[["Open" > ("b" "bibliography entry" org-cite-basic-follow.open-bibliography (.= ..))] > ["Copy" > ("d" "DOI" org-cite-basic-follow.copy-doi (...))] > ["Browse" > ("u" "url" org-cite-basic-follow.browse-url (...))]] > ...) > > (transient-define-prefix org-cite-basic-follow (citation &optional prefix= ) > [:class transient-column > :setup-children org-cite-basic-follow--setup > :pad-keys t] > (interactive) > (if (or org-cite-basic-follow-ask prefix) > (transient-setup 'org-cite-basic-follow nil nil > :scope (list citation prefix)) > (org-cite-basic-goto citation prefix))) > > (defun org-cite-basic-follow--setup (_) > (transient-parse-suffixes > 'notmuch-search-transient > (mapcar (pcase-lambda (`(,key ,desc ,fn ,transform)) > (list ,key ,desc > (lambda () > (interactive) > (apply fn (eval transform))))) > org-cite-basic-follow-actions))) > > Cheers, > Jonas I didn't get this working yesterday, but it looks really nice from my non-technical user point of view! Thanks! I will keep trying, but I must find the spare time to learn more about mapping and pattern matching in elisp, so this might take a while. In case Ihor wants to just fix it, please go ahead :-) It would be good if we could match against the case of '(key desc suffix) as well, so that we could include otherwhere defined suffixes. Cheers, Tor-bj=C3=B6rn