Closed Andrew15-5 closed 1 year ago
You can out whatever path you want in indentconfig.yaml
including itself, so for example
paths:
- /home/cmhughes/indentconfig.yaml
And then you should be able to put your settings in indentconfig.yaml
.
Thanks for the tip, it works. But what about using home dir variable in paths in YAML config file?
I have no idea how/if that can work, but feel free to take it on if you like.
I don't have any capacity to do so.
On Wed, 8 Mar 2023, 14:40 Andrew Voynov, @.***> wrote:
Thanks for the tip, it works. But what about using home dir variable in paths in YAML config file?
— Reply to this email directly, view it on GitHub https://github.com/cmhughes/latexindent.pl/issues/430#issuecomment-1460262134, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ7CYBCUZ3ROH3IVFWHKUDW3CK45ANCNFSM6AAAAAAVTZHCAI . You are receiving this because you commented.Message ID: @.***>
Ok, hopefully soon I will have time to tinkle with this problem.
I've found that
$LATEXINDENT_CONFIG
file only contains the paths to configuration files.https://github.com/cmhughes/latexindent.pl/issues/291#issuecomment-933381735 I would also like to know why this approach has been chosen.
But most importantly, I would like to use any variable that will make
$LATEXINDENT_CONFIG
file reusable between different users. Right now, you have to hard code your username, which is almost always should be avoided (for portability/reusability and security reasons).For example, in the documentation: https://latexindentpl.readthedocs.io/en/latest/sec-appendices.html?highlight=config#linux-1 it should say:
or even better (to keep user's home directory tidy):
(Different file name was taken from https://latexindentpl.readthedocs.io/en/latest/sec-appendices.html?highlight=config#indentconfig-options.)
instead of:
I want to have the following in my
$LATEXINDENT_CONFIG
file:Is this possible to do now or in the future?