-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Customizable Bibtex Key #526
Comments
Hi, could you please describe what kinds of format do you want? |
In the betterbibtex zotero plugin I have this configuration: To match zotero's keys exactly, the title would have to be shortened to three words with unimportant words ignored. For example:
|
OK, I would suggest you implement this in a hook extension, it's unnecessary to PR the main app. https://paperlib.app/en/extension-doc/ext-types/hook-ext.html We have some hooks for reference exporting. I would suggest you investigate these hooks: https://paperlib.app/en/extension-doc/process-hook.html#citeobjcreatedinexportbibitem The reference exporting logics are at here: https://github.com/Future-Scholars/paperlib/blob/main/app/renderer/services/reference-service.ts Basically, let's use Some useful source codes:
paperlib/app/renderer/services/reference-service.ts Lines 339 to 346 in da0f48e
|
As this can be achieved via extension, I will close this for now. If you have any questions about the extension, feel free to tell me. |
Correct me if I'm wrong, but I think it is currently impossible to customize the bibtex key. To match my current zotero setup, I would like to customize the bibtex keys to match those generated by zotero's betterbibtex integration.
I would also be willing to contribute a PR if I'm shown the correct place to start. I'm not an experienced JS dev, though.
The text was updated successfully, but these errors were encountered: