weirongxu / coc-explorer

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

Open explorer buffer in current window. #516

Open Vssblt opened 2 years ago

Vssblt commented 2 years ago

How can I open an explorer buffer in the current window?

Hi, I have already read the manual. I just found to use --position to open a new window in left, right or floating mode. There seem to be no solution to open explorer buffer in current window. Am I missing something?

If we don't have a way to do this, do we have plans to add this feature?

weirongxu commented 2 years ago

This will be relevant to the implementation of this issue https://github.com/weirongxu/coc-explorer/issues/54, but I have not had time to implement new features recently, and pr is certainly welcome

weirongxu commented 2 years ago

:CocCommand explorer --position {current-window | fullscreen}

Vssblt commented 2 years ago

Okay, thanks for your reply, It's great extension. I'd be happy to post a new pr.

weirongxu commented 2 years ago

Here is the position is located in the source code, May provide some help

https://github.com/weirongxu/coc-explorer/blob/master/src/explorer.ts#L127-L129 https://github.com/weirongxu/coc-explorer/blob/master/autoload/coc_explorer.vim#L27