Closed mjsir911 closed 2 years ago
Can you point out some documentation on the use of .ledgerrc
files? Personally I am an hledger
user and haven't bumped into them, and a few quick searches suggest that they are mostly made up of default arguments for the CLI — in other words they are not ledger files with the same syntax as defined in this plugin. I'm happy to include what is useful here but I'd like to see some documentation or precedent for usage to confirm this.
@alerque I think you're exactly right. It doesn't seem to make sense for .ledgerrc
to have the syntax highlighting designed for the Ledger journal.
If I'm missing something here I'd be happy to re-examine this, but closing for now based on current evidence.
Note you could add a mode line to your rc file if you want it to be matched a particular non-standard way. Given what I know of the file you might also look into having it classified as bash
or some other file type that would handle the CLI arg format and any quoting involved.
Just for syntax highlighting & such