ncm2-ledger


Ⅰ. 插件描述

Ncm2 source for Ledger based tools

Ⅱ. 基本信息

创建日期:  2019-07-09
使用用户:  1
Github星:  1
插件作者:  loonies

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'loonies/ncm2-ledger'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'loonies/ncm2-ledger'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'loonies/ncm2-ledger'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/loonies/ncm2-ledger

Ⅳ. 文档说明

Ncm2 Ledger

Description

Ncm2 completion source for Ledger CLI (http://ledger-cli.org) based
tools.

Installation

Requirements:

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 provideb 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) 2019 Miodrag Tokić.

Released under the MIT License. See the LICENSE file for details.

添加新评论