Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to appropriately wrap the longer file names? #534

Open
mental2008 opened this issue Jul 25, 2022 · 3 comments
Open

How to appropriately wrap the longer file names? #534

mental2008 opened this issue Jul 25, 2022 · 3 comments
Labels
question Further information is requested

Comments

@mental2008
Copy link

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
Copy link
Owner

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

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

@weirongxu weirongxu added the question Further information is requested label Jul 26, 2022
@mental2008
Copy link
Author

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
Copy link
Owner

weirongxu commented Jul 26, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants