Skip to content

Add "Current Editor Context" to @ context menu #4141

@fabb

Description

@fabb

What problem does this proposed feature solve?

Easily reference the currently selected code (or cursor position in case nothing is selected) in prompts.

Describe the proposed solution in detail

To the @ context selection menu, add a new option Current Editor Selection that adds this to the context of the prompt. In case nothing is selected in the editor, it will only insert the cursor position.

Technical considerations or implementation details (optional)

No response

Describe alternatives considered (if any)

Copilot does this automatically, and it can be disabled by clicking the according button above the prompt input field. This would also be nice, but it's also fine having to be more explicit in roo code.

Image

Additional Context & Mockups

Image

Proposal Checklist

  • I have searched existing Issues and Discussions to ensure this proposal is not a duplicate.
  • This proposal is for a specific, actionable change intended for implementation (not a general idea).
  • I understand that this proposal requires review and approval before any development work begins.

Are you interested in implementing this feature if approved?

  • Yes, I would like to contribute to implementing this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Needs ScopingValid, but needs effort estimate or design input before work can start.enhancementNew feature or requestfeature requestFeature request, not a bug

    Type

    No type

    Projects

    Status

    Issue [Needs Scoping]

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions