Commit a931d3f
feat: Add repository URI to statusline after branch name (#1977)
Adds the git repository URI to the statusline display, positioned
directly after the branch name indicator.
Changes:
- Extract repository URL using 'git remote get-url origin'
- Format URI by removing protocol prefix (https://, git@) and .git suffix
- Display shortened URI in brackets with cyan color: [github.com/user/repo]
- Gracefully handle repos without remotes (no display if no remote)
- Works correctly in both main repository and worktrees
Testing:
- Tested with HTTPS URLs: displays correctly
- Tested with SSH URLs: formats properly ([email protected]:user/repo → github.com/user/repo)
- Tested in worktree directory: works as expected
- Tested in main repository: displays correctly
- No regressions in existing indicators
Documentation:
- Updated STATUSLINE.md indicators table with new Repository URI entry
- Updated examples to show new URI display format
- Added breakdown explanations for repository indicator
Fixes #1976
Co-authored-by: Ubuntu <azureuser@amplihack-dev20260113b.ifi1khzsiemuxl451rqpm2jdhd.ex.internal.cloudapp.net>
Co-authored-by: Claude Sonnet 4.5 <[email protected]>1 parent 4ad4877 commit a931d3f
2 files changed
+15
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
104 | 113 | | |
105 | 114 | | |
106 | 115 | | |
| |||
257 | 266 | | |
258 | 267 | | |
259 | 268 | | |
260 | | - | |
| 269 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | | - | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
0 commit comments