Commit Graph

10075 Commits

Author SHA1 Message Date
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
Dmitry Astapov
50b915d12a doc: advice on complex quoting use-cases (closes #1609) 2021-07-18 06:16:16 -10:00
Simon Michael
8653510e3d ;doc: journal: link Transactions -> Postings 2021-07-16 08:09:26 -10:00
Simon Michael
a89815cea0 ;doc: #report-period target 2021-07-15 14:28:16 -10:00
Simon Michael
87f575e643 ref: bal: rename some report types to clarify/sync with docs
ReportType -> BalanceCalculation
 ChangeReport -> CalcChange
 BudgetReport -> CalcBudget
 ValueChangeReport -> CalcValueChange

BalanceType -> BalanceAccumulation
 PeriodChange -> PerPeriod
 CumulativeChange -> Cumulative
 HistoricalBalance -> Historical

ReportOpts:
 reporttype_ -> balancecalc_
 balancetype_ -> balanceaccum_

CompoundBalanceCommandSpec:
 cbctype -> cbcaccum

Hledger.Reports.ReportOptions:
 balanceTypeOverride -> balanceAccumulationOverride
2021-07-15 14:22:20 -10:00
Simon Michael
f54e645dbf test: ui: outliner tip 2021-07-15 09:57:16 -10:00
Stephen Morgan
5f53da87e0 fix: ui: Make sure that you can scroll between matching transactions in
TransactionScreen. (#1607)

Make sure that the previous register screen is updated whenever we
scroll in TransactionScreen.
2021-07-15 09:46:56 -10:00
Simon Michael
70dab8eccd cln: bal: indentation 2021-07-14 12:29:00 -10:00
Simon Michael
8d68193c88 ;fix: doc: info: avoid directory paths in directory metadata (#1594)
In each info manual's DIR-ENTRY metadata, it's best to use just the
filename, with no subdirectory. This should facilitate working info
manuals in packaged versions of hledger, eg in nix.

I don't remember the detail of why I added those and I'm not going to
spend a couple of hours retesting; hopefully no other significant
workflows will be affected.

I have left the subdirectory paths in the dir file - this is intended
for hledger developers and they hopefully don't cause a problem there.
2021-07-14 09:07:56 -10:00
Simon Michael
a1e66ba38a ;doc: RELEASING.md: start capturing some org notes here 2021-07-13 18:41:17 -10:00
Simon Michael
395717e778 ;shake: drop unnecessary dev: prefix in doc commits 2021-07-13 18:40:41 -10:00
Simon Michael
964a019368 ;doc: changelogs: minor release headings 2021-07-13 18:39:43 -10:00
Simon Michael
1f9d89879d ;doc: update changelogs 2021-07-13 18:39:40 -10:00
Simon Michael
82b74ec41e ci: commitlint: when range is invalid (eg force push), check last 20
This is imperfect but better than nothing, and should avoid spurious
failures on force pushes to PRs.
2021-07-13 12:35:48 -10:00
Simon Michael
4d04da94fb ci: commitlint: ignore boring commits: github merge commit (#1606) 2021-07-13 12:35:48 -10:00
Simon Michael
ce526305bf ;test: ui: transaction: add a test for up/down key (#1607) 2021-07-13 12:34:25 -10:00
Stephen Morgan
2df8ad781e
imp: cli: Don't show extra double quotes in missing journal file error. (#1601) 2021-07-13 10:41:51 -10:00
Stephen Morgan
cf25d7d56d
imp: bal: more predictable sort order with multiple commodities (#1563, #1564)
This change provides more predictable and intuitive behaviour when 
using -S/--sort-amount with multiple commodities. 
It implements a custom Ord (and Eq) instance for MixedAmount 
which substitutes zero for any missing commodities.

As a consequence, all the ways of representing zero with a MixedAmount ([],
[A 0], [A 0, B 0, ...]) are now Eq-ual (==), whereas before they were
not. We have not been able to find anything broken by this change.

* imp: lib: Compare MixedAmounts by substituting zero for any missing commodities. (#1563)
* ;doc: Update docs for new multicommodity sort by amount rules.
2021-07-12 21:11:50 -10:00
Stephen Morgan
3380190d9a fix: web: register chart with multiple commodities/prices, broken in 1.22 (#1597)
Make sure to strip prices from amounts before generating JSON data for
the register chart.
2021-07-12 19:02:38 -10:00
Simon Michael
b8f0900edb ;dev: doc: update manuals 2021-07-12 18:50:06 -10:00
Simon Michael
31de526872 ;dev: doc: update CLI usage texts 2021-07-12 18:50:06 -10:00
Simon Michael
44c5eb5136 ;shake: update commit messages to pass commitlint 2021-07-12 18:50:06 -10:00
Simon Michael
daa95aeb7b imp: close: doc: rewrite manual (#1604) 2021-07-12 18:50:06 -10:00
Simon Michael
0a66068ad1 imp: close: clarify date logic, use journal last day if later (#1604) 2021-07-12 18:50:06 -10:00
Simon Michael
a681e5329d fix: ui: transaction: possibly off-by-one valuation date
I'm not sure if it arose in practice, but: ensure TransactionScreen
in V mode would correctly use the journal's last day as valuation date,
not the day after that.
2021-07-12 18:50:06 -10:00
Simon Michael
5d2caf3c7f lib: clarify journalEndDate, add journalLastDay 2021-07-12 18:50:06 -10:00
Simon Michael
7f2ad64e7b bin:commitlint:doc, policy: allow more spaces, slash/comma in topics 2021-07-11 14:24:54 -10:00
Simon Michael
01f9c70545 ci: run commitlint to check commits (#1602)
As first step in our main "check" workflows (push, linux, mac,
windows), check all the commit messages with commitlint.

These workflows can be triggered in various ways:
pull requests, pushes, manually, or scheduled.

For (each push to) a pull request, all commits currently in the PR
branch are checked.

For a regular push, all the pushed commits are checked, usually.
Subcases: push to master, push to other branch, force push;
I think at least the first two work, I don't care to spend more time
on it.

For a manual run, it seemed to check the same commits as a push (which
push ? Not sure how this works).

For a scheduled run - we'll see.
2021-07-10 23:26:11 -10:00
Simon Michael
f7f88a4a9a bin: commitlint: don't exit successfully if a command fails (#1602) 2021-07-10 22:05:32 -10:00