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 {
140140 if d.Fingerprint == c.Source {
141141 lead, used = cYou(), "this session"
142142 }
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)))
144144 }
145145 return listScreen("SSH keys", rows,
146146 action{"Keys", []string{"keys", "label", "<fingerprint>", "<text>"}},
internal/control/sig.go +1 −1
@@ -115,7 +115,7 @@ func runPGPList(c *Ctx, args []string) int {
115115 case d.ExpiresAt != nil:
116116 note = "expires " + d.ExpiresAt.Format("2006-01-02")
117117 }
118 rows[i] = rowOf(cRef(d.Fingerprint), lead, cFlex(emails), cMeta(note))
118 rows[i] = rowOf(cFlexRef(d.Fingerprint), lead, cText(emails), cMeta(note))
119119 }
120120 return listScreen("OpenPGP keys", rows,
121121 action{"Keys", []string{"pgp", "remove", "<fingerprint>"}},