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

Fix unique name handling

Open romgrk opened this issue 5 years ago • 5 comments

TBD:

  • Make it deterministic (should give the same output not matter the order of the buffers)
  • Make names as short as possible

romgrk avatar Oct 22 '20 14:10 romgrk

https://github.com/romgrk/barbar.nvim/issues/5#issuecomment-715613085

romgrk avatar Oct 23 '20 22:10 romgrk

Any updates? I am so tired of :( image

niyabits avatar May 10 '21 18:05 niyabits

Haven't had time to work on this lately. If you wanna take a jab at it you can pay with:

https://github.com/romgrk/barbar.nvim/blob/566a7ef96e6e935c6e84ddfb73e3a50a7b196638/lua/bufferline/utils.lua#L93-L110

https://github.com/romgrk/barbar.nvim/blob/54b4376d9a44b45f12b0f6f5bcc46f98b66782e1/lua/bufferline/state.lua#L209-L235

romgrk avatar May 10 '21 19:05 romgrk

Oooh and the separator is hardcoded as '/', it needs to be changed for a variable that depends on the OS, that's why it's so ugly for you.

Edit: does 1e73479 make things better?

romgrk avatar May 10 '21 19:05 romgrk

That was so quick! Yes, it behaves as expected now :D Thanks a ton!

niyabits avatar May 10 '21 20:05 niyabits