emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Yuu Yin <yuuyin@protonmail.com>
To: Timothy <tecosaur@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-cite: enable inserting citation (org-cite-insert) after list bullet [9.5 (9.5-7c78aca @ /home/yuu/.config/emacs/straight/build/org/)]
Date: Wed, 01 Sep 2021 16:05:09 +0000	[thread overview]
Message-ID: <F91aUSEEkMYSH4PK3FrEGb7R-pl4y3f99Dp4Jn_BtCRVGia11OX_1IOsZG4323i_WduDWpyzEAKFAxc4rwpt9amM3InmAVu__Oap32-c0uA=@protonmail.com> (raw)
In-Reply-To: <87a6kxq32h.fsf@gmail.com>

Thank you! Would it also be feasible to enable inserting citations after list checkboxes? For example

- [ ] [cite:@author-2021-title]
- [X] [cite:@author-2021-title]
  + [X] [cite:@author-2021-title]

This is super useful for marking which works/documents the user did read and took notes for e.g. a literature review.

Yuu Yin

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Tuesday, August 31st, 2021 at 7:24 AM, Timothy <tecosaur@gmail.com> wrote:

> Yuu Yin yuuyin@protonmail.com writes:
>
> > Invoking ~org-cite-insert~ after list bullets (e.g. ~-~ and ~1.~ )
> >
> > doesn't work.
>
> I did a little test myself, and can confirm that it's not currently
>
> possible to insert a citation immediately after a bullet and space.
>
> This can be checked with `org-cite--allowed-p'. Thinking about this situation, inserting citations should be fine as long as the` point' isn't before or immediately after the bullet itself
>
> (i.e. no space).
>
> I've prepared a patch that fixes this (attached). This is the test case
>
> that I'm adding:
>
> -       ((eq type 'item)
>
>
> -        (> (point) (+ (org-element-property :begin context)
>
>
> -                      (org-get-indentation)
>
>
> -                      1)))
>
>
>
> As this is so simple, if nobody has any comments I'll push this in a
>
> week or so.
>
> ------------------------------------------------------------------------------------
>
> Timothy


  parent reply	other threads:[~2021-09-01 16:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-26 12:18 org-cite: enable inserting citation (org-cite-insert) after list bullet [9.5 (9.5-7c78aca @ /home/yuu/.config/emacs/straight/build/org/)] Yuu Yin
2021-08-31 10:24 ` Timothy
2021-08-31 11:41   ` Bruce D'Arcus
2021-09-01 16:05   ` Yuu Yin [this message]
2021-09-18  5:40     ` Timothy

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='F91aUSEEkMYSH4PK3FrEGb7R-pl4y3f99Dp4Jn_BtCRVGia11OX_1IOsZG4323i_WduDWpyzEAKFAxc4rwpt9amM3InmAVu__Oap32-c0uA=@protonmail.com' \
    --to=yuuyin@protonmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tecosaur@gmail.com \
    /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).