bufferline.nvim icon indicating copy to clipboard operation
bufferline.nvim copied to clipboard

[Feature Request]: option to customize pinned buffer icon šŸ“Œ

Open stopdesign opened this issue 1 year ago • 4 comments

What?

It would be great to have an option to customize the pin icon. Or maybe to remove it and use colors to indicate pinned state. It is hardcoded now:

builtin.pinned = Group:new({
  id = PINNED_ID,
  name = PINNED_NAME,
  icon = "šŸ“Œ",
  priority = 1,
  separator = {
    style = separator.none,
  },
})

Alternatively, I’m looking for a simple way to change it dynamically.

Why?

No response

stopdesign avatar Dec 02 '24 19:12 stopdesign

Totally agree on this, especially given the fact that the README says you need a patched font (nerdfonts), but (at least) some of the fonts don't include that icon.

JorgeFPastor avatar Dec 08 '24 21:12 JorgeFPastor

I believe the pin icon is just an emoji so shouldn't require a patched font. In either case happy to have this change is someone is willing to raise a PR.

akinsho avatar Dec 30 '24 18:12 akinsho

Currently, you can customize pinned icon using the following method:

local groups = require("bufferline.groups")
groups.builtin.pinned.icon = "<Icon>"

hnjae avatar Apr 18 '25 06:04 hnjae

I believe the pin icon is just an emoji so shouldn't require a patched font. In either case happy to have this change is someone is willing to raise a PR.

I would also like to ask for functional with pinning so that when Pin is only icon and hidden Filename

maarutan avatar May 23 '25 15:05 maarutan