ledger.kak: Automatically indent postings in transactions
This commit is contained in:
parent
710ebabcb8
commit
2d15c13c1e
|
@ -130,6 +130,8 @@ define-command -hidden ledger-indent-on-new-line %[
|
||||||
try %[ execute-keys -draft \; K <a-&> ]
|
try %[ execute-keys -draft \; K <a-&> ]
|
||||||
# cleanup trailing whitespaces from previous line
|
# cleanup trailing whitespaces from previous line
|
||||||
try %[ execute-keys -draft k <a-x> s \h+$ <ret> d ]
|
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> ]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user