wileyyugioh / zotmoov

Zotero plugin to automatically move attachments and link them
GNU General Public License v3.0
496 stars 6 forks source link

Options for Subdirectories #46

Closed nichhenr closed 2 days ago

nichhenr commented 2 months ago

Hi, I just moved from Zotfile, where I had files in subdirectories named with multiple authors, not just the first. Is this possible in Zotmoov? It'd be nice to have the full set of renaming options / settings form Zotfile. https://zotfile.com/#renaming-rules

Similarly, right now I'm using the %F wildcard, but it'd be nice to have some other wildcards like author first initial so that you can have a separated author tag (e.g., Doe, J instead of DoeJ).

This might be possible already?--apologies if it is.

wileyyugioh commented 2 months ago

Yeah it's possible. I'll see if I can add it in the next update.

nichhenr commented 2 months ago

Great. Thanks!

PKDmeDEV commented 1 month ago

Does moving items within the Zotero affect the linking of Files in the Zotmoov's directory/child directory? Do you know if the link gets broken?

wileyyugioh commented 1 week ago

The latest beta version's custom wildcards enables you to customize the author's tag.

nichhenr commented 1 week ago

@wileyyugioh Thanks for the update! This will be great.

I am a bit unfamiliar with how to do the editing. I tried doing a RegEx replacement to get the %F tag, e.g., SmithJ, to look like "Smith, J." Can you walk me through how to do that?

Thanks so much for your help.

wileyyugioh commented 1 week ago

So first choose your custom wildcard. For example, %1.

Then press [+] and select the command text. Use the wildcard %F.

Then press [+] again and select the command replace. The regular expression is [A-Z]$ and we want the replacement string to be , $&. This essentially finds the last capitalized letter in the string and replaces it with a comma space and the same letter.

Screen Shot 2024-11-13 at 15 01 42

The command isn't showing in the box cause of a UI bug, but it still works.

nichhenr commented 1 week ago

@wileyyugioh Thanks for your help. It works!