weirongxu / coc-explorer

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

Add config settings for customizing icons #487

Closed notpeelz closed 2 years ago

notpeelz commented 2 years ago

The "readonly" icon doesn't render properly on my terminal. Would it be possible to add config settings to customize what icons to use?

image

notpeelz commented 2 years ago

Thanks, works great! Though I think it would look better with a space between the buffer name and the icon(s), i.e: "explorer.buffer.child.template": "[git | 2] [selection | 1] [bufnr] [name] [modified][readonly] [fullpath]"... but then it looks weird when there's no icons. Is there a way to add a space only when icons are present?

image

weirongxu commented 2 years ago

Thanks, works great! Though I think it would look better with a space between the buffer name and the icon(s), i.e: "explorer.buffer.child.template": "[git | 2] [selection | 1] [bufnr] [name] [modified][readonly] [fullpath]"... but then it looks weird when there's no icons. Is there a way to add a space only when icons are present?

image

Yes, I need to design a syntax like [git & 1] but with the spaces on the left. but I don't have a good idea yet

Blingoose commented 3 months ago

is there any solution for this? couldn't find any answers. Ai doesn't help either. Appreciate a lot!