Skip to content

Terminal Binding Context Menu #73

@couimet

Description

@couimet

Goal

Add "Bind RangeLink Here" command to terminal tab context menu with visual indicator for bound terminal.

Background

Currently, terminal binding is done via command palette:

  • RangeLink: Bind to Terminal
  • RangeLink: Unbind

For better discoverability, add context menu integration directly on terminal tabs.

Implementation

Add context menu contribution in package.json:

"menus": {
  "terminal/context": [
    {
      "command": "rangelink.bindToTerminal",
      "when": "terminalFocus",
      "group": "rangelink"
    }
  ]
}

Visual indicator:

  • Show checkmark (✓) next to "Bind RangeLink Here" if this terminal is currently bound
  • Use VSCode's when clause to conditionally show checkmark

Done When

  • Context menu entry added to terminal tabs
  • Command works from context menu
  • Checkmark indicator shows for bound terminal
  • Tests verify context menu integration
  • README mentions context menu option

Estimated Time

1 hour

Priority

Nice-to-have - Improves discoverability for new users

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:lowLow priority / nice to havescope:docsDocumentation files (README, ROADMAP, etc.)scope:vscode-extrangelink-vscode-extension packagetype:enhancementNew feature or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions