Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PandocMonad: allow nested data files #8822

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tarleb
Copy link
Collaborator

@tarleb tarleb commented May 4, 2023

Data file fallbacks are now also searched in the directory that has the same name as the file minus the extension. For example, a filter with name frob.lua will be searched in $DATADIR/filters/frob.lua as well as in $DATADIR/filters/frob/frob.lua.

This allows to place full git repositories in the data directory.

Closes: #6635

Data file fallbacks are now also searched in the directory that has the
same name as the file minus the extension. For example, a filter with
name `frob.lua` will be searched in `$DATADIR/filters/frob.lua` as well
as in `$DATADIR/filters/frob/frob.lua`.

This allows to place full git repositories in the data directory.

Closes: jgm#6635
@jgm
Copy link
Owner

jgm commented Jun 22, 2023

I'm on the fence about this. I see how it meets a need in the case of filters, but (a) it's slightly "magic" in the way it derives the directory name and (b) it applies to all data files, not just filters.

A narrower intervention would do this just for filters.

I'm just not sure what's best, hence the delay in merging this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] Search for filters/lua-filters within sub-directories of $DATADIR/filters
2 participants