Post

Does anyone know: When using Ctrl+P to navigate to a file in @vscode.dev, how do you determine which file is which without using the mouse? Difference between these files is that these are in two different directories. If I mouse over them, I can see the directory. But I don't want to use my mouse.

1 repost3 likes

That's the thing, it does show the directory beside it, the directories in this case is along the lines of `src/<project>/playwright/<test-area>`, but the `<test-area>` is too far to the right to see it without mousing over it 🙁.

I should expand: `<project>` is the same for both of the files, so the only unique part of the path is `<test-area>`. @randomnoun7.bsky.social has suggested putting that in, and it does work when I remember it.

Well Crafted Error Message Enjoyer@randomnoun7.bsky.social

One thing you could try: the path name is part of the fuzzy name matching. So if you type the fragment of the path name that is unique to the file you want + space + the file name you want, I think it should filter your choice list down the file you want.

I have to do this a lot in my projects. We have versioned APIs that have files with the same name in multiple different paths. If I forget to qualify my name search with the API version number that’s a part of the path I’ll open the wrong one and be confused for a minute. 😂