Skip to content

(feat)db: support org-ref v3#1977

Merged
jethrokuan merged 1 commit intomasterfrom
fix/1973
Nov 20, 2021
Merged

(feat)db: support org-ref v3#1977
jethrokuan merged 1 commit intomasterfrom
fix/1973

Conversation

@jethrokuan
Copy link
Member

Org-ref v3 introduced a new citation syntax, and removed some functions
that org-roam had previously relied upon (e.g. for extracting keys from
multi-citations).

This commit introduces support on two fronts:

  1. Add org-roam-org-ref-path-to-keys which converts a link path to a
    list of keys. This supports both Org-ref v2 and v3.

  2. Adds support for parsing multi-citations in refs.

Addresses #1973.

Org-ref v3 introduced a new citation syntax, and removed some functions
that org-roam had previously relied upon (e.g. for extracting keys from
multi-citations).

This commit introduces support on two fronts:

1. Add `org-roam-org-ref-path-to-keys` which converts a link path to a
list of keys. This supports both Org-ref v2 and v3.

2. Adds support for parsing multi-citations in refs.
@jethrokuan
Copy link
Member Author

Let me know if this branch works for you @nobiot @jmkard @zipy124

@jmkard
Copy link

jmkard commented Nov 20, 2021

Seems to work. Org-ref v3 citations are showing up in the roam buffer, no "&" hack required. Thanks for sorting this issue.

@nobiot
Copy link
Contributor

nobiot commented Nov 20, 2021

Thank you @jethrokuan. I won’t be able to test this weekend but I trust @jmkard. I don’t use Org-ref myself so i’m not a primary target user. Glad that it’s working for @jmkard.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants