weirongxu / coc-explorer

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

How to appropriately wrap the longer file names? #534

Open mental2008 opened 2 years ago

mental2008 commented 2 years ago

Hi, thanks for this great plugin!

I wonder if there is currently a way to wrap the file names appropriately when their length exceeds the width.

I have tried setting word wrapping in vim (i.e., set wrap), but it looks a little weird as follows.

The better thing is that I can better view the mapping help.

weirongxu commented 2 years ago

You should modify the explorer.file.child.template configuration. remove the modifier like growRight.

https://github.com/weirongxu/coc-explorer#template-grammar

mental2008 commented 2 years ago

You should modify the explorer.file.child.template configuration. remove the modifier like growRight.

https://github.com/weirongxu/coc-explorer#template-grammar

Thanks for your reply. It works well, though I have a few follow-up questions.

  1. What are the meanings of growRight and omitCenter? I'm still confused about them after reading the documentation.
  2. Is there any way to make text wrapping have auto indent so that the vertical lines are not cut off? See the following figure.
weirongxu commented 2 years ago

The existing features don‘t support line wrap very well, you can consider using the alternative features.