-
-
Notifications
You must be signed in to change notification settings - Fork 322
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
directives don't affect other journal files #510
Comments
I thought this was a feature. You can have a separate file for your vacation expenses where you use different aliases. Note that includes inside of the file with directives will be affected also. This allows you to have a hierarchy of files and apply stuff only at some level. Unless there will be directives like Other option would be to use |
...once I understood this behavior with regard to account aliases, I ended up with this explanation for this: included files in This is different from I like to have a separate accounts.journal file with my chart of accounts and account alias definition. I ended up with reiterating the account alias definition from my accounts.journal into the main.journal, so I can play with both programs. |
Correct @5472qaywsx, and https://hledger.org/journal.html#aliases-and-multiple-files says something similar nowadays. This is still surprising to people and I think docs can be improved further. [Eg at https://hledger.org/journal.html#directives]
|
In the report linked at https://twitter.com/LedgerTips/status/830238616261586945, I wanted to apply some journal directives to affect formatting of the output. I expected this to work:
It didn't, nor does
hledger -f tarsnap.preamble.journal -f tarsnap.journal ...
, because directives affect only the file they are in, and not other files specified with additional -f arguments.Ideally, this would just work, but there might be some complexities. Should directives affect subsequent files on the command line, or all files specified ? Should they affect just journal files, or all file types ? Would some directives work differently from others ? (Eg some directives are location-independent and some are not.)
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: