Commit graph

10 commits

Author SHA1 Message Date
Henrik Lissner
c45c8cee35
tweak(beancount): +beancount/balance w/ prefix arg
Without the prefix arg, it will only display the balance of Assets and
Liabilities.  With it, the balance of all accounts will be shown.
2024-07-07 14:38:21 -04:00
Henrik Lissner
1baea0c4c2
feat(beancount): add +beancount/occur command
Inspired by org-occur (or org-sparse-tree): hides all
transactions/directives in the buffer that don't involve a selected
account.
2023-09-20 20:24:00 +02:00
Henrik Lissner
c5e387f7b4
fix(beancount): previous-transaction: jump-to-start behavior
To match +beancount/previous-transaction's docstring: this command
should jump to the start of the transaction/directive at point first,
before jumping to the previous one. Now it does so.

It should also return nil if it fails.
2023-09-20 20:24:00 +02:00
Henrik Lissner
36651d6e66
tweak(beancount): include directives for next/prev transaction
+beancount/next-transaction and +beancount/previous-transaction would
formerly skip timestampped directives, e.g.

  2016-09-15 * "Foo" ""
    Expenses:Y                                  779.00 DKK
    Assets:X:Checkings
  2016-11-16 balance Assets:X:Checkings         8,417.58 DKK
  2016-12-13 * "Bar" ""
    Assets:X:Checkings                          2,100.00 DKK
    Income:Z

The `balance` directive would be skipped over. This commit changes that
to include them. Perhaps the commands should be renamed to
+beancount/{next,previous}-entry to better reflect my intended purpose
for them?
2023-09-20 20:24:00 +02:00
Henrik Lissner
96e6b72be6
nit(beancount): revise docstrings & sharp-quotes functions 2023-09-20 20:23:59 +02:00
Henrik Lissner
9d9b278914
feat(beancount): add {next,previous}-transaction commands 2023-02-25 20:47:29 -05:00
Henrik Lissner
86a8b41e37
refactor(beancount): +beancount/clone-transaction 2022-04-03 20:51:54 +02:00
Henrik Lissner
cc1433ca6d
fix(beancount): void-variable select error 2022-02-14 21:24:46 +01:00
Henrik Lissner
958472b048 feat(beancount): add clone-transaction commands 2022-02-10 21:07:20 +01:00
Henrik Lissner
8a083d1370 Add :lang beancount module 2021-04-14 23:31:13 -04:00