weirongxu/coc-explorer

How to appropriately wrap the longer file names?

mental2008 opened this issue · 3 comments

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.

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

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

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.

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

  • Use the Il to toggle the floating preview function to view the long file names
  • Use adjustSize action to resize the window