Commit ffb6f3090c

ffb6f3090ce8f8a90f4a0129b4def57580f15f5c

parent: 4f83f80602

Verified · cmc ci/build: success ci/test: success

cmc <hello@cleberg.net> · 2026-10-02 04:43 UTC

control: key fingerprints fit narrow terminals in keys and pgp lists

Ref #319

Layout: unified · split

internal/control/identity.go +1 −1
@@ -140,7 +140,7 @@ func runKeysList(c *Ctx, args []string) int {
140 if d.Fingerprint == c.Source { 140 if d.Fingerprint == c.Source {
141 lead, used = cYou(), "this session" 141 lead, used = cYou(), "this session"
142 } 142 }
143 rows[i] = rowOf(cRef(d.Fingerprint), lead, cState(d.Scope), cText(d.Label), cMeta(d.Algo, used, c.expiresText(d.ExpiresAt, now))) 143 rows[i] = rowOf(cFlexRef(d.Fingerprint), lead, cState(d.Scope), cText(d.Label), cMeta(d.Algo, used, c.expiresText(d.ExpiresAt, now)))
144 } 144 }
145 return listScreen("SSH keys", rows, 145 return listScreen("SSH keys", rows,
146 action{"Keys", []string{"keys", "label", "<fingerprint>", "<text>"}}, 146 action{"Keys", []string{"keys", "label", "<fingerprint>", "<text>"}},
internal/control/sig.go +1 −1
@@ -115,7 +115,7 @@ func runPGPList(c *Ctx, args []string) int {
115 case d.ExpiresAt != nil: 115 case d.ExpiresAt != nil:
116 note = "expires " + d.ExpiresAt.Format("2006-01-02") 116 note = "expires " + d.ExpiresAt.Format("2006-01-02")
117 } 117 }
118 rows[i] = rowOf(cRef(d.Fingerprint), lead, cFlex(emails), cMeta(note)) 118 rows[i] = rowOf(cFlexRef(d.Fingerprint), lead, cText(emails), cMeta(note))
119 } 119 }
120 return listScreen("OpenPGP keys", rows, 120 return listScreen("OpenPGP keys", rows,
121 action{"Keys", []string{"pgp", "remove", "<fingerprint>"}}, 121 action{"Keys", []string{"pgp", "remove", "<fingerprint>"}},