Closed PapierFliegr closed 11 months ago
How are you calling latexindent?
On Fri, 22 Sep 2023, 15:26 PapierFliegr, @.***> wrote:
Is it possible to ignore all files in a subfolder?
I have the following folder structure:
├── main.tex └── preamble ├── mathcommands.tex ├── packages.tex └── setup.tex
I'd like to run some replacements but if I run this on the whole document, the files in preamble are affected as well. There is the possibility to ignore verbatim blocks and/or indentation with the flags -rv or -rr, but both still admit replacements. I want these files to be completely ignored by latexindent.
Can I somehow specify in latexindent.yaml to ignore the folder preamble?
— Reply to this email directly, view it on GitHub https://github.com/cmhughes/latexindent.pl/issues/478, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ7CYAHZECRMUE6HPO2I2DX3WN2TANCNFSM6AAAAAA5DGGR2A . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I am using VSCode with the extention Latex-Workshop and when saving latexindent
gets called automatically with these settings
Thanks for this.
It seems that your issue is actually to do with Vscode....
Latexindent operates on the files that it is told to operate on, so perhaps ask the vscode folks how to customise which files you want indented...?
Okay, thank you, I will try that :)
Is it possible to ignore all files in a subfolder?
I have the following folder structure:
I'd like to run some
replacements
but if I run this on the whole document, the files inpreamble
are affected as well. There is the possibility to ignoreverbatim
blocks and/orindentation
with the flags-rv
or-rr
, but both still admitreplacements
. I want these files to be completely ignored bylatexindent
.Can I somehow specify in
latexindent.yaml
to ignore the folderpreamble
?