Simon Michael
1f81730a00
balcmds: mention --no-elide's new commodity-revealing function
2020-10-05 08:57:08 -07:00
Simon Michael
c5513ba722
;tweak a few parse errors for clarity, consistency ( #1329 )
2020-09-19 08:10:39 -07:00
Simon Michael
73de12c264
;update changelogs
2020-09-07 16:17:58 -07:00
Simon Michael
2b715fbe0d
;update changelogs
2020-09-07 16:13:21 -07:00
Simon Michael
018bf8f474
;update manuals
2020-09-07 12:17:35 -07:00
Simon Michael
90adb95983
;update cabal files
2020-09-07 12:17:35 -07:00
Simon Michael
a151bcaec7
; bump hledger-lib, hledger, hledger-ui, hledger-web version to 1.19.99
2020-09-07 12:16:12 -07:00
Simon Michael
8599eda37c
allow megaparsec 9
2020-09-07 11:41:57 -07:00
Simon Michael
a1321b7f26
;shake: commandhelp -> commandtxts, don't build this for "manuals"
2020-09-07 11:41:56 -07:00
Simon Michael
a5fcb19bb0
;doc: changelog updates
2020-09-07 09:23:42 -07:00
Simon Michael
a9fbaaf284
;partial comment cleanups
2020-09-03 09:52:00 -07:00
Simon Michael
09ac90a70a
;doc: finalise changelogs
2020-09-01 20:28:04 -07:00
Simon Michael
3170cc7cbd
bump version to 1.19
2020-09-01 20:27:17 -07:00
Simon Michael
7aefa6f0ce
;doc: changelogs
2020-09-01 20:23:30 -07:00
Simon Michael
e44c1cfae8
;regen manuals
2020-09-01 16:31:18 -07:00
Simon Michael
c1a985f1c8
;bal: doc: drop link to resolved sorting issue ( #1279 )
2020-09-01 16:31:18 -07:00
Stephen Morgan
07dd30c1e5
lib,cli,ui: Change to consistent naming scheme for Hledger.Utils.Regex.
2020-09-01 11:36:34 +10:00
Stephen Morgan
af31d6e140
lib,cli,ui: Remove redundant Typeable and Data instances.
...
Also add some explicit import lists.
2020-08-31 15:41:30 +10:00
Stephen Morgan
e5371d5a6a
lib,cli,ui,web: Make Regexp a wrapper for Regex.
2020-08-31 12:04:45 +10:00
Stephen Morgan
f6fa76bba7
lib,cli: Get rid of magic values for asprecision, use a sum type instead.
2020-08-30 23:00:35 +10:00
Stephen Morgan
371b349b2e
lib,cli: Replace parsedate and mkdatespan with direct applications of fromGregorian, transaction now takes Day instead of a date string.
2020-08-29 15:08:28 -07:00
Stephen Morgan
2fd678e415
lib,cli,ui: Remove old CPP directives made redundant by version bounds.
2020-08-29 15:08:28 -07:00
Simon Michael
20336ddc4d
;doc: more file extensions tweaks
2020-08-21 09:21:46 -07:00
Simon Michael
c3d8857ae5
;doc: clarify csv file extensions and separator inferring
2020-08-21 09:01:23 -07:00
Stephen Morgan
4d5888aa8d
cli: No longer force --no-total in compound balance reports when using --percent.
2020-08-11 15:16:29 -07:00
Simon Michael
3f55c23603
;review, tag all error calls with an easier to find PARTIAL: comment ( #1312 )
2020-08-05 16:08:33 -07:00
Simon Michael
242c05fc9a
lib, journal: parseQuery, modifyTransactions are now total ( #1312 )
...
modifyTransactions now also requires a reference date, for parsing queries.
Relative dates are now permitted in auto posting rules.
2020-08-05 13:44:04 -07:00
Simon Michael
5d40b54043
;doc: regen manuals
2020-08-01 12:41:54 -07:00
Simon Michael
1eca6b8b5c
;queries: document quarter query term ( #1247 )
2020-07-31 18:15:18 -07:00
Stephen Morgan
081ee390ab
lib: Change skipMany spacenonewline to takeWhileP Nothing isNonNewlineSpace.
2020-07-22 14:58:53 -07:00
Simon Michael
1c4e0c3cff
;reg,areg: interlink their docs
2020-07-22 07:57:53 -07:00
Simon Michael
640d2f2972
;bs/bse/cf/is: update help to mention account types
2020-07-19 11:15:50 -07:00
Simon Michael
21b91f17cb
;regen manuals
2020-07-18 12:37:06 -07:00
Simon Michael
847fc23236
ui: use t/l keys for tree/list, T for "today", drop vi keys?! retune help ( #1286 )
2020-07-17 15:42:05 -07:00
Simon Michael
3636875a5d
cli: add -t/-l short flags for --tree/--flat; improve help ( #1286 )
2020-07-17 15:36:07 -07:00
Simon Michael
ba49699728
cli: improve --color/--colour help & help layout
2020-07-17 15:36:07 -07:00
Stephen Morgan
30f02b0882
lib: account name clipping takes Maybe Int as depth.
2020-07-17 07:41:27 -07:00
Stephen Morgan
51ea6d9f25
lib: Make queryDepth return Maybe Int.
2020-07-16 10:05:53 -07:00
Simon Michael
73141aa645
;regen help/manuals
2020-07-14 12:22:27 -07:00
Simon Michael
144415f6fa
;cli: improve --color help
2020-07-14 12:22:11 -07:00
Simon Michael
031f72ac4b
;help/manuals
2020-07-14 12:09:54 -07:00
Simon Michael
403cb457b7
;cabal files
2020-07-14 12:09:45 -07:00
Simon Michael
3452270241
cli: --color/--colour option; smart emacs, windows autodetection ( #1296 )
2020-07-14 12:08:36 -07:00
Simon Michael
02043d4e65
;areg: doc: fix heading level
2020-07-14 10:37:49 -07:00
Simon Michael
4f7bee7abf
;regen help, manuals
2020-07-14 10:25:04 -07:00
Simon Michael
9198449ee3
areg: an account transaction register like the ones in ui/web ( #1294 )
...
;areg: debug output
;areg: show a title indicating which account was picked
This might be a bit of a pain for scripting, but otherwise it can be
quite confusing if your argument matches an account you didn't expect.
;areg: improve CSV headings
;areg: show at most two commodities per amount
2020-07-14 10:24:57 -07:00
Simon Michael
fd00d9c1cc
tags: add --parsed flag, hide empties without --empty
...
With --parsed flag, all tags or values are shown in the order they
are parsed from the input data, including duplicates.
With -E/--empty, any blank/empty values will also be shown, otherwise
they are omitted.
2020-07-14 10:20:52 -07:00
Simon Michael
c99989acd7
;cli: improve --value help, mention 'then'
2020-07-13 11:52:14 -07:00
Simon Michael
23bef9a01b
;refactor: extracted reportPeriodName for making report headings
2020-07-09 12:54:20 -07:00
Simon Michael
0a9b05f3fd
;refactor balance report column headings
2020-07-09 11:49:16 -07:00
Simon Michael
09b1736d5a
bal, bs, cf, is: update flat/tree help; order options a bit better
2020-07-07 19:00:10 -07:00
Stephen Morgan
5ffe1d7656
cli: Allow --drop in account command in tree mode.
2020-07-07 16:05:05 -07:00
Stephen Morgan
1425301a8c
lib, cli: Use --flat as the default mode for all reports.
2020-07-07 15:49:08 -07:00
Stephen Morgan
df84a417d7
doc: Remove references to old limitations of boring parent ellision.
2020-07-07 15:49:08 -07:00
Simon Michael
644be1e1cf
codes: add missing files to stack/cabal config
2020-07-07 13:56:45 -07:00
Simon Michael
ae4fce8077
;regen manuals
2020-07-07 13:42:11 -07:00
Simon Michael
3ad313d8fa
codes: new command for listing transaction codes
2020-07-07 13:38:49 -07:00
Simon Michael
a7a01c0f9f
descriptions, notes, payees: fix/improve help and comments
2020-07-07 13:38:49 -07:00
Simon Michael
95ee601548
;regen manuals
2020-07-07 10:19:56 -07:00
Simon Michael
eee9402ba8
add: fix help - arguments are inputs, not a query
2020-07-07 10:10:13 -07:00
Simon Michael
0bbd88fe7f
;doc: changelogs
2020-07-05 09:24:16 -07:00
Simon Michael
44c3eb1904
add a color argument to most amount show helpers, drop cshow variants
...
This is an API change, but it seems better than having additional
colour-supporting variants and trying to avoid duplicated code.
I stopped short of changing showAmount, so cshowAmount still exists.
2020-07-05 06:59:16 -07:00
Simon Michael
2739a70a38
balcmds: elide amounts with 3 or more commodities, unless --no-elide
...
Multicolumn balance reports showing many commodities tend to become
unreadably wide, especially in tree mode. Now by default we show at
most two commodities, and a count of the rest if there are more than
two. This should help keep reports somewhat readable by default.
2020-07-05 06:59:16 -07:00
Simon Michael
3d57d4793d
;doc: regen manuals
2020-07-04 16:17:13 -07:00
Simon Michael
aea0dac235
bal: warn about #1279 in manual
2020-07-04 16:13:35 -07:00
Stephen Morgan
c811ea4c7b
lib, cli, ui, web: intopt and friends now make sure their arguments fit
...
inside bounds.
2020-07-03 12:35:51 -07:00
Simon Michael
765fb732c9
debug: move command parsing debug output down to level 8
2020-07-03 11:37:01 -07:00
Stephen Morgan
4fc72328d2
lib, cli: Introduce convienience function compoundBalanceReport.
2020-06-28 07:29:49 -07:00
Stephen Morgan
604868cea5
lib, cli: Move CompoundBalanceReport into ReportTypes, compoundReportWith into MultiBalanceReport, share postings amongst subreports.
2020-06-28 07:29:49 -07:00
Simon Michael
e090e0f949
add lower bound needed for aeson, to help cabal ( #1268 )
2020-06-23 14:55:42 -07:00
Stephen Morgan
b3cd865786
lib: Add fortnightly as a synonym for biweekly.
2020-06-23 06:48:20 -07:00
Simon Michael
e0fab4f882
Merge pull request #1256 from Xitian9/balanceReport
...
SMorgan:
This PR aims to accomplish two major goals:
- Get boring parent ellision working for multiBalanceReport
- Remove the special BalanceReport code, and just use multiBalanceReport
I believe it does both, with the following additional benefits:
A refactor of multiBalanceReportWith, to make the structure easier to follow, and with a clearer division of responsibilities
All decisions for how an account name is to be displayed are now made in multiBalanceReport, rather than scattered around the code base
Some miscellaneous improvements in account name rendering, including --drop now working with MultiBalanceReports, and addressing some of #373
Algorithmic changes:
- Using HashMap AccountName (Map DateSpan Account) instead of [[MixedAmount]] is new. I admit I didn't profile this change (though given the nubs and lookups, I thought it was appropriate), so I'm glad it produces a speedup.
- Producing the starting balances no longer calls the whole balanceReport, just the first few functions to get what it needs.
- displayedAccounts is completely rewritten. Perhaps one subtle thing to note is that in tree mode it no longer excludes nodes with zero inclusive balance unless they also have zero exclusive balance.
SMichael:
I'll mark the passing of the old multiBalanceReport, into which I poured many an hour :). It is in a way the heart (brain ?) of hledger - the key feature of ledgerlikes (balance report) and a key improvement introduced by hledger (tabular multiperiod balance reports). You have split that 300-line though well documented function into modular parts, which could be a little harder to understand in detail but are easier to understand in the large and more amenable to further refactoring. Then you fixed some old limitations (boring parent eliding in multi period balance reports, --drop with tree mode reports), allowing us to drop the old balanceReport and focus on just the new multiBalanceReport. And for representing the tabular data you replaced the semantically correct but inefficient list of lists with a map of maps, speeding up many-columned balance reports significantly (~40%). Last and not least you made it really easy to review. Thanks @Xitian9, great work.
2020-06-23 06:42:22 -07:00
Simon Michael
176011905e
;changelogs
2020-06-22 12:24:01 -07:00
Simon Michael
368297102d
;regen manuals
2020-06-22 12:20:14 -07:00
Dmitry Astapov
c8a84e3c96
cli: print -O sql
2020-06-22 12:17:33 -07:00
Stephen Morgan
d2e0312ab1
cli: Make --no-total remove subtotals from CompoundBalanceReport, not just net total.
2020-06-22 12:16:07 -07:00
Stephen Morgan
7a5416928e
cli: multiBalanceReport: Remove redundant code branch.
2020-06-22 22:28:09 +10:00
Stephen Morgan
e079c8b808
lib: multiBalanceReport: Remove old balanceReport code, update some tests.
2020-06-22 22:27:09 +10:00
Stephen Morgan
5f0918217a
multibalanceReport: Move responsibility for determining displayed name in multiBalanceReportWith, not at point of consumption.
2020-06-22 22:20:09 +10:00
Simon Michael
536bea2a78
roi: show errors without a traceback
2020-06-21 11:02:16 -07:00
Simon Michael
ce4de7aeb9
;doc: regen manuals
...
[ci skip]
2020-06-21 10:36:21 -07:00
Simon Michael
24996caaeb
bump to dev version
2020-06-21 10:35:52 -07:00
Simon Michael
c24f04823a
;doc: clarify print changelog
2020-06-21 10:23:27 -07:00
Simon Michael
6216258b41
;doc: finalise 1.18.1 changelogs
2020-06-21 10:22:53 -07:00
Simon Michael
128836f6f8
;changelogs
2020-06-20 18:24:15 -07:00
Simon Michael
06c174b236
;valuation: doc edits
2020-06-19 17:17:49 -07:00
Simon Michael
fae1cc262e
;regen manuals
2020-06-19 14:47:41 -07:00
Simon Michael
e3cae4aadc
valuation: implement new --infer-value flag & semantics ( #1239 , #1253 )
2020-06-19 14:40:20 -07:00
Simon Michael
e143ad2695
;valuation: doc specifying new proposed behaviour ( #1239 , #1253 )
2020-06-19 14:40:17 -07:00
Simon Michael
06d5014f5f
;lib: multibalancereport: apply debug output policy
2020-06-16 21:00:08 -07:00
Martin Michlmayr
7310951178
doc: fix typos
2020-06-16 19:13:18 -07:00
Simon Michael
684cb45e1a
tweak debug levels, document some guidelines
...
Beginnings of a project-wide policy for what output to show at
each debug level, for now. Later we'll want more flexibility,
eg filtering by topic.
2020-06-14 17:17:09 -07:00
Simon Michael
a384041f7c
;doc: valuation: clarify that -V requires P directives ( #1239 , #1253 )
2020-06-14 15:41:48 -07:00
Dmitry Astapov
802378999f
cli: changes to "hledger print -O csv" output
2020-06-13 16:26:27 -07:00
Simon Michael
6711e47c7c
;doc: valuation: more edits
2020-06-13 14:15:01 -07:00
Simon Michael
c8773854f0
;doc: valuation: more cleanup
2020-06-13 12:41:02 -07:00
Simon Michael
07bda4105f
;doc: valuation: tweak
2020-06-13 12:30:13 -07:00
Simon Michael
558abf4bd7
;doc: valuation: simplify
2020-06-13 12:25:17 -07:00
Simon Michael
4e182e651b
;doc: valuation: clarify this section; note a recent change
...
Note that default valuation commodity is now chosen from the latest
suitable P directive on any date, not just before the valuation date.
2020-06-13 12:20:55 -07:00
Simon Michael
03b4b2dedc
journal: default valuation commodity comes from P directives only ( #1239 , #1253 )
2020-06-12 21:25:38 -07:00
Simon Michael
dfccfe33c1
;cli, web: relnotes: add some missing names/item
2020-06-09 15:54:08 -07:00
Simon Michael
729e87066f
;cabal files
2020-06-07 13:00:40 -07:00
Simon Michael
aee6b49d36
;bump date in changelogs, installer
2020-06-07 12:45:55 -07:00
Simon Michael
b389ee98dd
;update tested-with
2020-06-07 11:59:36 -07:00
Simon Michael
e8e27821d9
;finalise changelogs
2020-06-07 11:51:40 -07:00
Simon Michael
09b6d44562
;manuals
2020-06-06 17:21:18 -07:00
Simon Michael
a54376e204
;regen cabal files
2020-06-06 17:20:13 -07:00
Simon Michael
19020939c9
;bump versions to 1.18
2020-06-06 17:18:15 -07:00
Simon Michael
fa077415d4
;edit changelogs
2020-06-06 16:53:41 -07:00
Simon Michael
b86ced5ee9
lib: replace jsonPrettyText with toJsonText in Hledger.Data.Json
2020-06-06 12:54:58 -07:00
Simon Michael
5757c386d8
;draft changelogs
2020-06-05 15:18:23 -07:00
Simon Michael
e5a0bddbe6
;regen manuals
2020-06-05 14:44:37 -07:00
Simon Michael
88051b93ab
;cli: doc: regular expressions: fix special characters link
2020-06-05 07:24:33 -07:00
Stephen Morgan
be25fe360e
lib: Parser now accepts .. as a synonym for to in date ranges.
2020-06-04 19:30:42 -07:00
Stephen Morgan
935abd1842
lib: Use .. in place of ,, for date ranges in compound balance reports.
2020-06-04 19:30:42 -07:00
Simon Michael
d1f62f0f2e
print, reg, balcmds: show json output pretty-printed
2020-06-04 15:13:28 -07:00
Simon Michael
9bc8c5d668
;cli: doc: json output seems not pretty printed right now
2020-06-04 13:59:26 -07:00
Dmitry Astapov
b7413edf22
lib: --forecast=PERIODICEXPR. Fixes #835 , #1236
2020-06-03 15:53:00 -07:00
Simon Michael
8b0618ce4d
;cli: doc: not basically
2020-06-01 04:48:30 -07:00
Simon Michael
97f2235bca
;lib: refactor amount cost functions
...
Rename costOfAmount -> amountCost, costOfMixedAmount -> mixedAmountCost,
drop amountToCost, mixedAmountToCost.
2020-05-31 15:48:08 -07:00
Simon Michael
660ba7e1d9
lib: clarify zero-checking function names
...
isZeroAmount -> amountLooksZero
isReallyZeroAmount -> amountIsZero
isZeroMixedAmount -> mixedAmountLooksZero
isReallyZeroMixedAmount -> mixedAmountIsZero
isReallyZeroMixedAmountCost dropped
2020-05-29 18:57:22 -07:00
Dmitry Astapov
54300328cd
cli: ability to pass arguments to getHledgerCliOpts + two example scripts
2020-05-27 04:58:57 -07:00
Simon Michael
9417ee625e
;regen manuals
2020-05-25 17:49:01 -07:00
Simon Michael
93154e9251
update and clean up valuation docs ( #1239 )
2020-05-25 17:45:31 -07:00
Dmitry Astapov
cbacef21eb
lib: multiBalanceReport derives query from ReportOpts
2020-05-25 15:50:14 -07:00
Simon Michael
61bec588d2
print,reg,balcmds: list output formats accurately in --help ( #689 )
...
Also:
- tweak the unsupported output format message
- Hledger.Cli.CliOptions no longer exports outputflags
2020-05-23 13:54:41 -07:00
Simon Michael
5f1a864c20
print,reg,balcmds: fix JSON output, which wasn't JSON ( #689 )
2020-05-23 13:30:22 -07:00
Simon Michael
4706b8cb00
;regex doc tweaks
2020-05-10 13:15:15 -07:00
Simon Michael
24209a952c
;regex doc tweaks
2020-05-10 13:13:51 -07:00
Simon Michael
71111148ed
;regex doc tweaks
2020-05-10 13:11:53 -07:00
Simon Michael
f167c223a2
;csv: emphasize regular expressions features and doc
2020-05-10 13:03:09 -07:00
Simon Michael
e5ed001ce8
;doc: clarify when regexps do and do not support backreferences
2020-05-09 15:35:53 -07:00
Simon Michael
6935c46b2c
;regen cabal files with latest stack/hpack (2.3.1/0.33.0)
2020-05-02 17:31:35 -07:00
Simon Michael
9dc015d974
;doc: typo
2020-04-29 11:01:27 -07:00
Simon Michael
c0dc71ae25
;doc: update the locale troubleshooting doc
2020-04-29 10:59:08 -07:00
Simon Michael
9cdf2953da
;api, ci: drop old embedded doc symlinks, should fix CI
2020-04-20 18:25:08 -07:00
Simon Michael
df92c36679
;changelogs
2020-04-19 14:45:07 -07:00
Simon Michael
a016a43785
cli: fix hiding of redundant source scripts when a .com/.exe exists
...
Related to #1225 .
2020-04-15 11:33:38 -07:00
Simon Michael
3b59a95a54
;cli, journal: doc: consistent heading capitalisation, whitespace
2020-04-08 21:14:38 -07:00
Simon Michael
fedde7fab1
journal: also support the total lot price variants ({{}}, {{=}})
2020-04-08 19:18:39 -07:00
Simon Michael
5beeb56a87
;journal: document improved lot price parsing; changelog
2020-04-08 19:02:24 -07:00
Simon Michael
898cda4ee5
;changelogs
2020-04-06 18:38:38 -07:00
Simon Michael
e7e9f1ee3b
;doc: cli: troubleshooting: mention C.UTF-8
2020-03-27 14:41:12 -07:00
Simon Michael
b6e4a1bdc0
;doc: cli: troubleshooting: clarify locale spelling a bit
2020-03-27 13:37:06 -07:00
Simon Michael
293e2d81d1
;changelogs
2020-03-25 18:42:26 -07:00
Simon Michael
d868a7e170
;update cabal files
2020-03-22 10:49:49 -07:00
Simon Michael
c6951bf7c6
;doc: more tweaks to package readmes, hackage descriptions
2020-03-22 10:49:02 -07:00
Simon Michael
40d3a5c1f4
;update cabal files
2020-03-22 09:28:10 -07:00
Simon Michael
9ca8d7cea9
;update tested-with
2020-03-22 09:27:50 -07:00
Simon Michael
d59ccb260b
;doc: consistent markdown readmes for packages, part 2
2020-03-22 09:27:34 -07:00
Simon Michael
617c2ecbc5
;doc: consistent markdown readmes for packages
2020-03-22 09:07:47 -07:00
Simon Michael
1a606870ca
;regen docs
2020-03-19 16:05:52 -07:00
Simon Michael
35ba2e4e9e
;bal: doc: recommend using the same commodity for budget goals
2020-03-19 16:03:58 -07:00
Simon Michael
6e37d11bdd
;changelogs: typo, fix hledger-web item
2020-03-19 14:26:55 -07:00
Simon Michael
9631ca561c
;update changelogs "high water marks"
2020-03-19 14:09:37 -07:00
Simon Michael
4191aad049
;update changelogs from release branch
2020-03-19 14:07:53 -07:00
Simon Michael
96b4f0be4f
require newer Decimal, math-functions, fixing inconsistent rounding
...
Decimal 0.5.1+ changed to banker's rounding (round to nearest even
number), and math-functions 0.3.3.0 (used by roi) fixed various
precision-related issues. Now we require the latest versions of these.
This was causing some functional test failures when building with old
GHCs/snapshots.
2020-03-19 10:10:55 -07:00
Simon Michael
cf7de57836
;update changelogs
2020-03-18 16:17:13 -07:00
Simon Michael
70e85d8e4b
;doc: regen manuals
...
[ci skip]
2020-03-07 15:06:39 -08:00
Simon Michael
1883ff4499
bump to dev version
2020-03-07 15:06:18 -08:00
Simon Michael
5639b47d85
;ci: use --pedantic for all; fix a warning with unit test suites
2020-03-07 14:43:50 -08:00
Simon Michael
7ad0f9dd6d
;lib, cli: fix success-hiding in unit test suites
2020-03-07 14:10:22 -08:00
Simon Michael
5ab31f1111
;lib, cli: hide successes in unit test suites' output
2020-03-07 04:00:55 -08:00
Stephen Morgan
702c958487
lib: Replace some utility functions with library functions.
2020-03-02 12:45:30 -08:00
Simon Michael
6dfdc2bee8
;one more cabal file update. Not in hackage tarballs.
2020-03-01 17:42:20 -08:00
Simon Michael
07a05d5c76
;doc: finalise changelogs
...
More cleanup needed, but time's up.
[ci skip]
2020-03-01 17:33:18 -08:00
Simon Michael
061bf73b61
;doc: regen manuals
...
[ci skip]
2020-03-01 17:29:01 -08:00
Simon Michael
ba44d00bed
;bump version to 1.17
2020-03-01 17:29:01 -08:00
Simon Michael
889767f1bd
;bump tested-with
...
[ci skip]
2020-03-01 17:28:43 -08:00
Simon Michael
04fb132496
;doc: draft changelogs
...
[ci skip]
2020-03-01 16:44:28 -08:00
Simon Michael
2c8a6e988f
lib: Hledger.Read.CsvReader cleanup
...
Exports added: CsvRecord, CsvValue, csvFileFor
Exports removed: expandIncludes, parseAndValidateCsvRules, transactionFromCsvRecord
2020-02-27 23:37:32 -08:00
Simon Michael
3aebf03864
;doc: json tweaks
...
[ci skip]
2020-02-26 11:48:09 -08:00
Simon Michael
a33a9d61c2
json: use a simpler, more consumable number representation ( #1195 )
...
Amounts in JSON are now rendered as simple Numbers with up to 10
decimal places, instead of Decimal objects which would in some cases
have 255 digits, too many for most JSON parsers to handle.
A provisional fix, see the comment in Json.hs for more detail.
2020-02-26 11:48:09 -08:00
Simon Michael
4c321cee4a
;doc: update output dest/format docs; add notes about JSON
...
[ci skip]
2020-02-25 09:25:48 -08:00
Simon Michael
2a5f7819af
bs,cf,is,bal,print,reg: support json output format
2020-02-24 17:49:53 -08:00
Simon Michael
bc9bdf8108
;print: refactor, drop unneeded ropts tweak
2020-02-24 17:49:53 -08:00
Simon Michael
7f16d23898
;refactor: extract --value=then error message
2020-02-24 17:49:53 -08:00
Simon Michael
8b520b5c3e
bs,cf,is,bal,print,reg: reject invalid output formats
2020-02-24 17:49:45 -08:00
Simon Michael
7ec25da13a
web: edit/upload: normalise line endings, avoiding parse errors ( #1194 )
...
Renamed: writeValidJournal -> writeJournalTextIfValidAndChanged
Added comments clarifying line ending behaviour of:
add, import, appendToJournalFileOrStdout, readFilePortably,
writeFileWithBackupIfChanged, writeJournalTextIfValidAndChanged
Summary of current behaviour:
- hledger add and import commands will append with (at least some)
unix line endings, possibly causing the file to have mixed line
endings
- hledger-web edit and upload forms will write the file with
the current system's native line endings, ie changing all
line endings if the file previously used foreign line endings.
2020-02-24 14:04:44 -08:00
Simon Michael
696ec4998b
;doc: regen help/manuals
...
[ci skip]
2020-02-22 11:40:41 -08:00
Simon Michael
b9b5702946
;doc: add hledger-ui note to --forecast help ( #1193 )
...
[ci skip]
2020-02-22 11:40:41 -08:00
Simon Michael
e8e1566083
;bal: doc: document --transpose; remove obsolete limitation note
...
[ci skip]
2020-02-20 10:02:02 -08:00
Simon Michael
bd0753101e
bs, cf, is: in csv output, subreport headings had two excess columns
2020-02-12 10:48:04 -08:00
Simon Michael
dad4d9b662
print: be sure to value all postings; -V/-X/--value now imply -x
...
Previously -B implied -x; now any of the valuation flags do.
This avoids a bug where print -V of a transaction with an implicit
commodity conversion would convert only some of its postings to value.
Also, more valuation tests.
2020-02-10 12:41:36 -08:00
Mateus Furquim
05814e6fe7
Fix extra $ symbol
2020-02-10 10:18:20 -08:00
Simon Michael
af73547615
;print, register: doc: some corrections to --value=then's effects
...
[ci skip]
2020-02-10 08:40:50 -08:00
Simon Michael
aa96b41efe
print, register: add --value=then, valuing at each posting's date
...
Currently this will give an error with other kinds of report.
2020-02-10 08:20:39 -08:00
Simon Michael
4d94a5273b
;doc: manuals: whitespace cleanup
...
Remove a bunch of trailing whitespace with M-x whitespace-cleanup.
Except for examples showing hledger output, which might be tested
with shelltest some day, so stripping that whitespace might be problematic.
[ci skip]
2020-02-08 12:44:54 -08:00
Simon Michael
98d0cc9c17
;doc: regen manuals
...
[ci skip]
2020-02-08 11:56:03 -08:00
Simon Michael
54e633e186
;doc: hledger, journal, csv: consistent use of pipe tables
...
For consistency, ease of editing, and to fix unwanted content display
when cycling visibility in markdown-mode.
[ci skip]
2020-02-08 11:52:18 -08:00
Simon Michael
ea4b69db32
;doc: hledger: markdown note
...
[ci skip]
2020-02-08 11:40:40 -08:00
Simon Michael
e3ab3b9985
;doc: regen all manuals, bumping month
...
[ci skip]
2020-02-08 11:20:25 -08:00
Simon Michael
078e9c8e9c
;doc: hledger: merge examples, options, commands files
...
[ci skip]
2020-02-08 11:15:27 -08:00
Simon Michael
d60b053e11
;doc: regen manuals
...
[ci skip]
2020-02-08 11:11:40 -08:00
Simon Michael
e52a6281fb
;doc: hledger: inline troubleshooting, cleanups, m4 docs
...
[ci skip]
2020-02-08 11:10:23 -08:00
Simon Michael
9a52523438
;doc: hledger: not git commit -am, just -m
...
[ci skip]
2020-02-07 16:44:52 -08:00
Simon Michael
8c5aa130e7
;doc: hledger: reorder OPTIONS sections, move one to COMMON TASKS
...
[ci skip]
2020-02-07 12:14:43 -08:00
Simon Michael
202d2e945b
;doc: regen manuals
...
[ci skip]
2020-02-07 12:14:08 -08:00
Simon Michael
fd64d7bb3a
;doc: regen manuals
...
[ci skip]
2020-02-07 10:45:57 -08:00
Simon Michael
6878f74174
;doc: hledger: write the new examples (Common Tasks) section
...
Examples are tested and should be correct.
[ci skip]
2020-02-07 10:42:57 -08:00
Simon Michael
743a63c319
;doc: consolidate hledger manual a bit
2020-02-06 17:52:37 -08:00
Simon Michael
659a034393
;doc: makde some comments less like markdown headings
...
[ci skip]
2020-02-05 19:32:38 -08:00
Simon Michael
6830139b70
;checkdupes: help: fix link
2020-01-28 09:20:42 -08:00
Simon Michael
7011160bfd
;allow base 4.14/GHC 8.10
2020-01-26 08:12:25 -08:00
Simon Michael
b1de2f2308
;doc: drop redundant version message from web manuals
...
[ci skip]
2020-01-25 19:33:12 -08:00
Simon Michael
24c6828a5c
;doc: regen manuals
...
[ci skip]
2020-01-25 17:10:34 -08:00
Simon Michael
444c4342ed
;doc: manuals: hide NAME/SYNOPSIS/DESCRIPTION headings in web manuals
...
[ci skip]
2020-01-25 16:57:51 -08:00
Simon Michael
a6ec6b40da
;doc: manuals: tweak standard description, make hledger's consistent
...
[ci skip]
2020-01-25 16:55:58 -08:00
Simon Michael
f1f32e8341
;close: doc: cleanups, remove dangerous >> example ( #1165 )
...
[ci skip]
2020-01-22 15:32:36 -08:00
Simon Michael
b4ced3188e
;doc: regen manuals
...
[ci skip]
2020-01-22 15:22:56 -08:00
Simon Michael
5ba3cc6f42
close: regularise the --open*/--close* flags for memorability ( #1165 )
...
--closing -> --close
--opening -> --open
--close-to -> --close-acct
--open-from -> --open-acct
The old flags are still accepted for backward compatibility, but are
not shown in --help or docs, to conserve screen and brain space.
2020-01-22 15:19:24 -08:00
Simon Michael
cda8909aae
close: don't repeat the description by default ( #1165 )
...
You'll almost certainly want the opening/closing descriptions to be
different, for filtering, so making --close-desc and --open-desc fully
independent is a better default.
And more doc cleanups.
2020-01-22 15:04:05 -08:00
Simon Michael
ceedcb1a18
;doc: regen manuals
...
[ci skip]
2020-01-22 14:50:21 -08:00
Simon Michael
458de89aae
;close: doc tweaks
...
[ci skip]
2020-01-22 14:42:01 -08:00
Simon Michael
f14ae7df3a
;doc: regen manuals
...
[ci skip]
2020-01-22 14:41:08 -08:00
Simon Michael
72d0190d1d
;close: doc tweaks
...
[ci skip]
2020-01-22 14:40:20 -08:00
Simon Michael
d93c69146d
;doc: regen manuals
...
[ci skip]
2020-01-22 14:30:50 -08:00
Simon Michael
f1110d163d
close: --close-desc/--open-desc customise the descriptions ( #1165 )
2020-01-22 14:30:12 -08:00
Simon Michael
4bb840a0f3
close: use the same default equity account for both ( #1165 )
...
And some doc cleanups.
"equity:opening/closing balances" is now the default account for both.
2020-01-22 14:29:31 -08:00
Simon Michael
9710c86c7f
;doc: regen manuals
...
[ci skip]
2020-01-22 12:52:41 -08:00
Simon Michael
7500002ee5
close: hide equity amounts by default, for simpler entries ( #1165 )
...
-x/--explicit shows them, as with print.
2020-01-22 12:52:16 -08:00
Simon Michael
2645b76ff0
close: hide prices by default, show them with --show-costs ( #1165 )
...
close no longer preserves costs, generating huge entries when there
are many foreign currency/investment transactions, unless you ask it to.
2020-01-22 12:52:01 -08:00
Simon Michael
dee9c0f150
;close: --close-to also sets --open-from and vice versa ( #1165 )
2020-01-22 08:52:20 -08:00
Simon Michael
aa8c18fcc8
;close: refactor ( #1165 )
2020-01-22 08:34:13 -08:00
Simon Michael
42840dd4c2
;close: dedent ( #1165 )
2020-01-22 08:27:01 -08:00
Simon Michael
98b90a8a7b
;close: cleanups ( #1165 )
2020-01-22 08:26:59 -08:00
Simon Michael
090f65ec83
;doc: regen manuals
...
[ci skip]
2020-01-20 18:02:42 -08:00
Simon Michael
69bc8f803b
close: fix some inappropriate rounding, ensure the txn balances ( #1164 )
2020-01-20 18:01:33 -08:00
Simon Michael
1e9f30bafc
close: add the --interleaved flag; refactor a little
...
Interleaved equity postings make troubleshooting easier.
2020-01-20 18:01:29 -08:00
Simon Michael
9bd7a713f9
;print: expand -x doc, mention that it also shows prices
...
[ci skip]
2020-01-20 12:58:47 -08:00
Simon Michael
42dfde141a
;doc: changelogs: update from 1.16.2, cleanups
2020-01-14 11:19:05 -08:00
Simon Michael
dba0b117f4
;doc: draft changelogs
2020-01-14 10:08:59 -08:00
Simon Michael
445e8aa3cc
add support for megaparsec 8 ( #1175 )
2020-01-14 09:54:06 -08:00
Brian Wignall
473b3376ab
;doc: update shell output in hledger*/*.m4.md to use ISO date formatting
2020-01-13 12:32:41 -08:00
Brian Wignall
24026d629a
Change "showEndDates" formatting to yyyy-mm-dd in CompoundBalanceCommand
2020-01-07 15:58:54 -08:00
Brian Wignall
00eb0b3c8f
Make "stack test" pass again
2020-01-07 15:58:22 -08:00
Brian Wignall
35481a665b
Change Date output to yyyy-mm-dd
2020-01-07 15:58:22 -08:00
Aleksandar Dimitrov
8df4e1ed83
Remove --separator command line argument
2020-01-05 14:45:57 -08:00
Simon Michael
65d0fda245
;doc: regen manuals
...
[ci skip]
2020-01-05 10:54:11 -08:00
Simon Michael
2101939345
;doc: update arg file doc, note syntax limitations
...
[ci skip]
2020-01-05 10:53:22 -08:00
Simon Michael
07029047f5
;doc: regen manuals again
...
[ci skip]
2020-01-05 09:17:02 -08:00
Simon Michael
cfb2a61ae1
;bump to dev version; bump man page dates
...
[ci skip]
2020-01-05 09:04:50 -08:00
Simon Michael
4a7a700d93
;doc: fix flags marker appearing in manuals
...
$FLAGS$ didn't work (nor =FLAGS=); _FLAGS it is..
[ci skip]
2020-01-05 07:41:01 -08:00
Simon Michael
f91076cc6a
;doc: regen manuals
...
I think all the non-content changes are due to newer
doc tools and harmless, including this one hopefully:
-.B \f[C]--watch\f[R]
+\f[B]\f[CB]--watch\f[B]\f[R]
[ci skip]
2020-01-05 07:06:42 -08:00
Simon Michael
c186eb6084
;doc: change flags marker in command helps to suit latest pandoc
...
From _FLAGS_ to $FLAGS$, since latest pandoc strips the underscores
at a certain point in our docs rendering.
2020-01-04 21:17:51 -08:00
Stephen Morgan
228edf6ba6
Don't store leaf name in PeriodReport.
...
Calculate at the point of consumption instead.
2020-01-04 21:15:42 -08:00
Stephen Morgan
8882b6fc85
cli: Use PeriodicReport.
2020-01-04 17:23:17 -08:00
Stephen Morgan
74778efcf5
Use nubSort instead of nub . sort.
2020-01-04 08:31:10 -08:00
Brian Wignall
2852f9dbee
Fix typos
2019-12-21 12:09:05 -08:00
Gaith Hallak
9b6652b93f
Update the instructions for the add command
2019-12-18 23:24:10 +03:00