Chat window file path references too short for complex codebases

Feature request for product/service

Cursor IDE

Describe the request

  • When one types @someFileName in the AI chat it works OK.

  • When one types @someFileNameThatIsVeryLong and a file @someFileNameThatIsVeryLongButAnotherFile it’s hard to distinguish between files cause the names are truncated at the start. Maybe a better solution would be start...end truncation with the middle hidden (or a better tooltip to show full filenames)

  • God help you if you’re refactoring a directory longDirectoryName/longFileName and longDirectoryNameCopy/longFileNameCopy exists because then both the directories and filenames can’t be distinguished - are you selecting original, or refactored one?

To sum up, if similarly named directories / and / or filenames exist, it’s very hard to distinguish between them because their full paths / names get cropped.

It is only possible after you add the file and hover on it in the chat window. It’s OK but bugs me out every time.

Screenshot / Screen Recording

Operating System (if it applies)

MacOS