Simon Michael
75a6c1e510
fix: "every 29th/30th/31st day of month" dates with a start date ( fix #2032 )
...
Since hledger 1.25, "every Nth day of month" period rules with N > 28
could be off by a couple of days if given certain forecast start dates.
Eg `~ every 31st day of month` with `--forecast='2023-03-30..'`.
2023-05-03 19:18:35 -10:00
Simon Michael
bbecd611f1
imp: timedot: make one multi-posting transaction per date line ( #1754 )
...
Descriptions and comments are now more straightforward and similar to
journal format.
2023-05-03 19:18:35 -10:00
Simon Michael
50349f81f7
imp: timeclock: support comments and tags ( fix #1220 )
...
Breaking change: previously timeclock descriptions could contain
semicolons. Now a semicolon in the description will end it and
start a comment (which may contain tags).
2023-05-03 00:05:11 -10:00
Simon Michael
f7f86a709b
imp: timedot: fix day description/comment parsing; parse posting comments/tags
2023-05-02 17:03:03 -10:00
Simon Michael
1b19f3d330
dev: timedot: clarify, cleanup
2023-05-02 17:02:30 -10:00
Simon Michael
a771c8fc19
imp: revert 2b5194238
imp: generate auto postings on forecast transactions by default ( #2027 )
...
I found at least one user for whom this would be a breaking change
(they generate forecast txns, and have auto posting rules, but don't
want the latter applied to the former). I guess it's better to keep
things as they were for now: if you need auto postings on your
forecast txns you must use two flags, --forecast --auto.
2023-04-30 08:08:26 -10:00
Simon Michael
7f713f6a44
imp: Generated/modified txns/postings are now tagged only with --verbose-tags
2023-04-29 18:25:11 -10:00
Simon Michael
2b5194238b
imp: generate auto postings on forecast transactions by default
2023-04-29 16:00:14 -10:00
Simon Michael
9ebcd9ec28
fix: process postings in date order when inferring balance assignments ( fix #2025 )
2023-04-27 17:15:21 -10:00
Simon Michael
9d0eb20ac5
;dev: improve comment
2023-04-27 09:17:29 -10:00
Simon Michael
f5c3bbcaf0
fix: cli: posting comment lines no longer disturb the error marker ( fix #1927 )
2023-04-26 22:53:01 -10:00
Simon Michael
1be06c87c4
feat: bal: A new --count report type counts postings instead of amounts.
2023-04-20 14:36:41 -10:00
Simon Michael
996ccb0ea2
;doc: changes: merge from 1.29.2 branch
2023-04-07 14:26:45 -10:00
Simon Michael
ae23a18f87
;doc: update changelogs
2023-04-07 11:31:25 -10:00
Simon Michael
1c5dee2339
fix: doc: update manuals; regenerate all info manuals ( fix #2023 )
2023-04-06 14:13:39 -10:00
Simon Michael
1de8600067
imp: cli: try to ensure less
(and its more
mode) show ANSI ( fix #2015 )
...
If you use some other $PAGER, you will have to configure it to show
ANSI yourself (or disable ANSI, eg by setting NO_COLOR=1).
2023-04-06 11:13:00 -10:00
Simon Michael
c661fa7763
dev: lib: refactor pager
2023-04-06 11:12:56 -10:00
Simon Michael
6e7575317a
imp: "type:" queries now see through aliases/pivots, like acct: ( fix #2018 )
...
When doing a type: match we now also check the original unaliased,
unpivoted posting, as when doing an acct: match. This is effectively
how things worked with the older account type detection in hledger <1.27.
2023-04-06 11:12:35 -10:00
Simon Michael
c03d6b1123
imp: print: --match makes better choices
...
Previously, similarity completely outweighed recency, so a
slightly-more-similar transaction would always be selected no matter
how old it was. Now similarity and recency are more balanced,
and it should produce the desired transaction more often.
There is also new debug output (at debug level 1) for
troubleshooting.
2023-03-27 15:21:42 -10:00
Chris Lemaire
891853d2f2
queries: Update boolean queries to be case-insensitive
...
That is, the query operators AND, OR, and NOT are now case-insensitive.
Queries are otherwise left the same as they were.
2023-03-27 10:29:26 -10:00
Chris Lemaire
cddbae6467
queries: Prefix boolean queries with expr:
...
Boolean queries are now prefixed with an 'expr:' prefix, making them
completely separable from old queries and making the addition of them a
little more migration proof.
The tests are updated accordingly, changes made to the tests previously
are removed and extra cautious documentation is also removed.
2023-03-27 10:29:26 -10:00
Chris Lemaire
4f143d6bec
queries: Update documentation on boolean queries
...
Also add a test to check that the assertion on how boolean queries
combine with space-separated queries works.
2023-03-27 10:29:26 -10:00
Chris Lemaire
35db1cae4f
queries: Add generalised boolean queries
...
This commit changes some of the functions in the Query module and
changes the overall way to parse queries. Instead of using the words''
split function, this commit starts to fully parse the query, as it's
seen as a type of expression.
AND, OR, NOT, and space operators can be used. The space operator
simulates the behaviour from before, leaving a minimal amount of tests
that need to be adjusted to comply to the new behaviour.
2023-03-27 10:29:26 -10:00
Simon Michael
c2ab616c2d
dev: unbreak recent change, don't re-export Color/ColorIntensity for now
2023-03-18 20:19:50 -10:00
Simon Michael
b9af9ab367
;doc: update changelogs
2023-03-18 20:10:25 -10:00
Simon Michael
4d7d982f83
;cabal: update cabal files
2023-03-18 20:06:55 -10:00
Simon Michael
be8e64e498
imp: lib: export more terminal size, ANSI style/color helpers
...
Hledger.Utils.IO (and therefore Hledger and Hledger.Cli.Script) added:
getTerminalHeightWidth
getTerminalHeight
getTerminalWidth
Color(..)
ColorIntensity(..)
bold'
faint'
black'
red'
green'
yellow'
blue'
magenta'
cyan'
white'
brightBlack'
brightRed'
brightGreen'
brightYellow'
brightBlue'
brightMagenta'
brightCyan'
brightWhite'
rgb'
2023-03-18 19:59:00 -10:00
Simon Michael
207cad0dfb
;doc: update changelogs
2023-03-18 01:43:05 -10:00
Simon Michael
5ddb6028ed
;dev: lib: cleanup
2023-03-16 21:52:37 -10:00
Simon Michael
5655c533fa
;doc: merge release changelogs
2023-03-16 17:45:43 -10:00
Simon Michael
0f63a35ea3
;doc: update changelogs
2023-03-16 15:45:16 -10:00
Simon Michael
fe3477797b
;doc: update changelogs
2023-03-16 14:56:25 -10:00
Simon Michael
ee29893040
dev: fix Hledger.Utils.String import
2023-03-16 14:48:59 -10:00
Simon Michael
cc41704c92
;doc: update changelogs
2023-03-16 14:44:50 -10:00
Simon Michael
d3e4f8547c
imp: lib: Hledger.Utils.String: more string strippers
...
added:
strip1Char
stripBy
strip1By
Not used in hledger right now, but useful to offer in our scripting prelude.
2023-03-16 14:35:37 -10:00
Simon Michael
44805f96ef
;dev: ui, web: fixes for ghc 9.6; cleanup ( #2011 )
2023-03-15 20:43:51 -10:00
Simon Michael
658a650bb2
;dev: lib: another Balancing fix after ghc 9.6 support ( #2011 )
2023-03-15 20:26:57 -10:00
Simon Michael
3932bafc78
;cabal: update cabal files
2023-03-14 10:42:52 -10:00
Simon Michael
c790aa6145
;dev: lib: also build with GHC 9.6.1; add base-compat
2023-03-14 10:42:48 -10:00
Simon Michael
9ceb74062d
;doc: update manuals
2023-03-11 13:28:02 -10:00
Simon Michael
f75110f49c
;cabal: update cabal files
2023-03-11 13:27:25 -10:00
Simon Michael
a0ca339c46
;pkg: bump version to 1.29.99
2023-03-11 13:27:25 -10:00
Simon Michael
2e3872c3f1
;doc: changelogs: 1.29
2023-03-11 13:26:30 -10:00
Simon Michael
6dc91588e4
fix: lib: avoid using pager on Windows, part 2
2023-03-10 20:58:11 -10:00
Simon Michael
b83eb136cc
;cabal: update cabal files
2023-03-10 19:14:30 -10:00
Simon Michael
41e838ef83
fix: lib: avoid using pager on Windows, the package is not supported
2023-03-10 19:14:13 -10:00
Simon Michael
56c38b1b29
fix: areg: handle an extra account query correctly ( fix #2007 )
2023-02-21 10:04:07 -10:00
Simon Michael
44400e840c
dev: lib: clarify accountTransactionsReportItem
2023-02-21 09:47:59 -10:00
Simon Michael
7408bc02df
lib: Hledger.Data.RawOptions: add unsetboolopt
2023-02-20 16:24:54 -10:00
Simon Michael
fa70f160ae
imp: partial/inferred dates are flexible, full dates are not ( #1982 )
...
DateSpans are now now aware of exact/flexible dates.
2023-02-17 07:24:19 -10:00