nvim-tabline icon indicating copy to clipboard operation
nvim-tabline copied to clipboard

Unique file names

Open devout-coder opened this issue 1 year ago • 2 comments
trafficstars

If two files opened in two separate tabs have the same file name, then ideally the file path that differs should also be visible. But presently, there is no difference. image In this image one of the mappings.lua file is in custom folder and the other one is in core folder. But this difference in path isn't visible.

devout-coder avatar Jan 24 '24 10:01 devout-coder

I tried to see if there is a quick and easy built in way og doing that, but I couldn't find any. I am not too interested in tackling this myself as I am not bothered by it. However, I would probably accept a PR :)

seblyng avatar Jan 24 '24 15:01 seblyng

okay, if that's the case I will try fixing this issue and making a PR.

devout-coder avatar Jan 25 '24 03:01 devout-coder

Hello,

In case you are interested, I implemented something like that. To my surprise, it was tricky (and I'm not fully sure I got it right).

I'm not sure it would make sense to integrate this here, but I figure I would share cause I care ;-)

Yinameah avatar Jan 27 '25 07:01 Yinameah

Interesting🤔 I also thought it would be a bit easier than this, but I also haven't given it any thought on how to potentially do it, so maybe it just is that complex.

I think I will just refer to you fork in the README (if that's okay with you of course) in case there are someone that wants additional more complex features😅

seblyng avatar Jan 27 '25 16:01 seblyng

Well. I might have gone a bit over the top, but if you want to only add the least possible paths elements to make tab names non ambiguous, and since you cannot do any assumption on the order... At least I could not come up with something significantly simpler.

I think I will try to avoid spending much more time on this tabline but sure, you can mention my fork in the readme, with pleasure.

Yinameah avatar Jan 27 '25 19:01 Yinameah

I think I'll close this issue then😅 I added some wording pointing to your fork in the README, and trying to explain a bit about why I am not looking to add these features. Let me know if you want me to change something about the wording😄

seblyng avatar Jan 29 '25 18:01 seblyng