From: John Kitchin <jkitchin@andrew.cmu.edu>
To: "Bruce D'Arcus" <bdarcus@gmail.com>
Cc: Org Mode List <emacs-orgmode@gnu.org>,
Nicolas Goaziou <mail@nicolasgoaziou.fr>
Subject: Re: [wip-cite-new] Quick note about citation insertion
Date: Fri, 2 Jul 2021 17:05:50 -0400 [thread overview]
Message-ID: <CAJ51ETrmjrX-gbL9-8EvMjgZ+sQH0rhRJYmZwooCcNN7GB8n0g@mail.gmail.com> (raw)
In-Reply-To: <CAF-FPGNM6D+_6j25pHWL9Z7O6LwCqKn08xfq42wt1B8eswD_Nw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1665 bytes --]
I would not use a prefix arg here. you should just check what is at the
point, and if it is a citation then append it after the citation at point,
and if not insert a new one (maybe after moving the point to an appropriate
place if needed).
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 Fri, Jul 2, 2021 at 4:59 PM Bruce D'Arcus <bdarcus@gmail.com> wrote:
>
>
> On Fri, Jul 2, 2021, 4:14 PM Nicolas Goaziou <mail@nicolasgoaziou.fr>
> wrote:
>
>> "Bruce D'Arcus" <bdarcus@gmail.com> writes:
>>
>> > 1. I don't see a way to add a key to an existing citation. Editing an
>> > existing key uses completing-read, rather than
>> > completing-read-multiple (as for a new citation), and places point
>> > after the existing key means the style editing UI will pop up.
>>
>> Indeed, there's no way to add a reference to an existing citation.
>> I admit I didn't think about it. What about appending a reference when
>> the function is called with C-u?
>
>
> Probably that would work.
>
> BTW, you may already be thinking this, but you may as well add completion
> from the files registered with OC at this point. :-)
>
> Only having the completion table populated with in-document keys won't be
> very useful, particularly in a new document.
>
> If you do, ideally it would be extensible/configurable.
>
> Or is the latter already the case?
>
> OTOH, IDK how much you feel the need to get everything done before merger,
> or whether some pieces can wait?
>
> Bruce
>
>
[-- Attachment #2: Type: text/html, Size: 3058 bytes --]
next prev parent reply other threads:[~2021-07-02 21:06 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 [this message]
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
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=CAJ51ETrmjrX-gbL9-8EvMjgZ+sQH0rhRJYmZwooCcNN7GB8n0g@mail.gmail.com \
--to=jkitchin@andrew.cmu.edu \
--cc=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).