cmhughes / latexindent.pl

Perl script to add indentation (leading horizontal space) to LaTeX files. It can modify line breaks before, during and after code blocks; it can perform text wrapping and paragraph line break removal. It can also perform string-based and regex-based substitutions/replacements. The script is customisable through its YAML interface.
GNU General Public License v3.0
884 stars 84 forks source link

Move .bak to local folder in workspace #365

Closed castn closed 2 years ago

castn commented 2 years ago

Is it possible to configure a folder in which all backups will be moved in the configuration file of this script? I know it's possible for a single command. But can I even set it in the configuration, so that latexindent triggered by pre-commit can move it to a central location instead of leaving it at the location where the indented file is located?

I read through the doc, but haven't seen an option to do that. I hope I haven't overseen it. Or isn't this a good way to use the script, and that's why it doesn't exist?

cmhughes commented 2 years ago

Have you seen the c switch

https://latexindentpl.readthedocs.io/en/latest/sec-how-to-use.html#from-the-command-line

castn commented 2 years ago

Thx, yeah, I completely missed it.