weirongxu / coc-explorer

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

`omitCenter` asymmetrically #503

Open Rizhiy opened 2 years ago

Rizhiy commented 2 years ago

Is your feature request related to a problem? Please describe. I have a lot of log files which start with the same prefix and are quite long. The important part (such as date) is at the end of the filename, so I use omitCenter to see it. Unfortunately, sometimes I can't see the whole of the right side. Left side is mostly the same, so not as important.

Describe the solution you'd like Having syntax with something like [filename keepLeft 3 omitCenter 1 fillRight 1] where only 3 characters at the start are shown and the rest is end of filename would be better.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

weirongxu commented 2 years ago

If your filename coolumn doesn't use omitCenter, but just a [filename], in this case, it's possible to display the entire content?

weirongxu commented 2 years ago

This part of the feature is really missing a lot of documentation, I will think about how to improve it later. In addition, there are actually two modifiers called omitLeft and omitRight used to ignore different positions.

Rizhiy commented 2 years ago

omitLeft seems to do what I need, but as you said it is not mentioned anywhere in the docs.