slack-memo-vim


Ⅰ. 插件描述

Simple memo manager with Vim using Slack.

Ⅱ. 基本信息

创建日期:  2016-12-03
使用用户:  3
Github星:  38
插件作者:  tsuyoshi wada

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'tsuyoshiwada/slack-memo-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'tsuyoshiwada/slack-memo-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'tsuyoshiwada/slack-memo-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/tsuyoshiwada/slack-memo-vim

Ⅳ. 文档说明

slack-memo.vim

Simple memo manager with Vim using Slack.

Screenshots

Screenshot

Usage

Post a memo on Slack.

:SlackMemoPost

List memos on Slack.

:SlackMemoList

List memos on Slack with CtrlP.

:SlackMemoCtrlP

List search result memos on Slack

:SlackMemoSearch search query

Keymaps in the memo list

The following keymaps are available in the buffer of the memo list. It does not work with CtrlP.

keydescription
Enter or oOpen memo on cursor.
Esc or qClose memo list window.
dDelete memo on cursor.
yYank memo on cursor.
rUpdate list window.

You can udpate it by saving memo opened in buffer.

Install

It's easy to install using plugin manager.
Depending on your plugin manager, please add the following to .vimrc.

Install with dein

call dein#add('tsuyoshiwada/slack-memo-vim', {'depends': 'mattn/webapi-vim'})

Install with NeoBundle

NeoBundle 'tsuyoshiwada/slack-memo-vim', {'depends': 'mattn/webapi-vim'}

Requirements

Setup

You need a token to use Slack Web API.
Please set your token on g:slack_memo_token. and set channel Id in g:slack_memo_channel.

let g:slack_memo_token = '<YOUR_TOKEN>'
let g:slack_memo_channel = '<YOUR_MEMO_CHANNEL_ID>'

If you do not know the Id right away, you can easily check with the channel.list tester.

Setup is complete!

Tips

Example keymap

You can post / list easily with the following keymap.

nnoremap smp :SlackMemoPost<CR>
nnoremap sml :SlackMemoList<CR>

GFM TODO list

Support GFM TODO list. Posting following memo will be displayed with emoji on Slack.

* [x] Done1
* [x] Done2
* [ ] TODO...

Contributing

Reporting issue

Contributing to code

  • Fork it.
  • Commit your changes and give your commit message.
  • Push to your fork on GitHub.
  • Open a Pull Request.

Credit

License

See the LICENSE.

TODO

  • [x] Support CtrlP.
  • [ ] Support sort list.
  • [ ] Support vertical split list window.
  • [ ] Support open memo in new tab.
  • [ ] Delete multiple memos.
  • [ ] List more than 1000 memos.

添加新评论