| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Make the default alignment behaviour the same as before 767ab3e, that
is, align on the last digit by default. A new option
`ledger-post-amount-alignment-at' now exists to adjust alignment
preference.
|
|
|
|
|
|
|
|
|
| |
That is:
A $10.00
B $5
C -$15.00
Before the numbers aligned at the end of the last digit.
|
|
|
|
|
| |
In addition to re-aligning postings, if the point is in a comment, just
fill that comment as regular plaintext.
|
|
|
|
|
| |
If no region is active, align the current transaction. If a region is
active, align all postings in the region.
|
|
|
|
|
| |
Use standard method (interactive "r") to get the current active region
for use in ledger-post-align-postings.
|
|
|
|
|
|
| |
C-x h M-x indent-region RET
[ci skip]
|
|
|
|
|
|
| |
The following script makes it a no-brainer:
% NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \
| xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/"
|
|
|
|
|
|
|
| |
Sometimes cleaning a buffer would leave the end of the buffer uncleaned,
because the end position would be moved along the way. This commit makes
the corresponding code use markers instead, which track the changes in
the buffer, and therefore ensure that the entire buffer is acted upon.
|
| |
|
|
|
|
| |
Reduce several overlapping functions.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
M-x mark-whole-buffer
M-x indent-region
M-x mark-whole-buffer
M-x untabify
|
| |
|
| |
|
|
|
|
| |
amounts with period thousand separators.
|
|\
| |
| |
| |
| | |
Conflicts:
lisp/ledger-post.el
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Conflicts:
lisp/ledger-init.el
lisp/ledger-mode.el
lisp/ledger-reconcile.el
lisp/ledger-schedule.el
|
| |/
|/| |
|
|/
|
|
|
|
|
| |
Otherwise if there is an account that's name only has one part, the
regex can match it as a currency and as the beginning of an amount.
E.g. if we have the line "Expenses 45 USD", then the old
ledger-next-amount will jump to Expenses instead of to 45.
|
|
All files and references changed ldg-* to ledger-*
|