emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: [Problems with org-ref-helm-insert-ref-link and org-id-get-create]
Date: Thu, 18 Nov 2021 07:48:08 -0500	[thread overview]
Message-ID: <CAJ51ETrsJiKYQBUcUtzQODybNAmYYY1Ni6fSBUyFBR9PjCMeMA@mail.gmail.com> (raw)
In-Reply-To: <87sfvtgb5z.fsf@mat.ucm.es>

[-- Attachment #1: Type: text/plain, Size: 2175 bytes --]

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 <oub@mat.ucm.es> wrote:

> >>> "JK" == John Kitchin <jkitchin@andrew.cmu.edu> 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
>
>

[-- Attachment #2: Type: text/html, Size: 3247 bytes --]

      parent reply	other threads:[~2021-11-18 12:49 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-17  7:36 insert automatically a reference to a section header and a link Uwe Brauer
2021-11-17  8:28 ` Uwe Brauer
2021-11-17 10:04 ` Eric S Fraga
2021-11-17 13:58   ` Uwe Brauer
2021-11-17 14:06     ` John Kitchin
2021-11-17 14:15       ` Uwe Brauer
2021-11-17 14:59         ` Stefan Nobis
2021-11-17 15:42           ` Juan Manuel Macías
2021-11-17 16:08             ` Uwe Brauer
2021-11-17 15:55           ` Uwe Brauer
2021-11-17 16:08             ` Eric S Fraga
2021-11-17 16:44               ` Uwe Brauer
2021-11-17 16:29             ` Stefan Nobis
2021-11-17 17:05               ` Uwe Brauer
2021-11-17 19:10                 ` Stefan Nobis
2021-11-23 15:20                 ` Bruce D'Arcus
2021-11-17 18:17               ` Juan Manuel Macías
2021-11-17 19:00                 ` Stefan Nobis
2021-11-17 14:58     ` Eric S Fraga
2021-11-17 16:00       ` Uwe Brauer
2021-11-17 16:31         ` Eric S Fraga
2021-11-17 17:06           ` Uwe Brauer
2021-11-17 16:49 ` [Problems with org-ref-helm-insert-ref-link and org-id-get-create] (was: insert automatically a reference to a section header and a link) Uwe Brauer
2021-11-17 17:57   ` John Kitchin
2021-11-17 18:58     ` [Problems with org-ref-helm-insert-ref-link and org-id-get-create] Uwe Brauer
2021-11-17 19:58       ` John Kitchin
2021-11-17 20:16         ` Uwe Brauer
2021-11-17 21:41         ` Uwe Brauer
2021-11-17 21:54           ` John Kitchin
2021-11-18  7:44             ` Uwe Brauer
2021-11-18  8:06               ` Uwe Brauer
2021-11-18 12:48               ` John Kitchin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ51ETrsJiKYQBUcUtzQODybNAmYYY1Ni6fSBUyFBR9PjCMeMA@mail.gmail.com \
    --to=jkitchin@andrew.cmu.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).