hledger/hledger-lib/Hledger/Data
Stephen Morgan 74f0f37fb3 imp: queries: Allow regular expression depth queries
Previously depth-limiting was universal across all accounts, e.g. all
accounts are clipped to depth 2. However, sometimes you want certain
accounts clipped to a different depth than others, e.g. all expenses to
depth 3, while all assets to depth 2. This commit enables depth-limiting
to optionally include a regular expression, which limits the accounts it
applies to.

More than one depth limit can be passed, and they are applied to each
account name by the following rules:
- If one or more regular-expression depth limit applies, use the
  most specific one
- If no regular-expression depth limits apply, and a flat depth limit is
  supplied, use that
- Otherwise, do not do any depth limiting

For example, this will clip all accounts matching "assets" to depth 3,
all accounts matching "expenses" to depth 2, and all other accounts to
depth 1.
--depth assets=3 --depth expenses=2 --depth 1
2024-12-03 08:33:21 -10:00
..
JournalChecks imp!: check ordereddates: drop --date2 support; check primary dates only 2024-04-26 18:59:45 -10:00
Account.hs imp: queries: Allow regular expression depth queries 2024-12-03 08:33:21 -10:00
AccountName.hs imp: queries: Allow regular expression depth queries 2024-12-03 08:33:21 -10:00
Amount.hs dev: AmountFormat: add displayQuotes property to control enclosing quotes 2024-11-07 01:24:21 -10:00
Balancing.hs dev: move/rename nullsourcepos 2024-11-02 14:59:43 -10:00
Currency.hs lib: add Hledger.Data.Currency, currencySymbolToCode, currencyCodeToSymbol 2024-10-11 14:56:03 -10:00
Dates.hs dev: rename some Intervals for clarity [#2218] 2024-09-04 16:07:54 +01:00
Errors.hs imp: check commodities: also check commodities used in P directives [#2280] 2024-11-02 15:03:57 -10:00
Journal.hs imp:valuation: more compact and informative --debug=2 output [#2287] 2024-12-02 23:00:00 -10:00
JournalChecks.hs imp:print: clean up special tags; show them more often with --verbose-tags 2024-11-16 14:40:03 -10:00
Json.hs dev: AmountPrice,UnitPrice,TotalPrice -> AmountCost,UnitCost,TotalCost; related renames 2024-01-23 21:35:06 -10:00
Ledger.hs dev:clarify: rename jinferredcommodities to jinferredcommoditystyles 2024-11-02 15:52:07 -10:00
Period.hs ;dev: update doctests for weekly headings change [#2204] 2024-06-25 18:36:43 +01:00
PeriodicTransaction.hs imp:print: clean up special tags; show them more often with --verbose-tags 2024-11-16 14:40:03 -10:00
Posting.hs imp:print: clean up special tags; show them more often with --verbose-tags 2024-11-16 14:40:03 -10:00
RawOptions.hs imp:cli: detect --color more safely in most cases 2024-10-19 16:28:36 -10:00
StringFormat.hs dev: lib, cli, bin: enable/fix name shadowing warnings 2022-08-23 12:16:15 +01:00
Timeclock.hs imp: timeclock: support comments and tags (fix #1220) 2023-05-03 00:05:11 -10:00
Transaction.hs imp:print: clean up special tags; show them more often with --verbose-tags 2024-11-16 14:40:03 -10:00
TransactionModifier.hs imp:print: clean up special tags; show them more often with --verbose-tags 2024-11-16 14:40:03 -10:00
Types.hs imp: queries: Allow regular expression depth queries 2024-12-03 08:33:21 -10:00
Valuation.hs imp:valuation: more compact and informative --debug=2 output [#2287] 2024-12-02 23:00:00 -10:00