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

glob like syntax for files #17

Open
projetmbc opened this issue Mar 20, 2023 · 8 comments
Open

glob like syntax for files #17

projetmbc opened this issue Mar 20, 2023 · 8 comments
Labels
enhancement New feature or request

Comments

@projetmbc
Copy link

projetmbc commented Mar 20, 2023

Hello.

It could be very useful to have the possibility to work with the glob syntax for the value of sequence.

What do you think about this?

@wtsnjp
Copy link
Owner

wtsnjp commented Mar 21, 2023

Thanks for your suggestion. It would be great to support the glob-like syntax where it would be beneficial.

But are you sure you want to use the glob-like syntax in the sequence value? I can imagine some use cases for the source key or config items in each programs table. Would you provide a few specific examples of llmk's workflow settings that you would like to write?

@projetmbc
Copy link
Author

The simplest case is to use a common TOML configuration file for (La)TeX files that use the same compilation steps. For example, I always use the same compilation process when I write my math course, but my files are not in the same folder.

@wtsnjp
Copy link
Owner

wtsnjp commented Mar 21, 2023

That is exactly the role of the source key!

source = ["dir0/fileA.tex", "dir1/fileB.tex"]

The remaining settings in TOML are applied to all files in the array specified in the source key value.

@projetmbc
Copy link
Author

projetmbc commented Mar 21, 2023

Indeed, I meant source and not sequence. Sorry for the typo.

The problem with the previous approach is that I have to indicate all the files by hand. With glob syntax, I would just type source = "*/*" for files placed in subfolders.

@wtsnjp wtsnjp added the enhancement New feature or request label Mar 21, 2023
@wtsnjp
Copy link
Owner

wtsnjp commented Mar 21, 2023

Now I got your request. I will try working on that!

@projetmbc
Copy link
Author

If there is "no emergency", I can code the parsing but not before June.

@wtsnjp
Copy link
Owner

wtsnjp commented Mar 21, 2023

Great, that's even better. I will be happy to review your pull request 😄

@projetmbc
Copy link
Author

I'll play with this on my computer. You can go on holiday ;-)

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

No branches or pull requests

2 participants