Add keybindings for ledger account reconciliation

This commit is contained in:
Tim Jaeger 2017-01-04 11:15:39 +01:00 committed by d12frosted
parent f4368bc092
commit cc4aa59d08
No known key found for this signature in database
GPG Key ID: 8F60E862D6F5CE8F
2 changed files with 18 additions and 1 deletions

View File

@ -7,7 +7,8 @@
- [[#configuration][Configuration]]
- [[#ledger][Ledger]]
- [[#key-bindings][Key bindings]]
- [[#ledger][Ledger]]
- [[#ledger-1][Ledger]]
- [[#ledger-reconcile][Ledger-Reconcile]]
* Description
@ -53,3 +54,13 @@ your =dotspacemacs/user-config=. The default value, set in the layer, is =62=.
| ~SPC m t~ | append an effective date to a post |
| ~SPC m y~ | set the year for quicker entry |
| ~SPC m RET~ | set the month for quicker entry |
** Ledger-Reconcile
| Key Binding | Description |
|-------------+---------------------------------------------------------------------------|
| ~SPC m ,~ | toggle the current transaction pending |
| ~SPC m a~ | quickly add a transaction, without exiting the reconciliation buffer |
| ~SPC m t~ | change the target amount for the selected account |
| ~SPC m q~ | quit reconciliation |
| ~SPC m RET~ | finalize the reconciliation, changing all pending transactions to cleared |

View File

@ -46,6 +46,12 @@
"t" 'ledger-insert-effective-date
"y" 'ledger-set-year
"RET" 'ledger-set-month)
(spacemacs/set-leader-keys-for-major-mode 'ledger-reconcile-mode
"," 'ledger-reconcile-toggle
"a" 'ledger-reconcile-add
"q" 'ledger-reconcile-quit
"t" 'ledger-reconcile-change-target
"RET" 'ledger-reconcile-finish)
;; temporary hack to work-around an issue with evil-define-key
;; more info: https://bitbucket.org/lyro/evil/issues/301/evil-define-key-for-minor-mode-does-not
;; TODO remove this hack if the limitation is removed upstream