summaryrefslogtreecommitdiff
path: root/src/print.cc
Commit message (Collapse)AuthorAgeFilesLines
* print: Align amounts even when account names are longGwyneth Morgan2024-07-101-30/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When the account name is longer than the --account-width (default 36), the amounts stop aligning: 2023/01/01 Transaction with long account names Assets:Very:Long:Account:Name:That:Will:Push:The:Amount -10 ABC Assets:Another:Long:Account:Name:That:Will:Push:The:Amount -10 ABC Expenses:Short 20 ABC One can set a larger --account-width, but that is not a great solution for cases where you have only a few accounts with problematically long names. Instead, keep the current account width wherever possible, but when an account name is longer than the account width, account for that and still align the values: 2023/01/01 Transaction with short account names Assets:Short -10 ABC Assets:Short -10 ABC Expenses:Short 20 ABC 2023/01/01 Transaction with long account names Assets:Very:Long:Account:Name:That:Will:Push:The:Amount -10 ABC Assets:Another:Long:Account:Name:That:Will:Push:The:Amount -10 ABC Expenses:Short 20 ABC This is similar to hledger's behavior.
* Update copyright yearAlexis Hildebrandt2023-02-021-1/+1
| | | | [skip ci]
* Update copyright statement for 2022Alexis Hildebrandt2022-07-021-1/+1
|
* Fix garbled dates when using --date-formatTommi Komulainen2018-06-131-1/+3
| | | | | | | | Capture the `std::string` value from options in a local variable that lives as long as the `c_str()` taken from it to ensure it does not get freed prematurely. Fixes: #546
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2018-01-271-1/+1
| | | | [ci skip]
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2017-01-051-1/+1
| | | | [ci skip]
* [misc] Update year in copyright notice to 2016Alexis Hildebrandt2016-01-021-1/+1
| | | | [ci skip]
* Bump copyright notice to 2015Alexis Hildebrandt2014-12-271-1/+1
| | | | | | The following script makes it a no-brainer: % NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \ | xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/"
* Preserve the given cost for printMartin Michlmayr2014-07-141-3/+3
| | | | Patch from John Wiegley
* Handle POST_COST_VIRTUAL in printMartin Michlmayr2014-05-301-2/+10
| | | | Bug fix for #1046
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* Resolve new compiler warnings from ClangJohn Wiegley2013-05-191-1/+1
|
* Bump copyright information to 2013John Wiegley2013-02-181-1/+1
|
* right-justify amount_expr text in print report where possibleChristophe Rhodes2012-11-061-6/+7
|
* print computed annotations if --generatedJohn Wiegley2012-03-191-1/+2
|
* Reworked the way that options are handledJohn Wiegley2012-03-091-8/+9
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Renamed actual/effective dates to primary/auxiliaryJohn Wiegley2012-02-281-4/+4
|
* Correctly elide amount sometimes in "print"John Wiegley2012-02-271-12/+42
|
* Added TODO commentJohn Wiegley2012-02-271-0/+2
|
* Stubbed out some code-in-progressJohn Wiegley2012-02-271-0/+2
|
* Revert behavior of 40ab81308025e9655074da37671c444b4257f867John Wiegley2012-02-261-3/+6
|
* Keep notes on their own line if parsed that wayJohn Wiegley2012-02-261-5/+10
|
* Don't print amounts when not necessary in 'print'John Wiegley2012-02-261-10/+20
|
* Fixed many Clang type conversion warnings with static_castJohn Wiegley2012-02-171-8/+12
|
* Fixes for variable shadowing (22/28)John Wiegley2012-02-171-9/+9
|
* Corrected printing of assigned amountsJohn Wiegley2010-06-181-1/+1
|
* Untabified all source filesJohn Wiegley2010-06-111-91/+91
|
* Fixed the "generate" commandJohn Wiegley2010-06-101-4/+4
|
* Fixed the way prices and costs are print'dJohn Wiegley2010-06-071-7/+9
|
* amount_t::print and value_t::print now use flagsJohn Wiegley2010-06-071-3/+4
|
* Make --anon work with the print commandJohn Wiegley2010-06-051-0/+1
| | | | Fixes #226 / C1C1E731-D991-40ED-BE43-8ED55585386C
* Inlined the print_xacts constructorJohn Wiegley2010-06-021-7/+0
|
* New: --group-by=EXPR and --group-title-format=FMTJohn Wiegley2010-05-301-1/+11
| | | | | | | | | | | | | | | | | | | | | The --group-by option allows for most reports to be split up into sections based on the varying value of EXPR. For example, to see register subtotals by payee, use: ledger reg --group-by=payee -s This works for separated balances too: ledger bal --group-by=payee Another interesting possibility is seeing a register of all the accounts affected by a related account: ledger reg -r --group-by=payee The option --group-title-format can be used to add a separator bar to the group titles. The option --no-titles can be used to drop titles altogether.
* print honors --columns, --account,amount-widthJohn Wiegley2010-05-221-22/+59
|
* The print command now honors use of --date-formatJohn Wiegley2010-05-221-3/+10
|
* print command correctly prints amount expressionsJohn Wiegley2010-05-071-3/+9
|
* Improved the new implementation of "print"John Wiegley2010-03-171-4/+4
|
* Rewrite the "print" command as a custom functionJohn Wiegley2010-03-081-0/+208
There ended up being too many corner cases for the generalized formatter to handle.