-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
94 lines (62 loc) · 2.02 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
Ncm2 Ledger
===========
Description
-----------
Ncm2 completion source for Ledger CLI (http://ledger-cli.org) based
tools.
Installation
------------
Requirements:
- NeoVim
- Plugin Ncm2 (https://github.com/ncm2/ncm2)
- Ledger based tool (ledger, hledger, etc.)
Installing:
Consult NeoVim documentation on installing packages.
Type `:help packages` in NeoVim for help.
Documentation
-------------
The Ledger Ncm2 source will provide completion for accounts from a
Ledger journal file.
There are four completion types provided by Ncm2 Ledger: `accounts`,
`tags`, `payees`, and `commodities` as well as relevant setting options
to influence retrieving completion candidates.
By default, `ledger` command with corresponding arguments is used.
Redefine the command as an array of CLI arguments.
For example, if you are using `hledger`:
let g:ncm2_ledger_cmd_accounts = ['hledger', 'accounts']
Settings
g:ncm2_ledger_opt_file
Defines a file option name. Edited file is passed to this
option as an argument.
Type: String
Default: --file
g:ncm2_ledger_cmd_accounts
Defines a command for retrieving accounts
Type: List
Default: ['ledger', 'accounts']
g:ncm2_ledger_cmd_tags
Defines a command for retrieving tags
Type: List
Default: ['ledger', 'tags']
g:ncm2_ledger_cmd_payees
Defines a command for retrieving payees
Type: List
Default: ['ledger', 'payees']
g:ncm2_ledger_cmd_commodities
Defines a command for retrieving commodities
Type: List
Default: ['ledger', 'commodities']
Note that in case of journal file parsing errors (e.g. unbalanced
transaction), previously cached candidates are returned, if any.
Contributing
------------
Open an issue or send a pull request on the Github
(http://github.com/loonies/ncm2-ledger).
Authors
-------
Maintainer:
- Miodrag Tokić
Copyright
---------
Copyright (C) 2020 Miodrag Tokić.
Released under the MIT License. See the LICENSE file for details.