#76 Better way to display buffers with the same names

Fechado
10 meses atrás foi aberto por nuclearkev · 0 comentários

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 citou este problema em um commit 10 meses atrás
Faça login para participar desta conversação.
Carregando...
Cancelar
Salvar
Ainda não há conteúdo.