weirongxu / coc-explorer

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

Open File just like nerdtree/fern, always stays in its configuration width, just like nerdtree. #511

Closed linrongbin16 closed 2 years ago

linrongbin16 commented 2 years ago

Is your feature request related to a problem? Please describe. In default configuration, when coc-explorer is the only window, and use <CR> to open a file, I want that file is opened on the right, and coc-explorer width is still 40. Here's the reproduction:

  1. Open vim/neovim, type :CocCommand explorer<CR>, the coc-explorer is opened on the left side with 40 width, currently buffer is No-Name buffer. Notice I use no-focus so cursor is in No-Name buffer.

image

  1. type :q to quit No-Name buffer, then coc-explorer is the only window. Then I select a text file and press to open it. The buffer will split on the left by default. If I use :set splitright, it will be on the right side. But in both, the coc-explorer's width is equal with the new-opened buffer, no longer 40 width. it's not same with nerdtree. But I want coc-explorer always stay in 40 width, since I think that's more prettier, or more like a file explorer.

image

Describe the solution you'd like

I want coc-explorer always stays in its configuration width, just like nerdtree.

Describe alternatives you've considered

I don't have any alternatives.

Additional context

Nothing here.