Skip to content

Commit d76746f

Browse files
committed
legit-browse-remote
for lem-project/lem#2083
1 parent a7e4c53 commit d76746f

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

content/en/usage/usage.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,27 @@ The available commands are:
558558

559559
Tooling Used: Claude Code (Claude Opus 4.5) for this feature.
560560

561+
### legit-browse-remote: open current file/line on GitHub
562+
563+
Use `Alt-x legit-browse-remote` to open the current file at the current line in GitHub.
564+
565+
When the region is active, it selects a range of lines (e.g., `#L10-L20`).
566+
567+
Example supported URL formats:
568+
569+
| Input | Parsed |
570+
|-------|--------|
571+
| `git@github.com:owner/repo.git` | owner/repo |
572+
| `git@github.com:owner/repo` | owner/repo |
573+
| `https://github.com/owner/repo.git` | owner/repo |
574+
| `https://github.com/owner/repo` | owner/repo |
575+
576+
You can configure these settings:
577+
578+
- `lem/legit/browse:*default-remote*`: a variable to change the default git remote name (default: `"origin"`)
579+
580+
This feature currently only works to open projects on GitHub. We will expand it, pull
581+
requests are also possible.
561582

562583
## Misc
563584

0 commit comments

Comments
 (0)