Commit Graph

10003 Commits

Author SHA1 Message Date
Simon Michael
4451d68a63 ;doc: update manuals 2021-07-29 20:41:19 -10:00
Simon Michael
085b7d4b88 ;doc: update CLI usage texts 2021-07-29 20:37:16 -10:00
Simon Michael
f8cc6edbde ;imp: ui: doc: document watch mode and limitations (#1617, #911, #836..) 2021-07-29 20:36:49 -10:00
Simon Michael
f12ff0df3a ;doc: ui, web: move screenshot styles elsewhere 2021-07-28 22:24:25 -10:00
Simon Michael
8c890f845b ;shake: webmanuals: move page toc below h1 again
To avoid extra toc items.
Also added a class permitting manual-specific styling.
2021-07-28 22:20:49 -10:00
Simon Michael
78e9f8877c ;doc: changelogs: lib edits 2021-07-28 14:48:17 -10:00
Simon Michael
6718234455 ;doc: contrib: issue conventions 2021-07-28 10:37:07 -10:00
Simon Michael
e9d3283d18 ;make: installcommithook 2021-07-28 10:03:26 -10:00
Simon Michael
13fbd83626 ;doc: releasing: updates 2021-07-28 10:03:26 -10:00
Simon Michael
e4a23c95d4 ;doc: changelogs: gather 1.22.1 changes 2021-07-28 10:03:22 -10:00
Simon Michael
b0611a7363 ;doc: regexps: list style that renders in vs code 2021-07-28 09:17:47 -10:00
Simon Michael
dc1fcdd7d7 ;doc: project changelog 2021-07-27 23:28:03 -10:00
Simon Michael
666e217bd5 ;doc: update changelogs 2021-07-27 23:21:13 -10:00
Simon Michael
40c1f09b80 ;ci: push: notes 2021-07-27 23:07:30 -10:00
Simon Michael
8ae42873c4 ;doc: queries: edit 2021-07-27 22:37:26 -10:00
Simon Michael
6a92953111 ;doc: queries: cleanups (#1625) 2021-07-27 22:16:39 -10:00
Simon Michael
a4d8072393 ;doc: queries: clarify some behaviour (#1625) 2021-07-27 11:19:28 -10:00
Simon Michael
40c8ddd572 ;doc: strict mode: update 2021-07-27 10:57:50 -10:00
Simon Michael
83868f174d ;doc: contributing, roadmap: toc placement 2021-07-23 19:07:09 -10:00
Simon Michael
d2b799a717 feat: bal: select budget( transaction)s by name (#1612)
This makes it possible to keep multiple named budgets in one journal,
and select the one you want with --budget's argument.

More precisely, you can select the subset of periodic transactions
rules which contain a certain fixed, case-insensitive substring.

Only one such --budget argument is supported, the last one on the
command line takes precedence.
2021-07-23 10:38:20 -10:00
Stephen Morgan
b0aa70b27a lib!: Rename the fields of ReportSpec.
This is done to be more consistent with future field naming conventions,
and to make automatic generation of lenses simpler. See discussion in
\#1545.

rsOpts -> _rsReportOpts
rsToday -> _rsDay
rsQuery -> _rsQuery
rsQueryOpts -> _rsQueryOpts
2021-07-23 10:37:08 -10:00
Stephen Morgan
7ed2a0aa9b lib!: lib: Remove aismultiplier from Amount.
In Amount, aismultiplier is a boolean flag that will always be False,
except for in TMPostingRules, where it indicates whether the posting
rule is a multiplier. It is therefore unnecessary in the vast majority
of cases. This posting pulls this flag out of Amount and puts it into
TMPostingRule, so it is only kept around when necessary.

This changes the parsing of journals somewhat. Previously you could
include an * before an amount anywhere in a Journal, and it would
happily parse and set the aismultiplier flag true. This will now fail
with a parse error: * is now only acceptable before an amount within an
auto posting rule.

Any usage of the library in which the aismultiplier field is read or set
should be removed. If you truly need its functionality, you should
switch to using TMPostingRule.

This changes the JSON output of Amount, as it will no longer include
aismultiplier.
2021-07-22 19:06:33 -10:00
Stephen Morgan
3969eb2679 lib!: lib,cli,ui,web: For accountTransactionsReport, generate the overall
reportq from the ReportSpec, rather than being supplied as a separate
option.

This is the same approach used by the other reports, e.g. EntryReport,
PostingReport, MultiBalanceReport. This reduces code duplication, as
previously the reportq had to be separately tweaked in each of 5
different places.

If you call accountTransactionreport, there is no need to separately
derive the report query.
2021-07-22 19:00:37 -10:00
Stephen Morgan
f673e7c2eb lib!: lib,web: Remove unused TransactionReport. Move the useful utility
functions to AccountTransactionsReport.

If you use transactionsReport, you should either use entryReport if you
don't require a running total, or using accountTransactionsReport with
thisacctq as Any or None (depending on what you want included in the
running total).
2021-07-22 19:00:37 -10:00
Stephen Morgan
acfbd36fb8 dev: web: Use entriesReport instead of transactionReport.
This produces identical results. The only fields used in the TransactionReport were torig, split, and amt.
- torig is the same as in entriesReport
- since transactionsReport calls accountTransactionsReportItems with
  None as thisacctq, all accounts are considered ‘other accounts’, so
  amt is always zero, and ($if not split && not (mixedAmountLooksZero amt)) never fires.
- So the only thing used is torig, and we can just get that from the
  entriesReport.
2021-07-22 19:00:37 -10:00
Stephen Morgan
58516eea77 imp: json: Decrease indentation in JSON output. 2021-07-20 23:28:18 -10:00
Simon Michael
a291f5d33b ci: push/linux/mac/windows: fix ; conditional step execution 2021-07-20 23:24:18 -10:00
Simon Michael
a54716778d ci: windows: fix bash-specific steps 2021-07-20 23:06:34 -10:00
Simon Michael
88c6d47e32 ci: linux/mac/windows: skip steps if message begins with ; 2021-07-20 23:01:57 -10:00
Simon Michael
4641db4604 ;ci: push: tweak output 2021-07-20 22:57:55 -10:00
Simon Michael
2c7e3136e0 ;ci: push: skip most steps if commit message begins with ; 2021-07-20 22:51:51 -10:00
Simon Michael
9a18eed9dd shake: changelogs: don't ignore ; messages any more
A leading semicolon now means something different (skip CI).
2021-07-20 22:39:46 -10:00
Simon Michael
3beba678fe ;doc: a few more changelog updates 2021-07-20 22:37:27 -10:00
Simon Michael
6569c2aca7 ;doc: update changelogs 2021-07-20 22:24:39 -10:00
Simon Michael
fa3ce17fd3 cln: make: webdirs: rename, hide subrules from help 2021-07-20 21:31:57 -10:00
Simon Michael
9701e19169 make: shellcompletions: top level rule to build shell completions 2021-07-20 21:29:52 -10:00
Jakob Schöttl
80003a5190 imp: pkg: add bash completion files to cabal package 2021-07-20 20:55:28 -10:00
Jakob Schöttl
f26ffbc6ab imp: pkg: move shell-completions into hledger package 2021-07-20 20:55:14 -10:00
Jakob Schöttl
41de6a5145 imp: cli: update bash completions 2021-07-20 20:54:56 -10:00
Simon Michael
861c34484e test: skip doctests with GHC 9 for now (#1503, #1615) 2021-07-20 20:38:39 -10:00
Simon Michael
41d432c30a ci: mac: use ghc 9.0 2021-07-20 20:38:39 -10:00
Simon Michael
3ef9958041 test: doctest cleanups, use latest 2021-07-20 20:38:39 -10:00
Simon Michael
93e76047d7 tools: rename tools/doctest -> tools/docshelltest, update 2021-07-20 20:38:39 -10:00
Simon Michael
c881d916eb shake: use new default resolver / ghc 9.0 2021-07-20 20:38:39 -10:00
Simon Michael
9aac520edd deps: allow megaparsec 9.1 2021-07-20 20:38:39 -10:00
Simon Michael
14e1efc843 stack: 9.0: rename yaml file, making 9.0 the default 2021-07-20 20:38:39 -10:00
Simon Michael
dd8d6336a1 stack: 8.10: rename yaml file 2021-07-20 20:38:39 -10:00
Simon Michael
09a31115d3 stack: 9.0: use stackage nightly for GHC 9.0 build (#1503) 2021-07-20 20:38:39 -10:00
Simon Michael
a83c2f6950 ;cln: ui: clarify watch loop 2021-07-20 20:38:39 -10:00
Stephen Morgan
c606f874fb imp: json: The keys of JSON objects are now displayed in alphabetical order, making it stable across different systems and compilers. 2021-07-20 20:37:33 -10:00