Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

hledger

We are building dependable high quality plain text accounting tools and promoting financial literacy and empowerment.
Collective - Host: opensource - https://opencollective.com/hledger - Website: https://hledger.org/ - Code: https://github.com/simonmichael/hledger

Add an automatic check for required option argument

Get rid of manually listing unhandled long options:

Instead of listing options requiring an arg...

github.com/simonmichael/hledger - d82e13bb5119fadbeeb7a90d6ece2384abd23db1 authored almost 4 years ago
Minor refactor of main function

No functional changes except special treatment of `help` subcommand

github.com/simonmichael/hledger - c139bb24a7053ba863a7d7960ed9a91c2d6e8b36 authored almost 4 years ago
Simplify condition

Knowing the cursor position is enough to decide whether to complete
subcommand or not, and subco...

github.com/simonmichael/hledger - 57c79d0050e4b3cb052d01fb97d748fe06afcef9 authored almost 4 years ago
A non-recursive version of _hledger_compreply_optarg()

Feels more streamlined and readable

github.com/simonmichael/hledger - 8c14dfb3ebf82dad12cae5eb8f140923c4250359 authored almost 4 years ago
Typo in comments

github.com/simonmichael/hledger - e2cac96449103768bb50224dbd2febfaaf1ca917 authored almost 4 years ago
Helper _hledger_debug() now accepts any number of arguments

github.com/simonmichael/hledger - 9dc65e4ee5bf88f68a6beedabf8bd46302592be1 authored almost 4 years ago
Fix extension completion

When inserting $extensionName in $COMP_WORDS manually, $COMP_CWORD lags
behind by one. Needs a m...

github.com/simonmichael/hledger - c2da8ac2d49d5e60b4eb76205c64983efafce4b7 authored almost 4 years ago
Fix duplicate call of _hledger_compreply_optarg()

It was called in both conditional branches so it's moved out before
the conditional.

github.com/simonmichael/hledger - 4101fdf3bb1b39fa329d780fcc2b5af3f579c472 authored almost 4 years ago
Revert "Refactor _hledger_compreply_optarg()"

This reverts commit 2fd01d8ef51b897a63a2590556dbb3af7c13ffc9.

Well, I was so wrong...

github.com/simonmichael/hledger - b195826c0fa0bb3911fd559406cac16cd31cd46a authored almost 4 years ago
Make hard-coded completion word lists easy to find

A quick search for `wordlist=` should be enough to find hard-coded
completions if we need to cha...

github.com/simonmichael/hledger - 985f041d817df3445bc0e07740ee70ed3c3e3e6a authored almost 4 years ago
Refactor _hledger_extension_completion_function()

Reduce number of instructions, remove variables used only once

github.com/simonmichael/hledger - c72970834315f24dcbbadb0ca1016924e3571f7a authored almost 4 years ago
Clarify comment in extension completion function

github.com/simonmichael/hledger - 9d94f847810fd29487133c454c6f6351cf76d13c authored almost 4 years ago
Refactor _hledger_compreply_optarg()

It used to do a lot more work parsing the command line that is
no longer necessary. Clean up red...

github.com/simonmichael/hledger - d30913c6a83c08509478de2b9d8e60d640480a1e authored almost 4 years ago
Postpone options display until after entering a dash

I was looking at how other programs that have an overwhelming
number of sub-commands and options...

github.com/simonmichael/hledger - e6d54f79d77dd3af2725821971725fe93556f210 authored almost 4 years ago
Rename $wordlist to $complist in _hledger_compgen()

Keep to established conventions

github.com/simonmichael/hledger - ddf55a86a4468f6fed3dcdf55da22951aef6184f authored almost 4 years ago
Make sure `=` is present in COMP_WORDBREAKS

Currently option processing logic is based on the assumption that `=` is
a word-breaking charact...

github.com/simonmichael/hledger - d943fa613efaba2ed54801f4744e60c039b10d82 authored almost 4 years ago
Add optional arguments $prefix and $match to _hledger_compgen()

This allows more flexibility when generating completion candidates
and we don't need to resort t...

github.com/simonmichael/hledger - fc89340c93e1c6a44fbac7b0bbc1e7896416f6d3 authored almost 4 years ago
Fix quoted/escaped file path handling in _hledger()

When reading hledger (rules-)file from COMP_WORDS we need to unescape it
first. For once compgen...

github.com/simonmichael/hledger - d98ff3b93dd9a4d24754a7b1cfb7e70def8ed7b9 authored almost 4 years ago
Fix: pass *all* accounts and rules files to hledger calls

_hledger_optarg() is used to parse the options on the command line
and provide their arguments f...

github.com/simonmichael/hledger - dee25d4811a9571ad58afda9df0110340597d4b7 authored almost 4 years ago
Style: unset compopt filenames if completing command or option

This is about the looks of the completion list -- if we have a
directory with the name of a subc...

github.com/simonmichael/hledger - 9569cfc8f33b7ff5cc4245cd73be6cef66dbbfb2 authored almost 4 years ago
Basic settings for major editors: prevent mixing tabs and spaces

github.com/simonmichael/hledger - 812a525acfbfa00cf812cf89bca22b5c3fee4c7d authored almost 4 years ago
Query filter completion for amt, real and status; clean whitespace

github.com/simonmichael/hledger - 31f7a32e362f2e1fcbacc4cbba857352aa483645 authored almost 4 years ago
Fix or silence shellcheck warnings

There are a couple of places where (un)quoting is intentionally
skipped so make those explicit.

github.com/simonmichael/hledger - 3706636a765351d6b341dfe3da383f78c471ef85 authored almost 4 years ago
Fix --long-opt= completion

Commit #64282f3f broke that somehow so I need to force the match on
an empty string after the eq...

github.com/simonmichael/hledger - 357a78e7bf211005542c8ec58e2c2436aaeb7d0b authored almost 4 years ago
More option argument completions

Added handlers for:
--output-format
--close-acct
--open-acct
--debug

Added --drop to blocking list

github.com/simonmichael/hledger - 689ad83668754d517d8b8016d838750857c3b1c9 authored almost 4 years ago
Use _init_completion()

This handles a lot that we have to do manually otherwise. Without
this we need to handle e.g. re...

github.com/simonmichael/hledger - 10cc8b72b96899cc0f6374b6063028d1060c12a4 authored almost 4 years ago
Style: replace $cur with $subcommand

It changes nothing but spells out intention more clearly

github.com/simonmichael/hledger - dfc8796b25c7bc322759c83d58e95c60ce7bdf42 authored almost 4 years ago
Fix #1404, and more...

This was supposed to be just a fix for #1404 but upon visiting the source
several issues became ...

github.com/simonmichael/hledger - 72b737a42f1d719d7888aac4ddf62fe4e0c5a2a5 authored almost 4 years ago
;bal: mention --valuechange (#1480)

github.com/simonmichael/hledger - 4c9b72ea15e4d5c949ec5fd4b909bfc56d4a4bc9 authored almost 4 years ago
bal: docs rewritten, and updated for new flags

github.com/simonmichael/hledger - f63c38a7e2c6f94e2d5c2bd7b76d9c63cbaf0081 authored almost 4 years ago
lib,cli: Add --valuechange report type for calculating change of value

of accounts, restore --value=end behaviour to that of hledger-1.19.

github.com/simonmichael/hledger - 7f2536a2a79c3aae58d1c98dd3c06cc3b5166bf1 authored almost 4 years ago
lib,cli: Add --periodic option to indicate PeriodChange accumulation (renamed from --change).

github.com/simonmichael/hledger - 351648e4fac30593cbf612a7ab7cd0aa35286694 authored almost 4 years ago
doc: explain roi-unrealised.ledger, reference to cookbook

github.com/simonmichael/hledger - 18623ec287c0a26eb844422dba4c1012b7f3f328 authored almost 4 years ago
Merge branch pr/Xitian9/1445 (Fix some space leaks, #1445)

- Consume list immediately in commodityStylesFromAmounts.

This and/or the other strictness fi...

github.com/simonmichael/hledger - 7bfbcde627ea377fd79ce7a8f2aef849f65d0877 authored almost 4 years ago
roi: cmdline help simplified

github.com/simonmichael/hledger - 582a1651b3c734cba09cd8005423d9a3a7fdb6af authored almost 4 years ago
lib: normaliseHelper now uses a strict Map for combining amounts

internally, closing a big space leak.

This also now combines Amounts with TotalPrices in the sam...

github.com/simonmichael/hledger - 9d527a99266028e82fbdb5979f60e6ebb8c07f44 authored almost 4 years ago
lib: (amount|mixedAmount)(Looks|Is)Zero functions now check whether

both the quantity and the cost are zero. This is usually what you want,
but if you do only want t...

github.com/simonmichael/hledger - f0655d1c7f2269c3b9fdceb79c6b79ef7cd6cf41 authored almost 4 years ago
lib: Distinguish between an Amount having quantity (or rounded quantity 0), and having both quantity and totalprice 0 (or rounded to 0).

github.com/simonmichael/hledger - ecca7f4e0cd108dc9e394d8e5f8a5619e9b73be2 authored almost 4 years ago
lib: Consume list immediately in commodityStylesFromAmounts.

This reduced the maximum heap size per thread from ~850K to ~430K in a
real-world register test.

github.com/simonmichael/hledger - a65ef7cd199fd8a95bdb7faa9f71cf28b332a4bb authored almost 4 years ago
lib: Include sign in TotalPrice in Amount, rather than relying on the sign of

aquantity.

Journal entries still require a positive @@ price, but now the sign is
set after pars...

github.com/simonmichael/hledger - 2ada289e284df7ac40bd3b8e783e5ce6c587fd86 authored almost 4 years ago
lib: Make fields of Amount, AmountPrice, AmountStyle, and DigitGroupStyle strict.

github.com/simonmichael/hledger - 81b778a3891ecc9159452082a3c2d719f58c136f authored almost 4 years ago
roi: check valuation on dates we have price directives for

github.com/simonmichael/hledger - 0fa51482c639f35fe9b6e5f0f2baeb28c01ad02b authored almost 4 years ago
roi: honor all kinds of --value switches

github.com/simonmichael/hledger - 8013d650f3e2083942bf69e6f20f13a4f91bc299 authored almost 4 years ago
roi: roi-unrealised.example now works based on price directives

github.com/simonmichael/hledger - 150cf3f86223ed42824292125a99388ddb0b68c9 authored almost 4 years ago
print --match: show --match's argument in debug output

If you forget that the argument is required by the --match
option, and not the command as a whol...

github.com/simonmichael/hledger - f4d81377af4ddb6d0ed5f4491e459e9dc6b5bbf2 authored almost 4 years ago
add, print --match: prioritise infix matches

If the search description occurs in full within the other description,
that match gets a +0.5 sc...

github.com/simonmichael/hledger - 5e7c4fc7bcc3db9fe0321c63937056c1b8c672ed authored almost 4 years ago
add, lib: debug output, refactor similar transactions lookup

add --debug=1 shows the top hits for similar past transactions.

added:
Hledger.Cli.Utils.journa...

github.com/simonmichael/hledger - 44508f58c8a577bd5eb80704db8333d280336b8e authored almost 4 years ago
;import: doc: tweak

github.com/simonmichael/hledger - 7979c7d74c316dd5ad0030c14fc8378b7d5d1bc7 authored almost 4 years ago
;import: doc: tweak

github.com/simonmichael/hledger - 125ba49992f8f62c46321ed81890d2b7188ff9d3 authored almost 4 years ago
;import, print: better deduplication docs

github.com/simonmichael/hledger - 554f7a59fdafe96d36a77e2b9f0f664e53979bc0 authored almost 4 years ago
;regenerate cabal files with the hpack version in current stack

To minimise warnings. They got regenerated by a commit for #1471.

github.com/simonmichael/hledger - f7bbb39a77626e7d997c1843f80a2d447a699bd1 authored almost 4 years ago
;shake: use --markdown-headings to silence warning (& require pandoc-2.11.2+)

github.com/simonmichael/hledger - 286efc7b12f80447b221bec3784d3dd96d019ddc authored almost 4 years ago
;update manuals

github.com/simonmichael/hledger - b92a8427283d84331e97d88b8664d4580ba5f153 authored almost 4 years ago
;update CLI usage texts

github.com/simonmichael/hledger - f4c8b528852d601a37eb0129b1e6e230087231cb authored almost 4 years ago
Make sure to round up for the 'to' date

github.com/simonmichael/hledger - ad2ab3c8238c6b21f6c35b1ca42f92ea4b4ba705 authored almost 4 years ago
Allow selecting the date range from the chart

By dragging a region with the mouse

github.com/simonmichael/hledger - fe6e9a79fe425c4e764848b1b92e6106d1d64b52 authored almost 4 years ago
;journal: doc: note same-day P overrides --infer-market-value

github.com/simonmichael/hledger - 9cff45b2c5f9fc1a4bd405a624ca6d5945311c6d authored almost 4 years ago
lib: avoid shady Not (Or []) in account type queries

github.com/simonmichael/hledger - b31e40ceca1601067a8ce0fb958c70e1aa59c115 authored almost 4 years ago
bs: don't let just a Cash declaration hide Asset accounts

Clarify the account type queries a bit, and don't let a
declaration of account as Cash cause the...

github.com/simonmichael/hledger - 6c392e9f4373ecda66d911f6716ece0de7540fdd authored almost 4 years ago
bs: just declaring a Cash account no longer hides Asset accounts

Since Cash is also an Asset, declaring an account as Cash also disabled the fallback regexp for ...

github.com/simonmichael/hledger - b9d33a42940ee721aed53ec96d8f7475f0f8caa4 authored almost 4 years ago
;lib: commentAddTagNextLine was broken

It would not add the tag when a comment already existed.
This affected hledger-print-location.hs...

github.com/simonmichael/hledger - 50bfc26ca7ab4753049acb36077b9dbb08a091d9 authored almost 4 years ago
bin: more robust --package syntax, comma form sometimes fails

github.com/simonmichael/hledger - c8bc9c7088fefef5c3224a06aa4ec6c2b89cf320 authored almost 4 years ago
examples: csv: daedalus wallet csv rules

github.com/simonmichael/hledger - 94c0832b85f1100e7cb04a9d5189e064261744ae authored almost 4 years ago
;lib: document AmountPrecision

github.com/simonmichael/hledger - d5ed8090fadbfaab78255f85bd2ab5265da9737b authored almost 4 years ago
lib: refactor: more consistent amount precision helpers

Hledger.Data.Amount:
renamed:
setAmountPrecision -> amountSetPrecision
setFullPrecision -> amoun...

github.com/simonmichael/hledger - d865ec5d65b663fde2bb27d0cadf1bbb2f5d65ba authored almost 4 years ago
cli: rename --infer-value to --infer-market-price

For clarity; infer-value was too vague. The old spelling remains
supported for compatibility, bu...

github.com/simonmichael/hledger - 37e49ada7074ab20abe3d779a64028d60d2d69cd authored almost 4 years ago
;journal: doc: wording tweak for #1465

github.com/simonmichael/hledger - 681965e2d4f6f2be7d0f349a370fd6da53d205b2 authored almost 4 years ago
lib: refactor: rename journal/transaction mapping helpers

Hledger.Data.Journal:
changed:
mapJournalTransactions -> journalMapTransactions
mapJournalPostin...

github.com/simonmichael/hledger - f52117120b8dce87a05a41f07d163e610d4faf40 authored almost 4 years ago
print: always show all decimal places (#931)

Ensures parseable and more sensible-looking output in more cases, and behaves more like Ledger's...

github.com/simonmichael/hledger - 61013689546433628f175883a7b34ec9a91b5f0c authored almost 4 years ago
ui: transaction: show all decimal places (like print, cf #931)

On the accounts screen and register screen we round amounts according
to commodity styles, but w...

github.com/simonmichael/hledger - 2a4170dd3b99a1c5130e943aef872c1233df9da7 authored almost 4 years ago
print: don't add decimal places in assertion/assignment amounts either (#1465)

github.com/simonmichael/hledger - 0274b307427998c42e48374fa04bbae98e2ea528 authored almost 4 years ago
;csv: doc: note how CSV amounts affect display style (#1465)

github.com/simonmichael/hledger - a91a2ed2ed684be004c9edcb472d759f43af299c authored almost 4 years ago
print: show all decimal places in assertion/assignment amounts (#1465)

Overriding the commodity style, per https://hledger.org/hledger.html#commodity-display-style.

github.com/simonmichael/hledger - 201f96741143b25530b18d74b616130ce1fd96f6 authored almost 4 years ago
;doc: valuation: fix typos

github.com/simonmichael/hledger - 74f288a01dc56cd9eb514f5a8cf046bcdab155a3 authored almost 4 years ago
;bin: smooth: note beancount tool

github.com/simonmichael/hledger - 37290eec048b75eed3e10b2a95e8eac16234e152 authored about 4 years ago
;stack: build with lts-17/ghc-8.10.3 by default

github.com/simonmichael/hledger - 31868a6892928c02b385e327083d37f68adc047a authored about 4 years ago
install: 1.20.4

github.com/simonmichael/hledger - e21bf0c3bcac5f0451d7e51e799cdf90f38e7fd3 authored about 4 years ago
;bin: ignore stderr in func tests, check only exit code

This avoids failures when stack prints to stderr, eg when fetching
hackage index.

github.com/simonmichael/hledger - a477aa95b0bddccdf699121f1d2b799f20c0e294 authored about 4 years ago
;make functest: bump threads from 16 to 64

Runs them faster on machines with more cores (eg 22s -> 15s),
should be harmless elsewhere.

github.com/simonmichael/hledger - 765ab0772e19ccf45cb6dd1517423e167dbd3503 authored about 4 years ago
;make functest: drop the timeout, it makes tests too unreliable

github.com/simonmichael/hledger - fa5c2700743d96cfbb0b4981f12771828ec86e1d authored about 4 years ago
Merge #1470: prefer change-of-value; separate cost & value (#1353)

"This implements Tier 1 of #1353
(https://github.com/simonmichael/hledger/issues/1353#issuecomme...

github.com/simonmichael/hledger - 3429601750820d85f4a846b597a5b0c66043c80f authored about 4 years ago
doc: Document new independent costing and valuation features in manual.

github.com/simonmichael/hledger - e6cf2fb49911f47b98e359242fece7637790dc50 authored about 4 years ago
lib,cli,ui: Introduce *ApplyCostValuation functions, which perform both

costing and valuation.

This currently is given a dummy NoCost argument and is equivalent to
"may...

github.com/simonmichael/hledger - 130739e3ef2b5f2bd7da55d6dbf83e4129bafb1d authored about 4 years ago
lib,cli,ui: Separate costing from valuation; each can now be specified

independently.

You can now combine costing and valuation, for example "--cost
--value=then" will...

github.com/simonmichael/hledger - c9eb7d1bcff72ec82eacacd679bbec56e392c386 authored about 4 years ago
doc: Remove references to --value=cost, replacing them with --cost.

Since this is option is now just an alias for -B/--cost, and since it
may be removed soon, we ma...

github.com/simonmichael/hledger - b619b68f713b1b7c273545564a9b2b396954f82b authored about 4 years ago
lib: bal --value=end without --historical should not report on fluctuation in value of historical postings.

github.com/simonmichael/hledger - 9cf501595864d4eef92da31c1d2395e0f32c383b authored about 4 years ago
test: Period change reports should not see historical postings when performing valuation.

github.com/simonmichael/hledger - a632e2fee91ca9570dd96fb8b7e25931b57c1bcd authored about 4 years ago
lib: Use mapMixedAmount more, decreasing reliance on internal representation of Mixed.

github.com/simonmichael/hledger - 9881ec965212357ab236b825c68d757b06a3eb4e authored about 4 years ago
;stack: 8.10: bump to current nightly

github.com/simonmichael/hledger - c0056553117f0d684232535603baa10060cf3d08 authored about 4 years ago
;areg: doc: clarify account selection

github.com/simonmichael/hledger - 93e5355a2b89ffdb4134fedb6fcc572c7d2d4f6e authored about 4 years ago
;areg: doc: try to clarify aregister's purpose

github.com/simonmichael/hledger - 6650a563fbc753def42f23a7c24071f55268c526 authored about 4 years ago
;areg: doc: mention depth limit is ignored (#1468)

github.com/simonmichael/hledger - a91ca6892b1b22158628bf55878ad68ae1365d7f authored about 4 years ago
ui: register: show all txns in/under an account at depth limit (#1468)

As in 1.19. This was broken since 2020-09-02 c45663d41.

github.com/simonmichael/hledger - 507648383d57b691644eb564f05b5b9ea688f686 authored about 4 years ago
areg: ignore a depth limit, as in 1.19 (#1468)

aregister always shows transactions to subaccounts as well, ignoring any depth limit, so that th...

github.com/simonmichael/hledger - 08c5857ac9a2ab72c863696f75d8cd74e0e9684f authored about 4 years ago
;areg: add a commented test for #1468

github.com/simonmichael/hledger - 58df055f7ca0139de2a737e37c0f0041d481a426 authored about 4 years ago
;ui: add a manual test for #1468

github.com/simonmichael/hledger - 2e5ac08b6968f899b2ea43de6599d09a8c6dbe94 authored about 4 years ago
;bal: notes for single-period html output

github.com/simonmichael/hledger - 337bc989abf4658bf2a9eee60831bde245ee73ca authored about 4 years ago
lib: journalPayeesUsed, journalPayeesDeclaredOrUsed

github.com/simonmichael/hledger - 422329fbfab2d8a16bcb5a13e817c98d1a167dd1 authored about 4 years ago
web: add form: in description field also offer declared/used payees

github.com/simonmichael/hledger - 3f095fb4723458d59c927ac37f0c98f1044eaa85 authored about 4 years ago
lib: matchesDescription, matchesPayeeWIP

github.com/simonmichael/hledger - bf328e4e3cafa0f80c8c8eba7b66e3cc50a7fe0d authored about 4 years ago