aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Highlight multi-line plugin definitions correctlyWolfgang Müller2021-03-17-1/+1
| | | | | | | | | vim's :syn-keepend is used to end any contained syntax group when its container group ends. The syntax file defines the end of a plugin definition as the end of the line, breaking multi-line plugin definitions that are common in our ledger. Remove the 'keepend' option to fix this.
* Update README with details about this forkWynn Wolf Arbor2020-04-28-11/+10
|
* Replace AlignCommodity with bean-formatWynn Wolf Arbor2020-04-28-135/+6
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Drop travis.ymlWynn Wolf Arbor2020-04-28-15/+0
| | | | The vader tests do not exist anymore, and linting can be done locally.
* Drop support for syntasticWynn Wolf Arbor2020-04-28-25/+0
|
* Drop support for aleWynn Wolf Arbor2020-04-28-7/+0
|
* Drop support for deopleteWynn Wolf Arbor2020-04-28-122/+0
|
* Speed up Vim exit (#43)Zhuoyun Wei2017-10-27-1/+3
| | | | | | | | * Speed up Vim exit Making cache on every type of events makes exiting Vim quite slow. Per https://github.com/Shougo/deoplete.nvim/blob/e6f4df0108081b8120df9ce83264e4997c4dfedc/doc/deoplete.txt#L891-L907 , only some types of events should be reacted to.
* Merge pull request #42 from wzyboy/bugfix/support-plus-sign-before-numbersxentac2017-10-27-1/+7
|\ | | | | Fix a regression bug in AlignCommodity
| * test: AlignCommodity with -/+ signsZhuoyun Wei2017-09-12-0/+6
| |
| * Fix a regression bug in AlignCommodityZhuoyun Wei2017-09-12-1/+1
| | | | | | | | | | | | | | | | | | | | Since commit e17eb3d, putting a plus sign before a number causes :AlignCommodity to behaviour incorrectly. A reproducible example: Assets:Cash -100.00 USD Expenses:Food +100.00 USD This commit fixes the regression bug.
* | Merge pull request #41 from yegle/add-ale-linter-supportxentac2017-10-27-0/+7
|\ \ | |/ |/| Add linter support for ALE vim plugin.
| * Fix default handler callback.Yuchen Ying2017-10-24-1/+1
| |
| * Add linter support for ALE vim plugin.Yuchen Ying2017-10-24-0/+7
| | | | | | | | | | ALE is a syntax checker similar to Syntastic, but support async in Vim8 and NeoVim.
* | Merge pull request #38 from yagebu/improvementsxentac2017-03-27-17/+56
|\ \ | | | | | | Improvements to the deoplete source.
| * | deoplete: accounts can contain colonsJakob Schnitzer2017-03-20-4/+6
| | |
| * | deoplete: event completionJakob Schnitzer2017-03-20-3/+14
| | | | | | | | | | | | Close #34.
| * | deoplete: commodity completionJakob Schnitzer2017-03-20-6/+15
| | | | | | | | | | | | | | | | | | Match commodities after numbers. Close #33.
| * | deoplete: improve account completion; fix bugJakob Schnitzer2017-03-20-10/+27
| | | | | | | | | | | | | | | | | | | | | | | | Don't try to complete for accounts in all places, only after the appropriate keywords or at the start of a line. Also initialize the "cache" using a defaultdict as to not get errors when the completions are accessed before the file is loaded.
* | | Merge pull request #39 from yagebu/fixes-and-lintxentac2017-03-26-151/+120
|\ \ \ | |/ / |/| | Fixes and lint
| * | fix remaining lint issuesJakob Schnitzer2017-03-20-29/+28
| | |
| * | remove unnecessary option; lint and minor improvementsJakob Schnitzer2017-03-20-29/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | lint align_commodityJakob Schnitzer2017-03-20-18/+18
| | |
| * | ftplugin lint and fix one commentJakob Schnitzer2017-03-20-10/+9
| | |
| * | autoload/beancount.vim: lint and remove trivial functionsJakob Schnitzer2017-03-20-59/+27
| | |
| * | indent: fix for custom root accounts and lintJakob Schnitzer2017-03-20-16/+16
|/ /
* | Merge pull request #40 from yagebu/testxentac2017-03-17-0/+54
|\ \ | | | | | | Tests; setup travis
| * | more align testsJakob Schnitzer2017-03-14-0/+12
| | |
| * | add travis configJakob Schnitzer2017-03-14-0/+15
| | |
| * | add vader.vim test for AlignCommodityJakob Schnitzer2017-03-14-0/+27
|/ /
* | Update syntax to handle per-leg flags better.Nathan Grigg2017-02-25-2/+5
| |
* | Change return value of gather_candidates because str's aren't valid anymoreJason Chu2017-01-19-5/+5
| | | | | | | | See https://github.com/Shougo/deoplete.nvim/issues/421 and https://github.com/Shougo/deoplete.nvim/issues/419
* | Merge pull request #31 from yagebu/masterxentac2016-11-21-16/+134
|\ \ | | | | | | add deoplete source
| * | deoplete: use b:beancount_rootJakob Schnitzer2016-11-21-8/+8
| | |
| * | doc: document deopleteJakob Schnitzer2016-11-21-6/+18
| | |
| * | doc: document optionsJakob Schnitzer2016-11-21-5/+36
| | |
| * | add deoplete sourceJakob Schnitzer2016-11-20-0/+75
|/ /
* | Merge pull request #28 from xentac/python3Nathan Grigg2016-11-14-10/+72
|\ \ | | | | | | Add python3 support
| * | Add caching back to python3 autocomplete implementationJason Chu2016-11-13-1/+2
| | |
| * | Add support for completing event typesJason Chu2016-11-07-2/+13
| | | | | | | | | | | | Only works in python3 because bean-query doesn't expose event types
| * | Fix off-by-one error in initial line matchingJason Chu2016-11-07-2/+2
| | |
| * | Add support for python3Jason Chu2016-11-07-5/+56
| | | | | | | | | | | | Using beancount in process instead of shelling out to bean-query.
| * | Remove errant print statementJason Chu2016-11-07-1/+0
| | |
* | | Merge branch 'pull30'Nathan Grigg2016-11-11-2/+2
|\ \ \ | |/ / |/| |
| * | add back support for `*` transaction flagJakob Schnitzer2016-11-11-2/+2
|/ /
* | Merge pull request #26 from jtraub/flag_supportNathan Grigg2016-10-08-5/+6
|\ \ | | | | | | Improve flag support
| * | Improve flag supportKonstantin Mikhailov2016-10-07-5/+6
|/ / | | | | | | | | | | | | | | | | | | Beancount allows to attach flags to transactions and even to the postings themselves. At the moment it supports 12 different flags. Full list can be found in beancount sources https://bitbucket.org/blais/beancount/src/tip/src/python/beancount/parser/lexer.l?fileviewer=file-view-default#lexer.l-199 The commit updates syntax highlighting and AlignCommodity function to respect all flags.
* | Support whole numbers in align commodityNathan Grigg2016-10-01-10/+5
| | | | | | | | | | | | | | | | | | The original implementation first looked for a decimal point and then fell back to whole number search, but this meant that a decimal in the price part of the directive would steal focus from the leading whole number. Fixes #14.
* | Fix AlignCommodity to work with balance and priceKonstantin Mikhailov2016-10-01-1/+1
| | | | | | | | Closes #21 and #24. Supports dates with slash separator.
* | Fix highlight of txn directiveKonstantin Mikhailov2016-09-30-1/+1
| | | | | | | | txn directive is mutually exclusive with flags (!*)