diff options
author | Johann Klähn | 2015-01-07 17:35:46 +0100 |
---|---|---|
committer | Johann Klähn | 2015-05-27 11:26:00 +0200 |
commit | 74be6aaca584457c4a487395d8a9849e6becff77 (patch) | |
tree | 79bb4342a08bfb48f60ae04f907d9bc4479cfc55 /doc | |
parent | c3ed247909501c093a1c9ccb7f47e1b4a960c06f (diff) | |
download | vim-beancount-74be6aaca584457c4a487395d8a9849e6becff77.tar.gz |
add vim-ledger style completion as an option
Diffstat (limited to 'doc')
-rw-r--r-- | doc/beancount.txt | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/doc/beancount.txt b/doc/beancount.txt index 7172adb..03f4c17 100644 --- a/doc/beancount.txt +++ b/doc/beancount.txt @@ -57,11 +57,26 @@ COMPLETION *beancount-completion* You can complete account names using CTRL-X CTRL-O. |i_CTRL-X_CTRL-O| Accounts must have their `open` directive in the current file. Completion is always case sensitive and exact. If the base string includes colons, each -colon-separated peice can separately match a peice of the account. +colon-separated piece can separately match a piece of the account. For example, `Ex:Other` would complete to `Expenses:Donations:Other` or `Liabilities:AmericanExpress:InterestOther`. +There is another mode of completion where each colon-separated piece +has to match at the beginning of that level of the account hierarchy, e.g. +`Ex:Oth` would match `Expenses:Other` but not `Expenses:Other:Something` +nor one of the two examples given above. +`Ex:Oth:` would, however, list all direct sub-accounts of `Expenses:Other`. +To enable this mode use + + let g:beancount_account_completion = 'chunks' + +Optionally, the list of candidates can be sorted by the number of levels +in the account hierarchy (e.g. return 'Expenses:Other' before 'Expenses'). +This behavior can be enabled using + + let g:beancount_detailed_first = 1 + SYNTAX *beancount-syntax* We use the following syntax highlighting groups: |