Commit Graph

13196 Commits

Author SHA1 Message Date
Simon Michael
e44cbbf1a4 dev: refactor, clarify detection of cost/conversion postings 2024-10-20 09:13:58 -10:00
Simon Michael
2d90550e25 dev: cleanups 2024-10-20 09:13:58 -10:00
Henning Thielemann
f1ded22c97 cli: Commands.Register: rename parameter base -> baseUrl 2024-10-20 08:49:36 -10:00
Henning Thielemann
84a6e167fb doc: hledger.m4: add FODS to aregister in output format matrix 2024-10-20 08:49:36 -10:00
Henning Thielemann
067c5e4db6 cli: Commands.Aregister.htmlRow: replace by call to generic accountTransactionsReportItemAsRecord 2024-10-20 08:49:36 -10:00
Henning Thielemann
4c189dde32 lib: Write.Spreadsheet.integerCell: for transaction indices 2024-10-20 08:49:36 -10:00
Henning Thielemann
7dc3715865 cli: Commands.Aregister: add export to FODS
use common Spreadsheet framework for CSV export, too
2024-10-20 08:49:36 -10:00
Simon Michael
7ad71ba2d5 ;doc: paging, box-drawing characters: updates 2024-10-20 08:46:11 -10:00
Simon Michael
f348bb642c ;cli:help: make --pager's help more accurate
--pager's "yes" doesn't unconditionally force it on; it behaves more
like --color's "auto". But yes/no is easier to read and understand,
so keep that and just tweak the wording.
2024-10-20 08:18:41 -10:00
Simon Michael
f8cc9cdb4d ;dev: document runPager's behaviour precisely 2024-10-20 08:10:07 -10:00
Simon Michael
5bf48d721a cabal: update cabal files 2024-10-19 18:50:40 -10:00
Simon Michael
7325b75d5b imp: rename ghcdebug build flag to debug, and enable stack traces with it
Builds made with ghc 9.10+ and the 'debug' build flag, will show
(some kind of, partial) stack traces when the program ends with an
error. (And also will have ghc-debug support enabled.)

The stack traces will probably improve in due course.
2024-10-19 18:47:03 -10:00
Simon Michael
b6a5687a38 imp: cli, web: disable ghc 9.10+'s stack traces here too
Starting to see them also from hledger now.
2024-10-19 18:33:58 -10:00
Simon Michael
62e1c020cf ;examples: hledger.conf.sample: updates 2024-10-19 18:00:51 -10:00
Simon Michael
fd4fa512e6 ;doc: update manuals 2024-10-19 17:06:10 -10:00
Simon Michael
d2344c119d ;doc: update help 2024-10-19 17:06:06 -10:00
Simon Michael
6893f342af imp: cli,ui,web: begin controlling GHC 9.10+'s stack traces 2024-10-19 16:56:14 -10:00
Simon Michael
a925e73b53 imp:cli: handle -NUM in config file properly 2024-10-19 16:56:14 -10:00
Simon Michael
576417655c dev: fix stray empty strings in builtinCommandNames 2024-10-19 16:56:14 -10:00
Simon Michael
f5b10b2d40 dev: cleanups 2024-10-19 16:56:14 -10:00
Henning Thielemann
3306abfd43 doc: hledger.m4: add HTML+FODS to print in output format matrix 2024-10-19 16:52:54 -10:00
Henning Thielemann
cc58ac7bf5 cli: Commands.Print.transactionToSpreadsheet: vertically merge common index, date, description and other cells 2024-10-19 16:52:54 -10:00
Henning Thielemann
8b391e2a07 cli: Commands.Print: add export to FODS and HTML
use common Spreadsheet framework for CSV export, too
2024-10-19 16:52:54 -10:00
Henning Thielemann
6773bf0974 cli: Commands.Register: add HTML and FODS to outputFormatFlag 2024-10-19 16:49:24 -10:00
Henning Thielemann
e144ad4ccd cli: Cli.Commands.Balance: give table names according to report type 2024-10-19 16:49:24 -10:00
Henning Thielemann
0c536da5ff doc: hledger.m4.md: FODS output - describe the advantages over CSV 2024-10-19 16:49:24 -10:00
Henning Thielemann
4fe51cb911 doc: hledger.m4.md: add FODS to all CompoundBalance commands in output format matrix 2024-10-19 16:49:24 -10:00
Simon Michael
b940254025 imp:cli: detect --color more safely in most cases
--color now also works in a config file, like --pager, except for two
cases: it does not affect colouring of debug output, or the colouring
helpers used in the check recentassertions error message.
2024-10-19 16:28:36 -10:00
Simon Michael
711d921774 imp:cli: --no-pager -> --pager, make this and --color safe options 2024-10-19 16:28:36 -10:00
Simon Michael
7fee69d7ab imp:cli: deprecate always/never --color values (though still support) 2024-10-19 16:28:36 -10:00
Simon Michael
9317354f20 doc: note issues with --color, --debug in config files 2024-10-19 16:28:36 -10:00
Simon Michael
66df5ed40f imp: expose config file args to getArgs; make --no-pager work there 2024-10-19 16:28:36 -10:00
Simon Michael
3e48451c3f imp: note unsafe args / config file limitation; make --no-pager safe 2024-10-19 16:28:36 -10:00
Simon Michael
18dceef1ce imp:cli: move --no-pager/--color to the help flags, available everywhere 2024-10-19 16:28:36 -10:00
Simon Michael
ba786752d1 imp📟 add a --no-pager general flag 2024-10-19 16:28:36 -10:00
Simon Michael
db748465a8 fix📟 when the $PAGER is not in PATH, print instead of failing 2024-10-19 16:28:36 -10:00
Simon Michael
4441680d7b fix:lib:Hledger.Utils.IO.pager: avoid a crash; avoid an extra newline 2024-10-19 16:28:36 -10:00
Simon Michael
3b7420b97c feat: use a pager for all large terminal output, not just for help 2024-10-19 16:28:36 -10:00
Henning Thielemann
a758eb0b5a doc: hledger.m4: add HTML+FODS to register in output format matrix 2024-10-18 00:07:11 -10:00
Henning Thielemann
86c3d7d656 cli: Commands.Register: support hyperlinks to hledger-web in HTML and FODS output
new option --base-url as in `balance` et.al.

Cli.Anchor: new module initialized with functions from Commands.Balance
2024-10-18 00:07:11 -10:00
Henning Thielemann
96e0500ea7 cli: Commands.Register.postingsReportItemAsRecord: format transaction index as integer
lib: Write.Spreadsheet.Type: new TypeInteger
2024-10-18 00:07:11 -10:00
Henning Thielemann
b23753f5ae cli: Commands.Register.postingsReportItemAsRecord: export amounts as number plus commodity
lib: Write.Spreadsheet.cellFromMixedAmount, cellsFromMixedAmount: taken from Cli.Balance
2024-10-18 00:07:11 -10:00
Henning Thielemann
d7b713f958 lib: Write.Ods.styleNames: common generation of ODS style names for both formatCell and cellConfig 2024-10-18 00:07:11 -10:00
Henning Thielemann
fe53b9b6ee lib: Write.Ods: disambiguate style names for DataMixedAmount and DataString (bugfix) 2024-10-18 00:07:11 -10:00
Henning Thielemann
991c56caef cli: Commands.Register.postingsReportAsSpreadsheet: generalize CSV output to HTML and FODS 2024-10-18 00:07:11 -10:00
Simon Michael
121b648bdb ;doc: output: edits 2024-10-17 20:18:02 -10:00
Simon Michael
4cf064e526 ;doc: text output: fix formatting, 2 2024-10-17 19:50:35 -10:00
Simon Michael
12cc571441 ;doc: text output: fix formatting 2024-10-17 19:47:14 -10:00
Simon Michael
7cbe75c523 ;doc: output format: updates, consolidate terminal topics 2024-10-17 19:30:02 -10:00
Simon Michael
733fec604b ;doc: text output: expand 2024-10-17 18:25:10 -10:00