;doc: cli: fix comment links, drop old doc

This commit is contained in:
Simon Michael 2022-12-11 01:24:10 -10:00
parent a06b6219d5
commit fc5d1414f9
2 changed files with 6 additions and 12 deletions

View File

@ -28,7 +28,7 @@ Features:
- If the journal defines a [default commodity](#default-commodity), - If the journal defines a [default commodity](#default-commodity),
it will be added to any bare numbers entered. it will be added to any bare numbers entered.
- A parenthesised transaction [code](#entries) may be entered following a date. - A parenthesised transaction [code](#entries) may be entered following a date.
- [Comments](#comments) and tags may be entered following a description or amount. - [Comments](#transaction-comments) and tags may be entered following a description or amount.
- If you make a mistake, enter `<` at any prompt to go one step backward. - If you make a mistake, enter `<` at any prompt to go one step backward.
- Input prompts are displayed in a different colour when the terminal supports it. - Input prompts are displayed in a different colour when the terminal supports it.

View File

@ -2258,7 +2258,7 @@ $ hledger register checking --date2
### Posting dates ### Posting dates
You can give individual postings a different date from their parent You can give individual postings a different date from their parent
transaction, by adding a [posting comment](#comments) containing a transaction, by adding a [posting comment](#posting-comment) containing a
[tag](#tags) (see below) like `date:DATE`. This is probably the best [tag](#tags) (see below) like `date:DATE`. This is probably the best
way to control posting dates precisely. Eg in this example the expense way to control posting dates precisely. Eg in this example the expense
should appear in May reports, and the deduction from checking should should appear in May reports, and the deduction from checking should
@ -2344,7 +2344,7 @@ or reference number.
A transaction's description is the rest of the line following the date and status mark (or until a comment begins). A transaction's description is the rest of the line following the date and status mark (or until a comment begins).
Sometimes called the "narration" in traditional bookkeeping, it can be used for whatever you wish, Sometimes called the "narration" in traditional bookkeeping, it can be used for whatever you wish,
or left blank. Transaction descriptions can be queried, unlike [comments](#comments). or left blank. Transaction descriptions can be queried, unlike [comments](#transaction-comments).
### Payee and note ### Payee and note
@ -2941,7 +2941,7 @@ Tags are a way to add extra labels or labelled data to transactions, postings, o
which you can then [search](#queries) or [pivot](#pivoting) on. which you can then [search](#queries) or [pivot](#pivoting) on.
They are written as a word (optionally hyphenated) immediately followed by a full colon, They are written as a word (optionally hyphenated) immediately followed by a full colon,
in a transaction or posting or account directive's [comment](#comments). in a transaction or posting or account directive's [comment](#account-comments).
(This is an exception to the usual rule that things in comments are ignored.) (This is an exception to the usual rule that things in comments are ignored.)
Eg, here four different tags are recorded: one on the checking account, Eg, here four different tags are recorded: one on the checking account,
two on the transaction, and one on the expenses posting: two on the transaction, and one on the expenses posting:
@ -3079,12 +3079,6 @@ It can be surprising though; for example, it means that
[`alias` directives do not affect parent or sibling files](#aliases-and-multiple-files) [`alias` directives do not affect parent or sibling files](#aliases-and-multiple-files)
(see below). (see below).
## Comment blocks
A line containing just `comment` starts a commented region of the file,
and a line containing just `end comment` (or the end of the current file) ends it.
See also [comments](#comments).
## Including other files ## Including other files
You can pull in the content of additional files by writing an include directive, like this: You can pull in the content of additional files by writing an include directive, like this:
@ -3321,7 +3315,7 @@ Though not required, these declarations can provide several benefits:
- In [strict mode], they restrict which accounts may be posted to by transactions, which helps detect typos. - In [strict mode], they restrict which accounts may be posted to by transactions, which helps detect typos.
- They control account display order in reports, allowing non-alphabetic sorting (eg Revenues to appear above Expenses). - They control account display order in reports, allowing non-alphabetic sorting (eg Revenues to appear above Expenses).
- They help with account name completion (in hledger add, hledger-web, hledger-iadd, ledger-mode, etc.) - They help with account name completion (in hledger add, hledger-web, hledger-iadd, ledger-mode, etc.)
- They can store additional account information as [comments](#comments), or as [tags](#tags) which can be used to filter or pivot reports. - They can store additional account information as [comments](#account-comments), or as [tags](#tags) which can be used to filter or pivot reports.
- They can help hledger know your accounts' types (asset, liability, equity, revenue, expense), affecting reports like - They can help hledger know your accounts' types (asset, liability, equity, revenue, expense), affecting reports like
[balancesheet](#balancesheet) and [incomestatement](#incomestatement). [balancesheet](#balancesheet) and [incomestatement](#incomestatement).
@ -4458,7 +4452,7 @@ Assigning to `date` sets the [transaction date](#simple-dates).
#### comment field #### comment field
`comment` sets the transaction's [comment](#comments), if any. `comment` sets the transaction's [comment](#transaction-comments), if any.
`commentN`, where N is a number, sets the Nth posting's comment. `commentN`, where N is a number, sets the Nth posting's comment.