Skip to content

feat: add context menu to access to Github Copilot features easily #244

@pierresh

Description

@pierresh

I have been using Github Copilot in Sublime Text for a long time, and I just found out today it has new capabilities following this pull request.

As mentioned this discussion, I also think it is a bit difficult currently to find Github Copilot features in Sublime Text. However, integration with AI tools is becoming critical for using this or this IDE (cf this discussion in Sublime Text forum).

Thus, I suggest adding a context menu when right-clicking to see such features explicitly. Example:

Image

I tried to do this, but the entry for simple chat is the only one that works..

~/Library/Application Support/Sublime Text/Packages/User/Context.sublime-menu

[
    {
        "caption": "Copilot",
        "children": [
            {
                "caption": "Explain",
                "command": "copilot_conversation_chat",
                "args": {
                    "message": "/explain {{ sel[0] }}"
                }
            },
            {
                "caption": "Fix",
                "command": "copilot_conversation_chat",
                "args": {
                    "message": "/fix {{ sel[0] }}"
                }
            },
            {
                "caption": "Simplify",
                "command": "copilot_conversation_chat",
                "args": {
                    "message": "/simplify {{ sel[0] }}"
                }
            },
            {
                "caption": "Doc",
                "command": "copilot_conversation_chat",
                "args": {
                    "message": "/doc {{ sel[0] }}"
                }
            },
            {
                "caption": "Tests",
                "command": "copilot_conversation_chat",
                "args": {
                    "message": "/tests {{ sel[0] }}"
                }
            },
            {
                "caption": "-"
            },
            {
                "caption": "Chat",
                "command": "copilot_conversation_chat"
            }
        ]
    }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions