Microsoft/vscode

Better path presentation in quick open window

Open

#143.956 geöffnet am 25. Feb. 2022

Auf GitHub ansehen
 (21 Kommentare) (38 Reaktionen) (1 zugewiesene Person)TypeScript (10.221 Forks)batch import
feature-requestgood first issuequick-open

Repository-Metriken

Stars
 (74.848 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11h 43m) (1.000 gemergte PRs in 30 T)

Beschreibung

The way a file path is being presented in quick open window makes it sometimes hard to realise which file to pick. Let's consider two files:

  • some_project/some_longer_pathsome_longer_pathsome_longer_pathsome_longer_path/fruits/apples/Main.js
  • some_project/some_longer_pathsome_longer_pathsome_longer_pathsome_longer_path/fruits/bananas/Main.js

If we type "Main" in searchbox the list of results shows only begining of paths and the filenames and it looks ... excactly the same. At this point we have to randomly pick one of the files to check if it's the one we'd like especially since there's no preview editor triggered while navigating through result list (#8939).

image

The solution is to present the ending of a path rather than begining, just like it's done in Sublime Text (please notice where ellipsis is added):

image

Additionally path could be presented in a separate line for more clarity.

Contributor Guide