From bdc0374f49d32dd7a996113fc49d6abee2a50b24 Mon Sep 17 00:00:00 2001 From: Nathan Grigg Date: Tue, 7 Oct 2014 10:59:11 -0700 Subject: AlignCommodity and Incoming --- doc/beancount.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/beancount.txt (limited to 'doc/beancount.txt') diff --git a/doc/beancount.txt b/doc/beancount.txt new file mode 100644 index 0000000..6b070c9 --- /dev/null +++ b/doc/beancount.txt @@ -0,0 +1,17 @@ +* `:AlignCommodity` + + adds spaces between an account and commodity so that the decimal points of + the commodities all occur in the column given by `g:decimal_separator_col`. + If an amount has no decimal point, the imaginary decimal point to the right + of the least significant digit will align. + + The command acts on a range, with the default being the current line. If the + cursor happens to be inside that range and to the right of the account name, + the cursor will be pushed to the right the appropriate amount, so that it + remains on the same character. + + The alignment character can be set using `g:beancount_decimal_separator`. + The script assumes the use of spaces for alignment. It does not understand + tabs. You might like the following remap: + + inoremap . .:AlignCommodity -- cgit v1.2.3-2-gb3c3