Simon Michael
731a416b8c
ui: register: scrolling pushes selection, like accounts screen
2021-11-18 22:21:37 -10:00
Simon Michael
3a57814402
ui: debounced clicking; click top/left margin to exit
2021-11-18 22:21:37 -10:00
Simon Michael
6d69ea9c29
ui: mouse scrolls accounts, register screens
2021-11-18 22:21:37 -10:00
Simon Michael
96a80fca70
ui: register: left click enters transaction screen
2021-11-18 22:21:37 -10:00
Simon Michael
35402fb472
ui: accounts: left click enters register
2021-11-18 22:21:37 -10:00
Simon Michael
2076d5a98b
ui: enable mouse support at startup
2021-11-18 22:21:37 -10:00
Simon Michael
8f37d8a611
;ref: ui: clarify vty construction
2021-11-18 22:21:37 -10:00
Simon Michael
7ba9a4d06b
feat: docs for decimal-mark ( #1670 , #1726 )
2021-11-18 22:17:07 -10:00
Lawrence
fb817ffa55
imp: journal: support decimal-mark directive in journal files
...
To match csv-rule and override amount-style as described in
https://github.com/simonmichael/hledger/issues/1670
2021-11-18 22:17:07 -10:00
Simon Michael
66b969a74c
;imp: bal --layout: streamline help more ( #1751 )
2021-11-18 21:27:47 -10:00
Stephen Morgan
4b6fe2c0bd
;doc: balance: Update docs to mention --layout.
2021-11-18 21:26:02 -10:00
Stephen Morgan
d82416b7b9
imp: balance: Add single-line display with elision back in, this time
...
with a separate option --layout=wide,WIDTH.
2021-11-18 21:26:02 -10:00
Stephen Morgan
8f1ae08f0a
test: balance: Add tests for --layout options.
2021-11-18 21:26:02 -10:00
Stephen Morgan
de2776c996
imp!: balance: Stop eliding long amounts. ( #1739 )
...
This feature has caused a lot of confusion, and we now have better ways
of making sure columns don't get too wide.
2021-11-18 21:26:02 -10:00
Stephen Morgan
7e21f05a83
imp: balance: Implement multi-line display for multicommodity balance reports.
...
This allows more control over how multicommodity amounts are displayed.
In addition to the default single-line display, and the recent commodity
column display, we now have multi-line display. This is controlled by
the --layout option, which has possible values "wide", "tall", and
"bare". The --commodity-column option has been hidden, but is equivalent
to --layout=bare.
squash
2021-11-18 21:26:02 -10:00
Stephen Morgan
3dce61ea09
fix: prices: Do not try to generate prices when there would be a zero
...
denominator.
Also correctly generate reverse prices for zero amounts.
2021-11-18 20:59:52 -10:00
Stephen Morgan
1c90c7f97a
fix: prices: Do not include zero amounts when calculating amounts for balance assignments. ( #1736 )
...
This is not usually a problem, but can get in the way of auto-inferring prices.
2021-11-18 20:59:52 -10:00
Stephen Morgan
e35d0b7865
fix: csv: Successfully parse empty csv file. ( #1183 )
2021-11-18 20:50:02 -10:00
Stephen Morgan
87a7a586d4
fix: csv: Handle multiple zero amounts in postings in csv files. ( #1733 )
2021-11-18 20:48:55 -10:00
Stephen Morgan
c6beb581a1
pkg: Use maximumBound instead of maximumDef to avoid deprecation
...
warnings in safe-0.3.18.
2021-11-14 21:49:58 -10:00
Simon Michael
ee276afc56
ci: fall back on checking last 5 commit messages, instead of 20
...
This will allow CI status to recover faster when a bad commit message
is accidentally merged. In some cases (eg force pushes of PRs with
more than 5 commits) not all commit messages will be checked at all
times.
2021-11-14 15:49:04 -10:00
Simon Michael
ff76927ee8
;backlog: build-tools
2021-11-13 09:34:38 -10:00
Stephen Morgan
8d161ebe32
cln: Silence build warning due to redundant import.
2021-11-11 19:42:06 -10:00
Stephen Morgan
ff0132df28
dev: Use realLength from doclayout instead of strWidth and textWidth. ( #895 )
...
This gives us more accurate string length calculations. In particular,
it handles emoji and other scripts properly.
2021-11-11 18:29:50 -10:00
Stephen Morgan
d1ae0c10d6
pkg: Bump stack lts and nightlies.
2021-11-11 18:29:50 -10:00
Stephen Morgan
f345fd0b78
imp: balance: Allow --related flag for balance reports. ( #1469 )
2021-11-08 14:03:50 -10:00
Stephen Morgan
38e311211d
lib!: Semigroup instance of PeriodicReportRow and PeriodicReport now
...
preserves first prrName, rather than the second.
Previously the second name would be taken, ignoring the first.
2021-11-07 07:56:08 -10:00
Stephen Morgan
1116846881
lib: Add Bifunctor instances for PeriodicReport and PeriodicReportRow.
2021-11-07 07:56:08 -10:00
Stephen Morgan
7597e525a3
fix: balance: Balance reports should consider date: queries when calculating
...
report span with --date2. (#1745 )
2021-11-06 08:51:53 -10:00
Simon Michael
41bde20095
timedot: a D default commodity (and style) is applied to timedot aounts
...
This means they can be priced and converted.
2021-11-05 23:34:46 -10:00
Simon Michael
f00e5c25ec
cln: fix warning
2021-11-05 23:32:47 -10:00
Stephen Morgan
9d5397deb6
fix: print: auto: The print command should always display inferred
...
amounts for --auto generated postings. (#1276 )
2021-10-31 09:42:58 -10:00
Joaquin "Florius" Azcarate
4006ab6d2d
; Fix the link to the developer workdflows
2021-10-31 09:09:55 -10:00
Stephen Morgan
1bc04685b7
pkg: Drop base-compat-batteries dependency.
...
Our supported stackage versions are now new enough that we don't need
any of the compatibility features anymore.
2021-10-31 07:56:07 -10:00
Stephen Morgan
c90e7dbc8d
cln: Move posting rendering functions into Hledger.Data.Posting.
...
Replace showPosting with a wrapper around postingAsLines.
The functions textConcat(Top|Bottom)Padded are no longer used anywhere
in the code base, and can be removed if desired.
This produces slightly different output for showPosting, in particular
it no longer displays the transaction date. However, this has been
marked as ‘for debugging only’ for a while, and is only used in
hledger-check-fancy assertions. The output there is still acceptable.
2021-10-31 07:50:50 -10:00
ShrykeWindgrace
72e94f4d80
; imp: use megaparsec's prettyprinter for assertion parse errors
2021-10-31 07:40:37 -10:00
Dmitry Astapov
4b1919de02
fix: roi: use posting dates when available, honor --date2
...
This will not change the results computed for the typical use-case,
just makes "roi" more thorough/consistent by supporting posting dates
when they are provided.
2021-10-11 11:22:46 -10:00
Simon Michael
1f2c11d1bc
ui: fix breakage from "areg: begin respecting --date2" ( #1731 )
2021-10-10 11:07:15 -10:00
Simon Michael
e4263e69e1
areg: begin respecting --date2: show txns' date2 ( #1731 )
2021-10-10 10:34:45 -10:00
Simon Michael
b4c1188c26
ref!: postingDateOrDate2, transactionDateOrDate2, whichDateFromOpts -> whichDate ( #1731 )
2021-10-10 10:34:35 -10:00
toonn
9ff5ac1288
; PR-template: Change comment syntax
...
The # syntax for comments results in all the lines being rendered as
separate headers because it's markdown syntax for titles. I believe the
markdown custom is to use `<!-- HTML comments -->`.
[ci skip]
2021-10-08 09:11:10 -10:00
toonn
1e4b5203a3
; PR-template: Update dev docs URL
...
The URL in the PR template redirects to a general contributing guide,
which is useful, but it's hard to see the trees for the forest when just
looking for PR and commit guidelines.
[ci skip]
2021-10-08 09:11:10 -10:00
toonn
ec40f5bd78
; cabal.project: Drop compatibility comment
...
The offending syntax is no longer used so the comment can be removed
too. Ideally `allow-newer` isn't used in the project's setup. The
problem should rather be fixed by adjusting constraints, though these
adjustments may need to be made in dependencies upstream.
Fixes #1365
[ci skip]
2021-10-08 08:31:43 -10:00
Simon Michael
7af2e79465
;cabal: update cabal files
2021-10-03 22:56:02 -10:00
Simon Michael
69905dbc25
;pkg: allow megaparsec 9.2
2021-10-03 22:55:10 -10:00
Simon Michael
fc8e482de5
;make: install-as-FOO: build executables and save as bin/hledger*-FOO
2021-10-03 22:55:10 -10:00
Stephen Morgan
94d9c28a63
cln: Replace all uses of deprecated !include with include.
...
Also include a test which makes sure !include is still parsed.
2021-09-27 15:04:35 -10:00
Simon Michael
d45311826b
;doc: BACKLOG: convert to headings
...
Use headings for items again, as far as possible, since they generate link targets.
2021-09-27 12:31:06 -10:00
Simon Michael
b63d1b84de
;make: site: revert
2021-09-27 12:17:11 -10:00
Simon Michael
6658c223d2
;doc: BACKLOG: preserve line breaks
2021-09-27 12:15:46 -10:00