ledger.kak: Automatically indent postings in transactions

This commit is contained in:
codesoap 2019-07-02 09:49:52 +02:00
parent 710ebabcb8
commit 2d15c13c1e

View File

@ -130,6 +130,8 @@ define-command -hidden ledger-indent-on-new-line %[
try %[ execute-keys -draft \; K <a-&> ]
# cleanup trailing whitespaces from previous line
try %[ execute-keys -draft k <a-x> s \h+$ <ret> d ]
# indent after the first line of a transaction
try %[ execute-keys -draft k<a-x> <a-k>^[0-9]<ret> j<a-gt> ]
]
]