aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* 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 (!*)
* | Improved autocompleteJason Chu2016-09-05-45/+129
| | | | | | | | Merge pull #22
* | Merge pull request #19 from xentac/bean-doctor-contextNathan Grigg2016-06-14-0/+22
|\ \ | | | | | | Add a function to display the current line's beancount context in a scratch window
| * | Add a function to display the current line's beancount context in a scratch ↵Jason Chu2016-06-12-0/+22
|/ / | | | | | | window
* | Allow dates to be slash-separatedNathan Grigg2016-04-25-2/+2
| | | | | | | | (#17)
* | Merge pull request #13 from wzyboyNathan Grigg2016-04-24-1/+1
|\ \
| * | Allow underscores and capital letters in meta keysZhuoyun Wei2016-04-24-1/+1
|/ /
* | Merge pull request #12 from xentac/masterNathan Grigg2016-04-24-0/+12
|\ \ | | | | | | Add fold rules for markdown style sections