Easier selection of context

Thanks for the handy app (Cody)

Question -
With github co-pilot, one can simply highlight the code they want to use for context and it automatically adds that as context for the chat without my having to manually add it by typing @filename
Is it possible to do this with Cody? I realize one can manually type @+ the filename

but it would be quite handy if it would automatically add selected (highlighted) code as context, like github copilot in VS code does.

Thanks !
Shawn

Hey @techmonpiano

For selected code you can press ALT + L to attach it to the current chat and it automatically adds it.
In a new chat, if you have opened an editor tab and switch to another one, the context in the chat will automatically change to the active on as long as you didn’t type any prompt into the chat message box.

I hope that helps

Hey @techmonpiano

Me again, we are currently implementing the feature you are asking for to automatically attach the selection to the chat:
Show current selection mention in initial context by thenamankumar · Pull Request #7603 · sourcegraph/cody