Keyboard-bindable command for inserting editor selection with @-mention
What variant of Codex are you using?
IDE Extension
What feature would you like to see?
A Command, that I can bind to a keyboard shortcut, that inserts an @-mention instead of baking the context into the top of the chat pod like the existing chatgpt.addToThread command does.
Additional information
Currently, the chatgpt.addToThread command adds context like this:
<img width="476" height="202" alt="Image" src="https://github.com/user-attachments/assets/1459d8cc-fa00-4f5d-b2d5-cd9c580074fb" />
I would like to have it be inline with my text () so I can reference it. It's a much nicer UX and more flexible. It's what Cursor and Claude Code do.
Of course, you can simply just start typing @ and select a file.
<img width="473" height="262" alt="Image" src="https://github.com/user-attachments/assets/c5c4aad9-668b-418a-a6af-a32575914378" />
But there are shortcomings with that:
- You can't specify a line number or range
- You can't have it originate from a text-selection in the editor
- There's no keyboard shortcut for it!
FWIW, Claude Code's VSCode extension has a claude-vscode.insertAtMention which is exactly what I'd like.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗