73ccd13e63a859e21a07cab0a76b0da46895dab5
- Author
- Toby Padilla <toby@charm.sh>
- Committer
- Toby Padilla <toby@charm.sh>
- Date
Message
Show "git clone" command in header, unless we're on config
Diff
1diff --git a/tui/bubbles/repo/bubble.go b/tui/bubbles/repo/bubble.go
2index 609fd2dace458b3b2584030d9c57ae4b985f10eb..fb7d6c0415ec3c6879e9d694b78328ac21f68923 100644
3--- a/tui/bubbles/repo/bubble.go
4+++ b/tui/bubbles/repo/bubble.go
5@@ -102,12 +102,15 @@ func (b Bubble) headerView() string {
6 ts = ts.Copy().BorderForeground(b.styles.ActiveBorderColor)
7 ns = ns.Copy().BorderForeground(b.styles.ActiveBorderColor)
8 }
9+ var gc string
10 n := b.name
11 if n == "config" {
12 n = "Home"
13+ } else {
14+ gc = fmt.Sprintf("git clone %s", b.sshAddress())
15 }
16 title := ts.Render(n)
17- note := ns.Width(b.width - b.widthMargin - lipgloss.Width(title)).Render(b.sshAddress())
18+ note := ns.Width(b.width - b.widthMargin - lipgloss.Width(title)).Render(gc)
19 return lipgloss.JoinHorizontal(lipgloss.Top, title, note)
20 }
21