Skip to content
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

capture directive doesn't work as expected #2278

Open
badbob opened this issue Aug 18, 2023 · 2 comments
Open

capture directive doesn't work as expected #2278

badbob opened this issue Aug 18, 2023 · 2 comments

Comments

@badbob
Copy link

badbob commented Aug 18, 2023

capture  Expenses:Deductible:Medical  Medical

2023/08/18 * Medical expenses
    Medical                                     $100
    Cash

Output of ledger -f capture.ldr print actual:

2023/08/18 * Medical expenses
    Medical                                     $100
    Cash

But expected output according to documentation should be:

2023/08/18 * Medical expenses
    Expenses:Deductible:Medical                                     $100
    Cash
@badbob
Copy link
Author

badbob commented Aug 22, 2023

It looks like support of a capture directive was removed long time ago (~10 years ago) and later being replaced by alias. Support of regex for aliases (like it was described in documentation for capture) was implemented in #2280 pull request.

@badbob badbob closed this as completed Aug 22, 2023
@tbm
Copy link
Contributor

tbm commented Aug 22, 2023

@badbob thanks for this analysis. Can you submit a PR to remove capture from doc/ledger3.texi?

Thanks

@tbm tbm reopened this Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants