Author Topic: Multiple buffers with the same filename (2)  (Read 2403 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Multiple buffers with the same filename (2)
« on: May 21, 2022, 07:00:48 PM »
When there are multiple windows with the same file they get an identifier added in the tab, like: MyFile.x:1, MyFile.x:2

I'd like to see this with multiple buffers that have the same filename.
For example:
C:\src\repo1\subdir\MyCode.c (a)
C:\src\repo2\subdir\MyCode.c (b)

To me this is more important to distinguish than multiple windows with the same file.
Also, it is far more common (for me at least) -- I often have multiple copies of a repo and open the same file from two repos for comparison / reference.

Hmmm... the two features interacting:
C:\src\repo1\subdir\MyCode.c:1 (a)
C:\src\repo2\subdir\MyCode.c:1 (b)
C:\src\repo1\subdir\MyCode.c:2 (a)
C:\src\repo2\subdir\MyCode.c:2 (b)


rygaard

  • Community Member
  • Posts: 63
  • Hero Points: 1
Re: Multiple buffers with the same filename (2)
« Reply #1 on: September 03, 2022, 07:08:59 PM »
Go to Tools->Options->Editing->Editor Window->Abbreviate file tab captions.  Turn it off.

Does that scratch your itch?

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Multiple buffers with the same filename (2)
« Reply #2 on: October 03, 2022, 11:29:10 PM »
No ... all the files have exactly the same name, just a different path.

Dennis

  • Senior Community Member
  • Posts: 3992
  • Hero Points: 520
Re: Multiple buffers with the same filename (2)
« Reply #3 on: October 12, 2022, 01:31:47 PM »
To keep it compact, how would you like this instead of the full paths?

...repo1...\MyCode.c
...repo2...\MyCode.c

That is, just collapses the common path elements in the beginning and end to ...
If they have nothing in common, then you would see full paths, like this:

C:\Temp\MyCode.c
D:\Source\repo1\subdir\MyCode.c

If that sounds good, I'll file a FR.  I would rather have it put in the path information than synthesize the artificial (a), (b), etc.
« Last Edit: October 12, 2022, 05:44:41 PM by Dennis »

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Multiple buffers with the same filename (2)
« Reply #4 on: October 12, 2022, 04:01:28 PM »
That would be kind of awesome.
Sort of like running intraline Diff and highlighting the differences.