emacs-citar / citar

Emacs package to quickly find and act on bibliographic references, and edit org, markdown, and latex academic documents.
GNU General Public License v3.0
502 stars 54 forks source link

Allow transform modifiers in templates #735

Closed bdarcus closed 1 year ago

bdarcus commented 1 year ago

Modify:

Close #694


This is an alternative to #734; I think easier to implement and configure, and more flexible.

I think it all works, and unless I hear otherwise, I'll likely merge it tomorrow, March 13.

EDIT: I got sidetracked by a stupid variable declaration bug; now fixed.

@andersjohansson @pprevos - any feedback on this? I think you were, or may be, interested in such a feature.

PS - It has occurred to me that perhaps when strings are transformed, the original value should still be included as hidden (making use of display vs hidden properties)?

(propertize "Doe, J and Jones, K and Smith, L" 'hidden t 'display "Doe et al.")
pprevos commented 1 year ago

Hi Bruce, good stuff.

There is a package for org-ref that prettifies citations. Is that what you meant by hidden?

bdarcus commented 1 year ago

There is a package for org-ref that prettifies citations. Is that what you meant by hidden?

No, that's what org-cite-csl-activate does.

More what we already do a bit of in the minibuffer candidates. But it's an optimization to consider later.

andersjohansson commented 1 year ago

Seems like a great idea! I dug into the parsing and realized this: #743