support nested directories in template directories #95
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
i've been wanting something like #66 for a while.
my use case specifically is qbittorrent-themes.
they need a file called
config.json
(by that specific name) which is pretty generic.i could post-process filenames before i run it through
rcc
, but i thought it would be nice for pywal16 to support child directories inside the template folder instead.this way i can organize my qbittorrent-stuff and have room for more
config.json
files that might be needed for other programs.the PR introduces a naive class which contains every reference needed to read templates and output them to the correct spot. this could also just be a tuple, or a dictionary or something if you prefer that.
walk
is a super simple function that leveragesos.path
stuff. i went with a generator-type of function, idk if you like that lol.i was thinking about defining some tests to verify its functionality, but it seems the tests use my personal config, so it's hard to make a test that will work in every environment.
running the export tests locally, i can at least verify that feature parity is maintained.