From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iH7vLOpLlmEOcwAAgWs5BA (envelope-from ) for ; Thu, 18 Nov 2021 13:49:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oOuMKOpLlmHxDwAAbx9fmQ (envelope-from ) for ; Thu, 18 Nov 2021 12:49:46 +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 D701CAD73 for ; Thu, 18 Nov 2021 13:49:45 +0100 (CET) Received: from localhost ([::1]:42804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mngrI-000404-SH for larch@yhetil.org; Thu, 18 Nov 2021 07:49:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mngpz-0003zQ-6D for emacs-orgmode@gnu.org; Thu, 18 Nov 2021 07:48:23 -0500 Received: from [2a00:1450:4864:20::430] (port=45795 helo=mail-wr1-x430.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mngpw-0002SQ-UK for emacs-orgmode@gnu.org; Thu, 18 Nov 2021 07:48:22 -0500 Received: by mail-wr1-x430.google.com with SMTP id w29so11290623wra.12 for ; Thu, 18 Nov 2021 04:48:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew.cmu.edu; s=google-2021; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=4GFZ/1LWDyUlNf96+kkVbP55gkp/V6yu0yE5KqJyRMQ=; b=Pmyii05eqXCOglRPBs4VNGIVAWFpmV0G3Ms5kd6F/TywLG1mL8BOUOf0XX4lsCDKCn IBHAytlR2tAT1ca9npDXShgwKvp3qLMR3GHm2gh2KeSI//l/xYc+l2uVszoWVfj/s881 4rG0KIss9ckjqNU/+bdImxRkFQRXrYj7hXf/q2Is9e25hW9gXgoIRbrtvdPUmig0n1C8 NGCXGaM4ghMF8YlT6yYg4K0BsJic1pKLZkiFD5hB3KDJ8YJmBrE97kOdgZ5MidH0d0bf fk1eRKkMm7ohpkvXy9KwoNWR4gxZR2rjJw08QpZq066bg0wZ6PoiovT6RS3rkuwgV3x4 lfeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=4GFZ/1LWDyUlNf96+kkVbP55gkp/V6yu0yE5KqJyRMQ=; b=d8v6qHxluP8FfMjavMlR2zAX20NqrMk1GbD9Q0A78biMltQPnMerb7/MoIzkrFXBs9 jVDqO8d43Rk0GIC8D1e1S58c95OoO0OLQ7Shd6gVNQPonjysa5GulUBZbddrw21Thrik MLbfG4ODekwd2D8CAi1H4mRFmzF1fhV0SJbJuuRWlKdISaSNkyC+6y0XyFH5qkdBCdvL PZEx2Wvsyv+9oa4tuHn/TuX8mXqpaV+Kf6Y1diBPnR7Zmu02XaE3/5LhVaP23duHPlMV 0U46cSptDy/8+7fQKOoqtAsr4NKV/hyF+uLgCcooCrC7fnQOmTyuwGvUwViDZzSfyMRN flwA== X-Gm-Message-State: AOAM532sRxLpF2VInH13Orvc6ahpmJs8dxtxgNXt9IP90vjsCl7ejPxj 6kLEzRK7+0iN5ZdgzqrSMZOEjOcDRwNRKgxVpQALaDDnF7w= X-Google-Smtp-Source: ABdhPJyvj40B6JLmiJkm/deK034hbqTG9ATvsWlr+ms+WFzoPQHKQ4fQLwyaSK301pnFcJ9dgZ4okYP7OyWQIFKK5qc= X-Received: by 2002:a5d:404d:: with SMTP id w13mr3042536wrp.293.1637239699030; Thu, 18 Nov 2021 04:48:19 -0800 (PST) MIME-Version: 1.0 References: <877dd7mdx7.fsf@mat.ucm.es> <87h7cak9r1.fsf@mat.ucm.es> <87wnl6hant.fsf@mat.ucm.es> <871r3efojr.fsf@mat.ucm.es> <87sfvtgb5z.fsf@mat.ucm.es> In-Reply-To: <87sfvtgb5z.fsf@mat.ucm.es> From: John Kitchin Date: Thu, 18 Nov 2021 07:48:08 -0500 Message-ID: Subject: Re: [Problems with org-ref-helm-insert-ref-link and org-id-get-create] To: org-mode-email Content-Type: multipart/alternative; boundary="000000000000ac473305d10f92c8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::430 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=johnrkitchin@gmail.com; helo=mail-wr1-x430.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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=1637239786; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=4GFZ/1LWDyUlNf96+kkVbP55gkp/V6yu0yE5KqJyRMQ=; b=B8ZHVecyuI8z5uNMIl/p3vSngQZnkiNXJD0shhe1gW7XMogKVTY8xBuBwVyT9mGX5BFFap um/wzhGPRtP6AbmJyWJxmHK8luz1grQbvHL5p9BbWFrv85ppn5cLX2cIcLrSc0mNrvgeQl EmZ5mYXqmEvoEOTA1gZ42MTsxqmWHAcMVbc3ZlMCHytjh16cMxnWyDvgeGiH5BtByrqf7z ZqezXGElPynN44dlM8dDlLPzrNbM83X7jYfO0QM6tefnT0iF/z7aZEaduyNHmqIeNnOhRK Ij30ER81jBKaPHE9Yjvt1a8QfGY5O1sYHW/iKmkTkZuFgEfKq97JbSdVZZFV4w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637239786; a=rsa-sha256; cv=none; b=FWuDp/nMTjMfFeTM5upwtl2Mix1vIrne7zLjaoGbBHgswFmkz3fHJ/JLN+wt2pAt+NkTAt xynxxzEb4gxRaLDJ7+/OA4dwI6aEBTKbTW9MyEfzLG99Rz6CfiH4hP4Ws2aMB4/9aqUXXO 4dgI9D8xDc/ANvNolW8u/YbHQR5BFNsxEhmb+YzRvKZhgf3Djxeb+9+MgRG1jXkFqQJMBh KOW+lDruDyJ0iIb+7gNF0vGvs+iBevMqRTL87VrcjR0P7ls2+2lQXQFOSnIkW4KvX1XLtA RankysW7d6E3zcygviex+4Is5Ph2gUZbCZXYSnIDbcq6/XVvfiWRSI0d+8/BOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=Pmyii05e; 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.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=Pmyii05e; 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: D701CAD73 X-Spam-Score: -4.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: pg7WO1o2Vhf5 --000000000000ac473305d10f92c8 Content-Type: text/plain; charset="UTF-8" if you don't get a helm buffer popping up, it could mean you have not turned helm-mode on (e.g. M-x helm-mode). That redefines completing-read in a helm style, and should act and feel like helm when you insert a ref link. If you don't have that on, then you will see the older completing read behavior where you have to press tab to see the candidates etc. The old v2 definition of org-ref-helm-insert-cite-link can be found at https://github.com/jkitchin/org-ref/blob/org-ref-2/org-ref-helm-bibtex.el#L406, but for refs, it probably just calls this function: https://github.com/jkitchin/org-ref/blob/org-ref-2/org-ref-helm.el#L62. in v3, you can customize the insert functions any way you want, so if you want to use the old v2 functions and have them around, there should be no issue with that. I think if you set `org-ref-insert-ref-function` to the function you want, it should just work the way you want. John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Thu, Nov 18, 2021 at 2:46 AM Uwe Brauer wrote: > >>> "JK" == John Kitchin writes: > > > Probably M-x org-ref-insert-ref-link will do what you want. A lot of > things > > got "simplified" in version 3 to leverage completing-read more natively. > > helm-mode should work with org-ref-insert-ref-link. > > I see. I think I got it to work, but the navigation is not entirely > clear to me, if I fire up that function a buffer pops up with possible > labels but how do I do something like scroll-up and scroll-down? > > > See https://github.com/jkitchin/org-ref#configuration for some details > on > > how to configure v3 with helm. > > Honestly I miss a bit the old behaviour, when calling a ref function.[1] > > So I checked out the org-ref-2 branch from the github repository. > > But still there the function org-ref-helm-insert-cite-link is gone and > other related org-ref-helm functions. Is this correct? > > > Footnotes: > [1] I mean the helm menu that popped up > > --000000000000ac473305d10f92c8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
if you don't get a helm buffer popping up, it could me= an you have not turned helm-mode on (e.g. M-x helm-mode).=C2=A0 That redefi= nes completing-read in a helm style, and should act and feel like helm=C2= =A0when you insert a ref link. If you don't have that on, then you will= see the older completing read behavior where you have to press tab to see = the candidates etc.

The old v2 definition of org-ref-hel= m-insert-cite-link can be found at=C2=A0https://github.com/= jkitchin/org-ref/blob/org-ref-2/org-ref-helm-bibtex.el#L406, but for re= fs, it probably just calls this function:=C2=A0https://github.com/j= kitchin/org-ref/blob/org-ref-2/org-ref-helm.el#L62.

in v3, you can customize the insert functions any way you want, so if= you want to use the old v2 functions and have them around, there should be= no issue with that. I think if you set `org-ref-insert-ref-function` to th= e function you want, it should just work the way you want.

John
=

------------------------= -----------
Professor John Kitchin (he/him/his)
Doherty Hall A207FDepartment of Chemical Engineering
Carnegie Mellon University
Pittsb= urgh, PA 15213
412-268-7803

<= /div>
O= n Thu, Nov 18, 2021 at 2:46 AM Uwe Brauer <oub@mat.ucm.es> wrote:
>>> "JK" =3D=3D John Kitchin <jkitchin@andrew.cm= u.edu> writes:

> Probably M-x org-ref-insert-ref-link will do what you want. A lot of t= hings
> got "simplified" in version 3 to leverage completing-read mo= re natively.
> helm-mode should work with org-ref-insert-ref-link.

I see. I think I got it to work, but the navigation is not entirely
clear to me, if I fire up that function a buffer pops up with possible
labels but how do I do something like scroll-up and scroll-down?

> See https://github.com/jkitchin/org-ref#confi= guration for some details on
> how to configure v3 with helm.

Honestly I miss a bit the old behaviour, when calling a ref function.[1]
So I checked out the org-ref-2 branch from the github repository.

But still there the function org-ref-helm-insert-cite-link is gone and
other related org-ref-helm functions. Is this correct?


Footnotes:
[1]=C2=A0 I mean the helm menu that popped up

--000000000000ac473305d10f92c8--