Commit Graph

3952 Commits

Author SHA1 Message Date
Simon Michael
690181426d tools: add "make describe" (#269)
A make rule to handle some subtleties in getting an accurate stable
git-describe version string.
2015-09-03 12:42:14 -07:00
Simon Michael
e1f5023e30 tools: more PATCHLEVEL/git-describe fixes 2015-09-03 12:24:35 -07:00
Simon Michael
2ec55117c0 tools: better git describe command to set PATCHLEVEL 2015-09-03 12:13:37 -07:00
Simon Michael
821f1b7120 lib: fix tests for zero amount style (#230, #276) 2015-09-02 16:38:45 -07:00
Simon Michael
b770190942 lib: clarify flattenAccounts 2015-09-02 16:22:08 -07:00
Simon Michael
b8d75b7728 balance, etc: fix amount style loss (fixes #230, #276)
hledger-lib-0.24's "track the commodity of zero amounts when
possible (useful eg for hledger-web's multi-commodity charts)" preserved
the commodity when normalising a zero mixed amount, but not the amount
style. This showed up as occasionally incorrect amount style (commodity
symbol placement, decimal point character, etc.) in balance reports with
certain journals, like this:

  $ hledger bal
              €3000.00  a     <------ not using the canonical € style
              4000,58€    1
             -1000,58€    D
             -3000,00€  e
  --------------------
                     0

I thought this would require a big rewrite of amount arithmetic, but it
seems that just being a little more careful is enough. When normalising
a mixed amount containing multiple zeros in the same commodity, we now
preserve the last zero with its amount style, instead of replacing them
all with a new one.
2015-09-02 16:21:56 -07:00
Simon Michael
921a874e72 doc: front page: add gpl badge 2015-09-02 11:49:33 -07:00
Simon Michael
ca42d2b123 doc: readme: make gpl badge green 2015-09-02 11:49:14 -07:00
Simon Michael
dab12e2d10 add: note another algorithm 2015-08-28 17:57:16 -07:00
Simon Michael
9f2d59948e ui: styled amounts, smarter accounts column sizing 2015-08-28 17:55:50 -07:00
Simon Michael
323af10790 tools: add hpack yaml files to tags 2015-08-28 15:24:27 -07:00
Simon Michael
92038b7d72 web: fix options breakage, add test code to tags 2015-08-28 15:23:49 -07:00
Simon Michael
9e9aec957f print: --match shows the best match for a description
This was originally an add-on I used to guess account names for
ledger-autosync. It's nice for quickly looking up a recent transaction
with a guessed or partial description.
2015-08-28 15:10:51 -07:00
Simon Michael
a73c455570 add: fix a bug impairing similar txn matching
In some cases (when the same letter pair was repeated) it was not
picking the post similar past transaction. This was due to the
similarity algorithm using the order-dependent Data.List.intersect, when
it should use Set.intersection.

Also added a reference for the algorithm, which is known as the
Sørensen–Dice coefficient.
2015-08-28 13:54:51 -07:00
Simon Michael
74512814ec cli/ui/web: rename X.Options modules to X.XOptions
Make these modules' names more like the heavily-used types they
define (CliOpts, UIOpts, WebOpts). This is consistent with
RawOptions and ReportOptions, and helps with code navigation.
2015-08-28 12:43:51 -07:00
Simon Michael
8673332c8e ui, web: show fewer other accounts in acct register
To reduce noise in the "other accounts" field of hledger-ui's and
hledger-web's account register: if there are both real and virtual
postings to other accounts, show only the accounts posted to by real
postings.

Use case: in many transactions I have extra balanced-virtual postings
which adjust budget envelopes (subaccounts of checking). These clutter
up the register's other accounts field making it useless. Excluding them
(when there are also real postings) makes it more useful for me and
probably others.
2015-08-28 11:58:57 -07:00
Simon Michael
61f994e162 ui: update backlog 2015-08-28 11:43:29 -07:00
Simon Michael
8a343002f6 ui: fix vector-related breakage with GHC < 7.10 2015-08-28 11:39:23 -07:00
Simon Michael
570e340b7c ui: fix missing dependencies/bounds 2015-08-28 11:28:40 -07:00
Simon Michael
5792c67666 ui: refactor depth key handling 2015-08-28 11:28:22 -07:00
Simon Michael
f3dd5eb830 fix options breakage with GHC < 7.10 2015-08-28 11:17:49 -07:00
Simon Michael
2af8d7598e cli, web: fix options breakage 2015-08-28 10:49:43 -07:00
Simon Michael
c897c03469 ui: number keys > max depth clear the depth limit 2015-08-28 10:31:40 -07:00
Simon Michael
6b17305196 ui: +/- adjusts the depth limit (accounts screen) 2015-08-28 10:01:54 -07:00
Simon Michael
0d02262463 validate --depth/depth:'s argument is positive 2015-08-28 09:57:30 -07:00
Simon Michael
4dd1e9c725 clean up options validation a little 2015-08-28 09:57:01 -07:00
Simon Michael
4f351d6c9c ui: --register starts in the register screen 2015-08-28 08:48:40 -07:00
Simon Michael
eefa9c42a3 ui: remove debug code 2015-08-28 08:12:33 -07:00
Simon Michael
cc0c981d29 ui: display depth and other filters independently
As the comment says:
In hledger,
- reportopts{depth_} indicates --depth options
- reportopts{query_} is the query arguments as a string
- the report query is based on both of these.
For hledger-ui, currently, we move depth: arguments out of reportopts{query_}
and into reportopts{depth_}, so that depth and other kinds of filter query
can be displayed (and controlled) independently.
2015-08-28 08:07:54 -07:00
Simon Michael
5fa06453f1 lib: note depth's filtering and display control uses 2015-08-28 08:04:54 -07:00
Simon Michael
d1467d7967 ui: drop unneeded args field, use opts instead 2015-08-28 06:36:07 -07:00
Simon Michael
898b0ec82a ui: fix typo breaking build 2015-08-28 06:29:24 -07:00
Simon Michael
3fa0ad8eb6 ui: drop old posting register screen's code 2015-08-27 22:53:12 -07:00
Simon Michael
b51f45c675 ui: misc enhancements, allow depth adjustment
- clean up options a bit, enable -V/--value (affects the accounts screen)
- more informative top/bottom borders, including key help
- number keys adjust the depth limit (accounts screen)
- remove obsolete args parameter
2015-08-27 22:46:14 -07:00
Simon Michael
d662df77f5 ui: don't let a depth limit disrupt the register 2015-08-26 11:07:16 -07:00
Simon Michael
19c3749b50 balance: move -V helpers to the *Report modules 2015-08-26 10:38:45 -07:00
Simon Michael
466192b18e tools: travis: also check for haddock errors
Might generate haddock for all deps too.. let's see
2015-08-26 10:36:51 -07:00
Simon Michael
d23d9acf33 fix haddock failures (#281) 2015-08-26 10:11:32 -07:00
Simon Michael
e5f00b3e05 ui: simplify & format screen titles 2015-08-25 16:01:12 -07:00
Simon Michael
b38db8610f ui: add filepath to cabal file 2015-08-25 10:23:17 -07:00
Simon Michael
db83ff1000 ui: reg: track current account better, nicer title 2015-08-25 07:03:33 -07:00
Simon Michael
055d820ec7 ui: reg: increase whitespace before change amount 2015-08-25 07:02:32 -07:00
Simon Michael
cec9b7cae9 ui: reg: show all other accounts instead of <split>
For now.
2015-08-25 07:01:04 -07:00
Simon Michael
ecd9b9e54c ui: reg: don't force --no-elide
--no-elide ensures that a regular, clear account hierarchy is displayed.
The downside is that when you are filtering on account, say
assets🏦checking, it's unclear what to show when the user drills
down on the "assets" and "bank" parent accounts, without causing confusion.
2015-08-25 06:57:25 -07:00
Simon Michael
f496ec9809 ui: acc: show a better title with filename & query 2015-08-25 06:56:04 -07:00
Simon Michael
d32a028a19 ui: fix AttrMap/styles explanation per JD 2015-08-24 16:24:12 -07:00
Simon Michael
5822380719 ui: note JD layout tips, issues 2015-08-24 16:24:12 -07:00
Simon Michael
455c71c9ab ui: reg: fix width undercalculation 2015-08-24 16:24:12 -07:00
Simon Michael
229715ef9e ui: update backlog 2015-08-24 16:24:12 -07:00
Simon Michael
b0dc4d9f6f ui: depend on brick 0.2 2015-08-24 16:24:12 -07:00