feat: the key picker says what sharing does, and skips plain env values
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
5 files changed
+35
-11
No files matched your search
@@ -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())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user