Skip to content

Conversation

abobov
Copy link
Owner

@abobov abobov commented Jul 2, 2019

No description provided.

axgfn and others added 17 commits October 17, 2017 18:37
When using ledger with the `--strict` option, you need to declare all
your used accounts. These declarations can additionally be used to
complete account names.

ledger#declared_accounts() works a lot like ledger#transactions(), on
which it is based. s:collect_completion_data() can then take the list of
declared accounts as an initial value to which it then adds the accounts
used in transactions.

Signed-off-by: Roland Hieber <[email protected]>
Resolves all current concerns in ledger/vim-ledger issue #64.
This commit detect the location of the decimal point consistently in the
following circumstances (given g:ledger_decimal_sep='.'):

    -30 = 0
    456.78

It uses the decimal point location if it can be found, and if it cannot,
it uses the first character after the first group of digits.
When account names are too long, LedgerAlign was currupting the aligned
lines. This commit ensures that:

- In any case, if the account name is longer than the aligning column,
  the line is not corrupted and the amount is put at the end of the line
  (instead of putting it in the middle of the account name)

- In any case, it ensures that there is a minimum of 2 spaces between
  the account name and the amount.
Fix LedgerAlign corruptions
Fix report highlighting
Fixes #64. Closes #72.

Merged manually rather than through Github to fix merge conflict.
Allow completion from declared accounts
Disable spell highlighting for amount fields
@abobov abobov merged commit ad77421 into abobov:master Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants