feat: the key picker says what sharing does, and skips plain env values
CI / Checks (pull_request) Successful in 37s
PR title / Conventional title (pull_request) Successful in 1s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kebandClaude Opus 5.5 committed 2026-10-13 12:13:16 +02:00
1 parent 68fc76d938
commit b46991c7c2
5 files changed
+35 -11

No files matched your search

+9 -1
View File
@@ -131,7 +131,15 @@ func (m *Model) pickShareKey(s sharing) tea.Cmd {
return nil
}
m.search.pickTitle = "Encrypt with which secret?"
m.search.pickNote = "Whoever can read it can open the link. share.key sets a default."
what := s.files[0].Path
if len(s.files) > 1 {
what = plural(len(s.files), "env file")
}
m.search.pickLines = []string{
"Sharing " + what + " from " + s.repo.Name + " as an encrypted link.",
"Pick the secret to encrypt with: whoever can read it can open the link.",
m.st.Muted.Render("Its value isn't shown or put in the link. share.key sets a default."),
}
m.fillSearch(false)
return tea.Batch(cmd, m.searchLoads())
}