When merging one bibliography into another, or detecting duplicates, it would be very useful to somehow save/export a mapping from the old entries’ keys to the target entry’s key.
E.g. my main bib file contains an entry
and the bib file I am merging into the main file contains
Jabref correctly detects the duplicate and I decide to merge them together into the main file’s entry, keeping the key
authorFooBar2019. So far so good. But now let’s assume that I already have a latex document with references with the old keys, e.g. one to
author_foo_bar_baz_2019. Now I have to manually write down, during the merge process, which key changes into which so I can find-replace the old keys in my latex files.
Is there a way to export a mapping of keys during this merge process? E.g. into a text file with one line for each key replacement like so
Then I could convert this list into a
sed command to automatically find-replace the old references.