How to rename pdfs replacing space and hyphens with underscores


(kirk) #1

Hi folks. Thanks for providing jabref.
I have a question regarding renaming pdfs since I’ve looked into all possible ui options in jabref but I’m still unsure how to achieve this.

Let’s say that we have a bib entry with a pdf file linked to it and the title of the entry is something like this:

Some Efficient-Weird (Un)Usable Method

I would like to rename the pdb according to the schema of [author][year]_[title]
but the title should be reformatted as

Some_Efficient_Weird_(Un)Usable_Method

Is that possible through jabref?
How can I achieve that?


(Tobias Diez) #2

That’s not possible at the moment. Using [title:camel] gives you

SomeEfficientWeird(Un)UsableMethod

which is relatively close to what you want.


(kirk) #3

Thanks, that’s really a bummer, since there’s also no option for additional plugins because you guys removed that as well, at least in that way some third party dev would have added some additional functionality which atm is lacking.


(Christoph) #4

You could try to use the Regex, maybe that helps


(Tobias Diez) #5

@kirk JabRef is completely open source. So if you can code (or know somebody who can), then it easy for you to contribute a formatter that fits your requirements. For details: https://github.com/JabRef/jabref/blob/master/CONTRIBUTING.md