Ⅰ. 插件描述
Manger list of git objects with interface of denite.nvimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'neoclide/denite-git-say-im-great'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'neoclide/denite-git-say-im-great'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'neoclide/denite-git-say-im-great'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/neoclide/denite-git
Ⅳ. 文档说明
# Denite-git
Git log, git status and git changed source for Denite.nvim.
Video of denite gitlog:
Video of denite gitstatus:
Installation
For user of vim-plug, add:
Plug 'Shougo/denite.nvim'
Plug 'chemzqm/denite-git'
For user of dein.vim, add:
call dein#add('Shougo/denite.nvim')
call dein#add('chemzqm/denite-git')
to your vimrc and run PlugInstall if needed.
Usage
For git log:
" log of current file
Denite gitlog
" all git log of current repository
Denite gitlog:all
" filter gitlog with fix as input
Denite gitlog::fixFor git status:
Denite gitstatusFor git changed
Denite gitchangedgitchanged source is just simple line source.
For git branch
Denite gitbranchFor git files
" view different versions of files on different branches (or commits, or tags)
Denite gitfiles
" all files in repo on master
Denite gitfiles:master
" all files in repo as of sha 31a3b3
Denite gitfiles:31a3b3
Actions
Actions of gitlog:
opendefault action for open seleted commit.previewpreview seleted commit.deleterun git diff with current commit for current buffer. (just named delete)resetrun git reset with current commit.
Actions of gitstatus:
openopen seleted file, default actionaddrun git add for seleted file(s).deleterun git diff for seleted file. (just named delete)resetrun git reset/checkout or remove for seleted file(s).commitrun git commit for seleted file(s).
Actions of gitbranch:
checkoutdefault action to checkout selected branch.deletedelete seleted branch.mergemerge seleted branch with current branch.rebaserebase seleted branch with current branch.
Actions of gitfiles:
viewdefault action to view a file at a certain commit (read-only)
Key Mapppings
It's recommanded to add custom key mappings for improve your speed of
interacting with denite source, for example:
call denite#custom#map(
\ 'normal',
\ 'a',
\ '<denite:do_action:add>',
\ 'noremap'
\)
call denite#custom#map(
\ 'normal',
\ 'd',
\ '<denite:do_action:delete>',
\ 'noremap'
\)
call denite#custom#map(
\ 'normal',
\ 'r',
\ '<denite:do_action:reset>',
\ 'noremap'
\) 
