Skip to content

Open the selected file or directory on GitHub from the file tree #326

Description

@jongio

The file tree can open files in an editor (o) and copy paths (y) but can't open an item on GitHub. Add an O keybinding that opens the selected file (blob) or directory (tree) at github.com, pinned to the current HEAD.

Acceptance criteria:

  • O on a file opens its github.com blob URL; on a directory opens the tree URL, both at the current HEAD.
  • Uses the origin remote; clear toast when there's no github remote.
  • Keybinding registered in the panel, the keybindings manifest, and the help overlay.
  • Unit tests cover blob vs tree URL building and the no-remote case.

Metadata

Metadata

Assignees

Labels

ideaFeature idea from the idea pipeline

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions