emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Bruce D'Arcus" <bdarcus@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Cc: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Subject: Re: [wip-cite-new] Quick note about citation insertion
Date: Sat, 3 Jul 2021 11:09:09 -0400	[thread overview]
Message-ID: <CAF-FPGP7jTY1MOWOb_gzkXcFKygFs8dzUNsXs8DaOzU3-Dy7YA@mail.gmail.com> (raw)
In-Reply-To: <87v95rcumz.fsf@ucl.ac.uk>

On Sat, Jul 3, 2021 at 10:58 AM Eric S Fraga <e.fraga@ucl.ac.uk> wrote:

> > Anyway, I'll try to provide something a little more useful out of the
> > box, based on your comment and Bruce D'Arcus suggestion.
>
> But that's partly why I mentioned ivy-bibtex: solutions already exist
> and there should be no need to re-invent the wheel?

I kind of disagree.

There's a middle ground between super minimal and fully-featured that
I think is appropriate for oc-basic.

Nicolas is doing things with even the basic insert function that are
not possible with the existing tools currently, in part as a
demonstration of the possibilities, and also just to provide a decent
default experience.

But as I said to him off-list, if he simply changes his completion
table from being a list of keys, to a list of cons like I mentioned,
and maybe even makes the table a variable, then third-party tools can
do one of two things:

1. if the variable, simply plug-in their own completion table, and so
get a richer UI (this is the case with bibtex-actions, which has the
same data structure)
2. the code itself can be a demo that can be easily adapted; in my
case, I can pretty much copy-and-paste it and just change the "all"
let variables

Practically speaking, the ivy-bibtex "insert citation" action, which
uses the bibtex-completion-insert-citation function behind-the-scenes,
can then be enhanced such that it is more fully-featured in the
context of org than it is in other modes, and that it is now.

So enhancing this a little bit will have both short-term and long-term
pay-off, both for default citations in org, and for third-party tools.

Bruce


  reply	other threads:[~2021-07-03 15:10 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 [this message]
2021-07-05 13:29                     ` Eric S Fraga
2021-07-06 12:11                 ` Bruce D'Arcus
2021-07-07 22:59                   ` Nicolas Goaziou
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=CAF-FPGP7jTY1MOWOb_gzkXcFKygFs8dzUNsXs8DaOzU3-Dy7YA@mail.gmail.com \
    --to=bdarcus@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /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).