aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin (follow)
Commit message (Collapse)AuthorAgeLines
* Replace AlignCommodity with bean-formatWynn Wolf Arbor2020-04-28-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | AlignCommodity replicates the functionality of the bean-format command that is shipped with beancount itself. Therefore, we can fully replace it by having vim invoke bean-format through formatprg. Even though bean-format's output might differ from AlignCommodity in significant ways, we feel that using one unified tool is superior to having several (possibly incompatible) custom implementations. That way, if bean-format is improved upon in the future, all downstream consumers profit. For regular usage, however, this change should be transparent. Note that while bean-format supports a few different ways of formatting the ledger, we have opted to hard-code one specific setting. This will match the default behaviour of fava, aligning currencies in column 61. Managing the arguments passed to bean-format dynamically is considered out of scope, especially given the fact that the user need only override formatprg to get a custom setting. This commit will also drop the g:beancount_separator_col variable and the tests for AlignCommodity. Ideally, testing will now done upstream for bean-format itself.
* remove unnecessary option; lint and minor improvementsJakob Schnitzer2017-03-20-4/+1
| | | | | | | | | Beancount only supports '.' as decimal separator so making the decimal separator configurable doesn't serve any purpose and might confuse users. Make the regular expression matching in beancount#align_commodity a bit more precise.
* ftplugin lint and fix one commentJakob Schnitzer2017-03-20-10/+9
|
* Improved autocompleteJason Chu2016-09-05-1/+1
| | | | Merge pull #22
* Add a function to display the current line's beancount context in a scratch ↵Jason Chu2016-06-12-0/+3
| | | | window
* add vim-ledger style completion as an optionJohann Klähn2015-05-27-0/+6
|
* Add a beancount compiler that calls bean-check.Nathan Grigg2015-04-15-0/+1
| | | | | - Set the make program to bean-check. - Set the errorformat to parse the output of bean-check.
* Revert "Override C-X and C-A"Nathan Grigg2015-04-14-13/+0
| | | | | | | On further reflection, this feels outside the scope of this plugin. See http://goo.gl/HX09FG. This reverts commit f5b5b89bb617eea49dcac07996ce95fdb32e4b71.
* Override C-X and C-ANathan Grigg2015-04-04-0/+13
|
* Enable syntax-based folding of transactionsAaron Bull Schaefer2015-02-10-1/+1
| | | | | This is much more useful compared to using just foldmethod=marker, and it could be enhanced to support other multi-line items in the future.
* Remove personal stuff that other people won't use.Nathan Grigg2014-11-21-20/+3
|
* Add omnicomplete function for account namesNathan Grigg2014-11-21-0/+3
|
* Add foldmethodNathan Grigg2014-11-02-2/+11
|
* Set comment stringNathan Grigg2014-10-30-0/+2
|
* AlignCommodity and IncomingNathan Grigg2014-10-07-0/+28