imp: doc: directives: tweak

This commit is contained in:
Simon Michael 2021-11-21 23:44:19 -10:00
parent 14aa047e08
commit f6b10df50b

View File

@ -2469,7 +2469,6 @@ A directive is a line in the journal beginning with a special keyword,
that influences how the journal is processed, how things are displayed, and so on. that influences how the journal is processed, how things are displayed, and so on.
hledger's directives are based on (a subset of) Ledger's, but there are many differences, hledger's directives are based on (a subset of) Ledger's, but there are many differences,
and also some differences between hledger versions. and also some differences between hledger versions.
<!-- Directives' behaviour and interactions can get [complex](https://github.com/simonmichael/hledger/issues/793). -->
Here are some more definitions: Here are some more definitions:
- *subdirective* - Some directives support subdirectives, written - *subdirective* - Some directives support subdirectives, written
@ -2482,7 +2481,9 @@ Here are some more definitions:
symbol side and spacing, digit groups, decimal mark, and number of symbol side and spacing, digit groups, decimal mark, and number of
decimal places. decimal places.
Here are all the directives and their precise effects, with links to more detailed docs below: Directives are not required when starting out with hledger, but you
will probably add some as your needs grow. Here are all the directives
and their precise effects:
<!-- <style> --> <!-- <style> -->
<!-- table a code { white-space:nowrap; } --> <!-- table a code { white-space:nowrap; } -->
@ -2507,20 +2508,19 @@ Here are all the directives and their precise effects, with links to more detail
And here is an overview of which directives are useful for what: And here is an overview of which directives are useful for what:
| purpose | directives | command line options with similar effect | | purpose | directives | command line options with similar effect |
|---------------------------------------------------------------------------------|---------------------------------------------------------|---------------------------------------------| |-------------------------------------------------------------------------------|---------------------------------------------------------|---------------------------------------------|
| **READING/GENERATING DATA:** | | | | **READING/GENERATING DATA:** | | |
| Declaring a commodity's or file's decimal mark to help parse amounts accurately | [`commodity`], [`D`], [`decimal-mark`] | | | Declare a commodity's or file's decimal mark to help parse amounts accurately | [`commodity`], [`D`], [`decimal-mark`] | |
| Applying changes to the data while parsing | [`alias`], [`apply account`], [`comment`], [`D`], [`Y`] | [`--alias`] | | Apply changes to the data while parsing | [`alias`], [`apply account`], [`comment`], [`D`], [`Y`] | [`--alias`] |
| Inlining or concatenating extra data files | [`include`] | [multiple `-f/--file`'s](#multiple-files) | | Inline or concatenate extra data files | [`include`] | [multiple `-f/--file`'s](#multiple-files) |
| Generating extra transactions or budget goals | [`~`] | | | Generate extra transactions or budget goals | [`~`] | |
| Generating extra postings | [`=`] | | | Generate extra postings | [`=`] | |
| **CHECKING FOR ERRORS:** | | | | **CHECKING FOR ERRORS:** | | |
| Defining valid entities to allow stricter error checking | [`account`], [`commodity`], [`payee`] | | | Define valid entities to allow stricter error checking | [`account`], [`commodity`], [`payee`] | |
| **DISPLAYING REPORTS:** | | | | **DISPLAYING REPORTS:** | | |
| Defining accounts' display order and accounting type | [`account`] | | | Declare accounts' display order and accounting type | [`account`] | |
| Defining commodity display styles | [`commodity`], [`D`] | [`-c/--commodity-style`](#commodity-styles) | | Declare commodity display styles | [`commodity`], [`D`] | [`-c/--commodity-style`](#commodity-styles) |
| | | |
[`account`]: #declaring-accounts [`account`]: #declaring-accounts
[`alias`]: #rewriting-accounts [`alias`]: #rewriting-accounts