weirongxu / coc-explorer

📁 Explorer for coc.nvim
MIT License
1.15k stars 45 forks source link

[Feature] Target list of folders? #557

Open tmpm697 opened 1 year ago

tmpm697 commented 1 year ago

I have a folder that contains multiple projects, like:

cd projects
ls
fder1/ fder2/ fder3/ fder4/

i want to open nvim/vim and start :CocCommand explorer that show only fder1/ and fder3/ is there a way to achieve this with coc-explorer?

I tried nvim fder1/ fder3 -- this command will create two explorer buffers that target each folder fder1/ and fder3/ separately (I have line in vim/nvim config that start explorer when input is a folder: autocmd BufEnter * let d = expand('%') | if isdirectory(d) | silent! bd | exe 'CocCommand explorer ' . d | endif) but not work

i want to able to either start nvim to target multiple folders and then have coc-explorer show exactly those folders or start nvim and then have a way to add folder to coc-explorer tree manually.

weirongxu commented 1 year ago

It is not supported yet, we may need coc-explorer to support multi-directory first