#76 Better way to display buffers with the same names

Gesloten
10 maanden geleden werd geopend door nuclearkev · 0 opmerkingen

Currently, ait will just place the directory name in the buffer name such as dir/foo.txt. This doesn't work if you have many files opened in similarly named directories. Take, for example, this project filesystem structure:

api/
|-> Api/ -> client.txt
|-> Database/ -> Api -> client.txt

If you opened both client.txts you wouldn't have a way to figure out which is which as they would both get named Api/client.txt. GNU Emacs usually adds a number to the buffer name such as client.txt<1> which I'm not totally against but I find that it is still difficult to know which is which.

Potential Solutions:

  1. GNU Emacs way (client.txt<1>, client.txt<2>) (still kind of confusing)
  2. added .. until there is something unique (Api/client.txt and Database/../client.txt) (could get long but not as long as #3)
  3. Full path relative to ${pwd} (Api/client.txt, Database/Api/client.txt) (could get really long)
  4. ???
Currently, `ait` will just place the directory name in the buffer name such as `dir/foo.txt`. This doesn't work if you have many files opened in similarly named directories. Take, for example, this project filesystem structure: ``` api/ |-> Api/ -> client.txt |-> Database/ -> Api -> client.txt ``` If you opened both `client.txt`s you wouldn't have a way to figure out which is which as they would both get named `Api/client.txt`. GNU Emacs usually adds a number to the buffer name such as `client.txt<1>` which I'm not totally against but I find that it is still difficult to know which is which. Potential Solutions: 1. GNU Emacs way (`client.txt<1>`, `client.txt<2>`) (still kind of confusing) 2. added `..` until there is something unique (`Api/client.txt` and `Database/../client.txt`) (could get long but not as long as `#3`) 3. Full path relative to `${pwd}` (`Api/client.txt`, `Database/Api/client.txt`) (could get really long) 4. ???
Kevin "The Nuclear" Bloom verwees naar dit probleem vanuit een commit 10 maanden geleden'
Sign in to join this conversation.
Laden...
Annuleren
Opslaan
Er is nog geen inhoud.