bufler.el icon indicating copy to clipboard operation
bufler.el copied to clipboard

Ivy's beautification does not survive blufer

Open shackra opened this issue 5 years ago • 2 comments

hi!

I'm using [ivy-rich](https://github.com/Yevgnen/ivy-rich) and [all-the-icons-ivy-rich](https://github.com/seagle0128/all-the-icons-ivy-rich) to beautify the candidates, this is what counsel-switch-buffer displays:

image of counsel-switch-buffer

Compared to blufer-switch-buffer:

image

is there anything I can do to workaround this "beautification problem"? Any chance for bufler to play nice with these decorations?

shackra avatar Dec 31 '20 03:12 shackra

bufler-switch-buffer is intended to format buffer names and paths itself. I don't know what changes would be needed to make it work with those packages. The code is pretty simple, so you should be able to copy it and modify it accordingly.

Or, the candidates are just strings, so you could write a counsel command to do whatever you want with them.

alphapapa avatar Jan 04 '21 06:01 alphapapa

This will be easier in Emacs 28 using annotation and affixation functions, e.g. like the ones used by Marginalia. An example: https://github.com/alphapapa/taxy.el/blob/287ec9a75db441db09150f31b123f27d19940cc8/examples/deffy.el#L297

alphapapa avatar Sep 22 '21 08:09 alphapapa