Ⅰ. 插件描述
denite.nvim source and kind to mark and list directoriesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'kmnk/denite-dirmark'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'kmnk/denite-dirmark'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'kmnk/denite-dirmark'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/kmnk/denite-dirmark
Ⅳ. 文档说明
# denite-dirmark
denite.nvim source and kind to mark and list directories.
Features
- Add mark (and group) information of directory, and save information.
- Show marked directory list, and provide
directory
kind actions.
Requirements
Usage
Add mark
Execute
:Denite
command with source namedirmark/add
. Then directories are displayed- This candidates are generated by
file
source. So, you can pass argument for specifying search directory.
- This candidates are generated by
- Select target directory, and select
add
action. - Input any group and mark name.
List marked directories
Execute
:Denite
command with source namedirmark
. Then marked directories are displayed.- By default,
default
group list is displayed. If you want to specify group, pass group name as argument to dirmark source.
- By default,
- Select target directory, and select any action of
directory
kind.
Delete mark
Execute
:Denite
command with source namedirmark
. Then marked directories are displayed.- By default,
default
group list is displayed. If you want to specify group, pass group name as argument to dirmark source.
- By default,
- Select target directory, and select
delete
action.
Settings
Some setting methods are provided.
dirmark#set_cache_directory_path(path)
Set cache directory path for save dirmarks.
Default: ~/.cache/denite-dirmark
dirmark#set_default_group(group)
Set default group name for using denite-dirmark.
Default: default
Futures
- add tests
- multi marks adding and deleting
rename
actionregroup
actiondirmark/group
source (for add/delete/rename group)- separate cache file
- add cool highlighting