Jump to specific files and lines based on a response

From time to time, I ask Cody to explain or find a snippet in a project, and it does a good job at it, the reply often including the file and the relevant section of the code, but that’s it. I need to then do a global search in the code to find the exact line from where that code comes from.

Since models seems to be reluctant to provide line numbers, I’m wondering if this kind of responses can be improved, for example, adding a new action button below the snippet, like [Copy] [Apply] [Locate].

[Locate] can be something more complex, like interrogating the model for specific line numbers, or just doing a global search.