weirongxu / coc-explorer

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

Is there any function i can make sure explorer is closed. #460

Closed w1zd closed 3 years ago

w1zd commented 3 years ago

If coc-explorer is shown when mksession, it will crash on session resotred, so i wonder is there any way that i can make sure coc-explorer is closed, thanks.

weirongxu commented 3 years ago

Using the user events or CocAction?

https://github.com/weirongxu/coc-explorer#user-events

https://github.com/weirongxu/coc-explorer/wiki/Vim-API#explorergetnodeinfo

:echo CocAction('runCommand', 'explorer.getNodeInfo', 'closest')
w1zd commented 3 years ago

Ok, i'll try, maybe feedback later.

w1zd commented 3 years ago

It works well, thanks for replying.