Make cody understand "current file", "selected code", etc

It’s not a big deal, but it would be very nice if Cody consistently understood “current file”, “the selected code” etc. This is hit an miss in my somewhat limited experience. I would naively think that adding a pre-prompt with “The ‘current file’ means this $content”, etc. would work reasonably well. (guess split editors pose some problems)

If not, maybe a special @ syntax?

1 Like

Hello @olejorgenb .

Did you know that selecting code will be included in the context of a chat session with the @-mention feature? The same applies to the open tab.

Does this imply that the @-mention feature is overly time-consuming?

I just @filename.js instead, or @workspace, or I highlight the code I’m talking about and it will add the line numbers.