Shougo / denite.nvim

:dragon: Dark powered asynchronous unite all interfaces for Neovim/Vim8
Other
2.06k stars 216 forks source link

Add only_in_current_directory option to buffer source #821

Closed youxkei closed 3 years ago

youxkei commented 3 years ago

When vim has the following state:

the buffer source with only_in_current_directory enabled lists the following buffers:

The buffer source with only_in_current_directory enabled is useful when you use it combined with file/rec as following:

call denite#custom#alias('source', 'buffer/cd', 'buffer')
call denite#custom#var('buffer/cd', 'only_in_current_directory', 1)

" combine buffer/cd with file/rec
:Denite buffer/cd file/rec
Shougo commented 3 years ago

This option is not needed. Because matcher/project_files already exists for it.