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

feature request: create cruft directory if it does not exist #452

Closed
jessestricker opened this issue Jul 8, 2023 · 2 comments · Fixed by #453
Closed

feature request: create cruft directory if it does not exist #452

jessestricker opened this issue Jul 8, 2023 · 2 comments · Fixed by #453
Labels
contribution Thank you to the contributor! implemented implemented tag means that either an enhancement or feature request has been implemented, or bugfix

Comments

@jessestricker
Copy link
Contributor

First off, thank you for this awesome tool! ❤️

latexindent --silent --cruft='./.aux/_latexindent' --overwrite ./root.tex

When I invoke latexindent as above, and the cruft directory does not exist yet,
latexindent fails to format the file and prints this error message:

FATAL Could not find directory ./.aux/_latexindent
      Exiting, no indentation done.

I usually keep my LaTeX projects in Git and do not commit the .aux directory, so when somebody clones the repo they need to manually create the cruft directory before they can start formatting files.

Would it be possible to create the cruft directory and any missing parents when running latexindent?

@jessestricker jessestricker changed the title Create cruft directory if it does not exist feature request: create cruft directory if it does not exist Jul 8, 2023
@cmhughes cmhughes added the contribution Thank you to the contributor! label Jul 8, 2023
@cmhughes
Copy link
Owner

Implemented as of #453

Please leave this open, I'll close it once released (hopefully soon) :)

@cmhughes cmhughes added the implemented implemented tag means that either an enhancement or feature request has been implemented, or bugfix label Jul 12, 2023
@cmhughes
Copy link
Owner

This is implemented as of https://github.com/cmhughes/latexindent.pl/releases/tag/V3.22.2, I'll get it uploaded to ctan next.

Thanks so much for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution Thank you to the contributor! implemented implemented tag means that either an enhancement or feature request has been implemented, or bugfix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants