| Commit message (Collapse) | Author | Age | Lines |
| |
|
| |
|
|
|
|
|
|
| |
Previously tags and metadata used the Comment group, which didn't make
much sense and caused everything to blend together. Now they use their
own groups which allows them to stand out.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
The vader tests do not exist anymore, and linting can be done locally.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* 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.
|
|\
| |
| | |
Fix a regression bug in AlignCommodity
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/
|/| |
Add linter support for ALE vim plugin.
|
| | |
|
| |
| |
| |
| |
| | |
ALE is a syntax checker similar to Syntastic, but support async in
Vim8 and NeoVim.
|
|\ \
| | |
| | | |
Improvements to the deoplete source.
|
| | | |
|
| | |
| | |
| | |
| | | |
Close #34.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Match commodities after numbers.
Close #33.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| |/ /
|/| | |
Fixes and lint
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
| | | |
|
| | | |
|
|/ / |
|
|\ \
| | |
| | | |
Tests; setup travis
|
| | | |
|
| | | |
|
|/ / |
|
| | |
|
| |
| |
| |
| | |
See https://github.com/Shougo/deoplete.nvim/issues/421 and https://github.com/Shougo/deoplete.nvim/issues/419
|
|\ \
| | |
| | | |
add deoplete source
|
| | | |
|
| | | |
|
| | | |
|
|/ / |
|
|\ \
| | |
| | | |
Add python3 support
|
| | | |
|
| | |
| | |
| | |
| | | |
Only works in python3 because bean-query doesn't expose event types
|
| | | |
|
| | |
| | |
| | |
| | | |
Using beancount in process instead of shelling out to bean-query.
|
| | | |
|
|\ \ \
| |/ /
|/| | |
|
|/ / |
|
|\ \
| | |
| | | |
Improve flag support
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|