TLDR;
cmd + i
(or a custom shortcut) should pin the active file as context
I want a keyboard shortcut that adds the file currently viewed in the editor window as pinned context in the chat window (without focusing the chat)
It is annoying to deal with the chat interface whenever you want to add context to a complex agent prompt that requires context from multiple files.
A typical workflow is:
- Identify a feature/refactor that agent mode will likely be able to implement
- Write the prompt describing what should be implemented
- Browse files in the editor that might be needed in the context
- Add relevant files to context through the chat interface
Possibly iterating the last three steps
It would be more natural to add the files as you browse them in the editor
I love the feature where highlighting lines and doing cmd + i
adds the selected range to the context.
I think doing cmd + i
when no lines are selected should pin the current file as context.