Open andreifoldes opened 1 year ago
Had a similar issue come up with apostrophes, whenever I'd open the filepath with another program it would get mad at me.
My solution was to create a custom wildcard in Edit -> preferences -> advanced -> config editor -> wildcards.user:
{"1": {"field": "title", "operations":[{"function":"titleFormated"},{"function":"replace","regex": "(')","replacement": "","flags": "g"}]}}
This uses the usual title formatting followed by a regex to replace any '
characters with nothing. Then in the zotfile preferences you can use %1 instead of %t for the renaming rules. If you replace '
with ,
it should give you the desired effect. I hope that helps :)
Greetings,
I was wondering how to best instruct Zotfile to avoid having commas in renamed files? Additionally I think this might be useful to be included in the default behavior...