Aedif / TokenVariants

GNU General Public License v3.0
17 stars 12 forks source link

option to search by folder name/compatibility with token images imported from roll20 #15

Closed MrPotatoZed closed 3 years ago

MrPotatoZed commented 3 years ago

I was hoping this would be the perfect way to deal with porting several hundred token images from roll20 to foundry actors. Unfortunately, roll20 strikes again as after import to foundry the token portraits and avatar filenames are all "token.png" and "avatar.png". The distinguishable keywords are in the folder names. Is there any way to allow for searching folder names in addition to filenames (i.e. attributing the folder name text to the files inside)? If searching folder names generally would cause too many problems what about allowing users to designate a few particular folders to be searched by the folder name?

Aedif commented 3 years ago

Hello,

Just to confirm, what you're seeking here is something like this?:

Search: Dragon Matches:

If so then this shouldn't be too difficult to implement.

Aedif commented 3 years ago

This has been implemented in release 1.10.0.

A new setting has been added 'Match name to folder' which when enabled will check the names against folders as well as the files.

Check it out and see if this meets your needs. 👍

MrPotatoZed commented 3 years ago

It works beautifully, thank you! I was concerned turning this on might lead to a lot of unrelated "false positives" but so long as people are aware of/avoid using the keywords in their variant art search paths it isn't an issue.