Commit Graph

12 Commits

Author SHA1 Message Date
440e952056 fix(beancount): +beancount/balance: make v3 compliant
bean-report was removed in beancount v3+, so we defer to bean-query,
which is present in both v2 and v3 (though it lives in a separate repo
in v3).
2025-04-30 03:54:15 -04:00
373b7aa976 fix: rename {b,e}ol functions to pos-{b,e}ol
These two functions were introduced in emacs-mirror/emacs@f117b5df4d
as `bol` and `eol`, but were renamed to `pos-bol` and `pos-eol` in
emacs-mirror/emacs@2614e53216.

Close: #8242
2025-01-14 13:52:41 -05:00
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
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
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
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
96e6b72be6 nit(beancount): revise docstrings & sharp-quotes functions 2023-09-20 20:23:59 +02:00
9d9b278914 feat(beancount): add {next,previous}-transaction commands 2023-02-25 20:47:29 -05:00
86a8b41e37 refactor(beancount): +beancount/clone-transaction 2022-04-03 20:51:54 +02:00
cc1433ca6d fix(beancount): void-variable select error 2022-02-14 21:24:46 +01:00
958472b048 feat(beancount): add clone-transaction commands 2022-02-10 21:07:20 +01:00
8a083d1370 Add :lang beancount module 2021-04-14 23:31:13 -04:00