retorquere / zotero-better-bibtex

Make Zotero effective for us LaTeX holdouts
https://retorque.re/zotero-better-bibtex/
MIT License
5.21k stars 285 forks source link

Key generation field #1306

Closed Irismoon closed 4 years ago

Irismoon commented 4 years ago

Report ID:

Expected behavior:

Actual behavior:

Hey, thanks for your awesome work. The tool is really handy and elegant. I just ask if it's possible to include a function: now the citekey use fixed number of fields. But if there is duplicate citekey, it 'll add a postfix like a,b,..., if it's possible to add additional optional fields like its title in addition to typical fields. It'll be easier to find the paper I want when I cite it. I check the wiki website. And find there is no similar functions in the citation key description.

Best, Mango

label-gun[bot] commented 4 years ago

It looks like you did not upload an debug report. The debug report is important; it gives @retorquere your current BBT settings and a copy of the problematic reference as a test case so he can best replicate your problem. Without it, @retorquere is effectively blind. Debug reports are useful for both bug analysis and enhancement requests; in the case of export enhancements, I need the copy of the references you have in mind.

Once done, you will see a debug ID in red. Please post that debug id in the issue here.

Thank you!

Irismoon commented 4 years ago

It seems a suggestion rather than a bug. Apologize if wrong place.

retorquere commented 4 years ago

You can add the title or pretty much anything else you want to the citekey: https://retorque.re/zotero-better-bibtex/citing/ . What you're seeing now is just the default pattern but it's very configurable.

Irismoon commented 4 years ago

Hey thanks for reply. To be clear, what I mean is a special config when conflict occurs. For example, my config is [author][journal][year]. Usually the citekey is as above. But When there are two items have the same Citekey, is it possible to add an additional field to discriminate them more clearly? Like only under conflict case, the citekey could be [author][journal][year][title].

Best, Mango

retorquere commented 4 years ago

So you mean that if a conflict occurs, both would change?

Irismoon commented 4 years ago

Sorry for the delay due to time difference. Sort of. Exactly, I mean if a conflict occurs, more fields are allowed to be added rather than a postfix like a,b,c,... Let's say now, I already have an item citekey is mattNature2019([author][journal][year]). When I add a new item whose citekey is automatically assigned as mattNature2019a as default, I hope both of them could change like one is mattNature2019July, mattNature2019Jan. The benefit is that when I cite them, I could discriminate them. I don't need to check mattNature2019 and mattNature2019a refers to which paper respectively. I of course know mattNature2019July and mattNature2019Jan refers to which paper because I read them and know their publication month. To sum up, adding a postfix like a,b,... is an unknown information for me but the publication month is known information for me. I feel like it would help when citing. But if there is no conflict at all, the citekey is still mattNature2019. Glad to hear how you think.

Best, Mango

retorquere commented 4 years ago

That could trigger a cascade of updates. I'd rather not add that.

I could consider a feature where you could:

  1. Choose to not have keys postfixed
  2. More easily find duplicates
  3. A way to apply a custom pattern by right-clicking

Which should get your roughly the desired behavior, if not fully automatic.

retorquere commented 4 years ago

closing for inactivity

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.