bufstop icon indicating copy to clipboard operation
bufstop copied to clipboard

Enable devicons, add filetype "bufstop" to Bufstop window for users to be able to detect it and color it if they like

Open poetaman opened this issue 3 years ago • 1 comments

You will need two simple things:

  1. Check if vim-devicons plugin is loaded. If yes, then use the function WebDevIconsGetFileTypeSymbol() provided by it to get the file's icon (as discussed pointed here) & prepend it to the file name column of Bufstop/BufstopPreview window.
  2. Make sure to assign a unique filetype name like "bufstop" to your Bufstop window. This can be used by people who want to color the icons (you don't need to add any coloring code yourself). This is being discussed here.

The result will look something like this:

https://github.com/ryanoasis/vim-devicons#---1

poetaman avatar Feb 05 '21 07:02 poetaman

Sounds cool, I'll investigate this when I have some time.

mihaifm avatar Feb 05 '21 14:02 mihaifm