Skip to content

[FEATURE] Make issue numbers in just gh-issues table clickable links #104

@gerchowl

Description

@gerchowl

Description

Enhance the # column in the just gh-issues overview table so that issue numbers are clickable links. Ideally, clicking an issue number should open it directly in VS Code / Cursor (using a vscode:// URI), with a fallback to the GitHub web URL for terminals that don't support custom URI schemes.

Problem Statement

Currently the # column in the issue and PR tables rendered by scripts/gh_issues.py displays plain text numbers (e.g. 42). Users who want to view an issue must manually copy the number and run gh issue view or navigate to GitHub. Adding clickable hyperlinks would eliminate this friction.

Proposed Solution

Use Rich's built-in hyperlink support ([link=URL]text[/link]) to make the # column entries clickable in terminals that support OSC 8 hyperlinks (iTerm2, Windows Terminal, most modern terminal emulators, and Cursor's integrated terminal).

Two link targets to evaluate (in order of preference):

  1. Cursor/VS Code URIvscode://file/... or a cursor:// URI that opens the issue in the editor's GitHub integration (if a reliable scheme exists)
  2. GitHub web URLhttps://github.com/{owner}/{repo}/issues/{number} as a reliable fallback that works universally

The owner_repo string is already fetched in main() and can be threaded to _build_table / _build_pr_table.

Alternatives Considered

  • Keep plain numbers, add a separate "open issue" just recipe — more keystrokes, doesn't leverage terminal hyperlink capabilities
  • Use gh issue view --web shortcut hint — informational but not interactive

Additional Context

Impact

  • Quality-of-life improvement for all developers using just gh-issues
  • Backward-compatible — terminals without OSC 8 support simply render plain text
  • Minor change (~5-10 lines in _build_table and _build_pr_table)

Changelog Category

Changed

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions