github / github/copilot-cli

/diff viewer shows only leaf filename in tab bar — ambiguous for lib.rs, mod.rs, etc.

Ouverte
#2,910 0 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
area:terminal-rendering
Langage dominant
Shell
Étoiles
11.2k
Forks
1.9k
Merge moyen
14 h 16 min
PR mergées (30 j)
6

Description

### Describe the feature or problem you'd like to solve

The `/diff` viewer's file navigator tab bar shows only the leaf filename (`lib.rs`, `mod.rs`) instead of the full or distinguishing path. In Rust projects (and other ecosystems with convention-based filenames), dozens of files share the same leaf name, making it impossible to tell which file is which.

### Proposed solution

Show the full relative path — or at minimum a disambiguated path suffix — in the `/diff` file navigator tab bar.

Currently the tab label is the *only* file identifier, with no tooltip or secondary path display. If two changed files share a basename (e.g., `crates/driver/src/lib.rs` and `crates/runtime/src/lib.rs`), both tabs show `lib.rs` with no way to distinguish them.

**Suggested approach:** Show the full relative path in the tab label, or use VS Code-style automatic path disambiguation — when two tabs share a filename, append enough parent directory segments to distinguish them (e.g., `driver/src/lib.rs` vs `runtime/src/lib.rs`).

### Example prompts or workflows

1. Open a Rust workspace with multiple crates, make changes in two different `lib.rs` files, run `/diff` — both tabs show `lib.rs`, no way to know which is which.
2. Same problem with `mod.rs`, `main.rs`, `build.rs` across crates in a workspace.

### Additional context

This is especially painful in Rust where `lib.rs`, `mod.rs`, `main.rs`, and `build.rs` are convention-based names repeated across every crate in a workspace. Go (`main.go`), Python (`__init__.py`), and Java (`Application.java`) have similar patterns.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par la barre d’onglets du navigateur de fichiers de /diff et reproduisez le problème avec des fichiers modifiés qui partagent le même nom de base, comme crates/driver/src/lib.rs et crates/runtime/src/lib.rs. Déterminez le point d’entrée existant des libellés d’onglet et faites en sorte que les libellés distinguent ces fichiers en affichant leurs chemins relatifs complets ou suffisamment précis ; le travail est terminé lorsque les noms de base en double ne sont pas ambigus.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
shell
Domaine
cli
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
58/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.