|
17 | 17 | description closest to DESC |
18 | 18 | -r --related show postings' siblings instead |
19 | 19 | --invert display all amounts with reversed sign |
| 20 | + --drop=N omit N leading account name parts |
20 | 21 | --sort=FIELDS sort by: date, desc, account, amount, absamount, |
21 | 22 | or a comma-separated combination of these. For a |
22 | 23 | descending sort, prefix with -. (Default: date) |
@@ -72,6 +73,8 @@ $ hledger register checking -b 2008/6 --historical |
72 | 73 |
|
73 | 74 | The `--depth` option limits the amount of sub-account detail displayed. |
74 | 75 |
|
| 76 | +The `--drop` option will trim leading segments from account names. |
| 77 | + |
75 | 78 | The `--average`/`-A` flag shows the running average posting amount |
76 | 79 | instead of the running total (so, the final number displayed is the |
77 | 80 | average for the whole report period). This flag implies `--empty` (see below). |
@@ -141,6 +144,15 @@ will be adjusted outward if necessary to contain a whole number of |
141 | 144 | intervals. This ensures that the first and last intervals are full |
142 | 145 | length and comparable to the others in the report. |
143 | 146 |
|
| 147 | +If you have a deeply nested account tree some reports might benefit from trimming |
| 148 | +leading segments from the account names using `--drop`. |
| 149 | + |
| 150 | +```cli |
| 151 | +$ hledger register --monthly income --drop 1 |
| 152 | +2008/01 salary $-1 $-1 |
| 153 | +2008/06 gifts $-1 $-2 |
| 154 | +``` |
| 155 | + |
144 | 156 | With `-m DESC`/`--match=DESC`, register does a fuzzy search for one recent posting |
145 | 157 | whose description is most similar to DESC. |
146 | 158 | DESC should contain at least two characters. |
|
0 commit comments