emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Bruce D'Arcus" <bdarcus@gmail.com>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: [wip-cite-new] Quick note about citation insertion
Date: Thu, 08 Jul 2021 00:59:40 +0200	[thread overview]
Message-ID: <87k0m1spb7.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAF-FPGMCvok5wYhMTRhY7DoAqK=EMxG2MG4Vs+n4zKFQeZYf7g@mail.gmail.com> (Bruce D'Arcus's message of "Tue, 6 Jul 2021 08:11:21 -0400")

Hello,

"Bruce D'Arcus" <bdarcus@gmail.com> writes:

> Nicolas - I saw you pushed some changes, per the discussion.

Hey, that was a surprise ! ;)

So, here's an update. Now "oc-basic" provides a reasonable experience
for inserting references in a document. It also supports both CSL and
BibTeX bibliographies. Therefore, it is used as the default insertion
processor.

For a user, selecting another insertion processor is done by customizing
`org-cite-insert-processor' variable.


For a developer, there are now two ways to create an insert processor.

1. If you are happy with the global behaviour of "basic", but want to
   improve completion, I added the `org-cite-make-insert-processor'
   tool.

2. If you also want to change the behaviour, you need to write a new
   function from scratch.

Then you define the processor with either:

  (org-cite-register-processor 'my-insert-proc
    :insert (org-cite-make-insert-processor
             #'my-select-key
             #'my-select-style))                            ;situation 1

or

  (org-cite-register-processor 'my-insert-proc
   :insert #'my-function)                                   ;situation 2

> First, my initial thought is the behavior at point is perfect.

Ah!

> Second, what's your intended way one enters a citation with two references?
>
> In selectrum, I:
>
> 1. select one reference with RET
> 2. select another
> 3. C-j to exit
>
> Is that the expected workflow and behavior?

Yes, it is.  You need to enter the empty string to exit.  C-j is the way
to do that on Selectrum.  I don't know about Vertico.

Regards,
-- 
Nicolas Goaziou


  reply	other threads:[~2021-07-07 23:00 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-02 16:10 [wip-cite-new] Quick note about citation insertion Nicolas Goaziou
2021-07-02 19:21 ` Bruce D'Arcus
2021-07-02 20:05   ` Nicolas Goaziou
2021-07-03  8:45     ` Bruce D'Arcus
2021-07-03  9:20       ` Nicolas Goaziou
2021-07-03  9:56         ` Bruce D'Arcus
2021-07-02 19:47 ` Bruce D'Arcus
2021-07-02 20:14   ` Nicolas Goaziou
2021-07-02 20:58     ` Bruce D'Arcus
2021-07-02 21:05       ` John Kitchin
2021-07-02 21:21         ` Nicolas Goaziou
2021-07-03  0:21           ` Bruce D'Arcus
2021-07-02 21:48       ` Nicolas Goaziou
2021-07-02 21:57         ` Bruce D'Arcus
2021-07-02 22:33           ` Nicolas Goaziou
2021-07-02 23:59             ` Bruce D'Arcus
2021-07-03  7:28             ` Eric S Fraga
2021-07-03  7:58               ` Nicolas Goaziou
2021-07-03 14:57                 ` Eric S Fraga
2021-07-03 15:09                   ` Bruce D'Arcus
2021-07-05 13:29                     ` Eric S Fraga
2021-07-06 12:11                 ` Bruce D'Arcus
2021-07-07 22:59                   ` Nicolas Goaziou [this message]
2021-07-08  0:38                     ` Bruce D'Arcus
2021-07-08 11:46                       ` Nicolas Goaziou
2021-07-08 11:52                         ` Bruce D'Arcus
2021-07-08 13:19                         ` Bruce D'Arcus
2021-07-08 11:41                     ` Bruce D'Arcus
2021-07-08 11:44                       ` Nicolas Goaziou
2021-09-26 10:40                         ` Bastien
2021-07-08 12:48                       ` Eric S Fraga
2021-07-08 13:04                         ` Bruce D'Arcus
2021-07-08 15:34                           ` Eric S Fraga

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=87k0m1spb7.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=bdarcus@gmail.com \
    --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).