deoplete-notmuch


Ⅰ. 插件描述

Deoplete source for notmuch address

Ⅱ. 基本信息

创建日期:  2018-03-20
使用用户:  2
Github星:  2
插件作者:  Kevin Velghe

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/paretje/deoplete-notmuch

Ⅳ. 文档说明

# deoplete-notmuch

Deoplete-notmuch offers asynchronous completion of email addresses using notmuch address.
Inspired by @fszymanski and @frbor's abook sources.

Installation

To install deoplete-notmuch, use your favourite plugin manager.

Using vim-plug on neovim

Plug 'Shougo/deoplete.nvim', {'do': ':UpdateRemotePlugins'}
Plug 'paretje/deoplete-notmuch', {'for': 'mail'}

Configuration

" notmuch address command to fetch completions
" NOTE: --format=json is required
let g:deoplete#sources#notmuch#command = ['notmuch', 'address', '--format=json', '--deduplicate=address', '*']

The command must output JSON in the following schema to be parseable by this plugin (so as long as the output is in spec, one may try to use a different source than notmuch):

[
    {
        "name":"Jane Doe",
        "address":"jane@mail.doe",
        "name-addr":"Jane Doe <jane@mail.doe>"
    },
]

You can modify the notmuch search to great extents, for example replace '*' by tag:sent and add --output=recipients to narrow the completions down to people who already received an email from you. For further information, see man 1 notmuch-address and man 7 notmuch-search-terms.

添加新评论