feat: picking the key shares, with no second popup
CI / Checks (pull_request) Successful in 40s
PR title / Conventional title (pull_request) Successful in 2s

The picker already shows what's shared. The confirmation stays for a
key from share.key, which wasn't picked. The share format's version
is documented as kept readable.

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:36:06 +02:00
1 parent 8cd0003f8c
commit 5c97a8e249
3 files changed
+31 -7

No files matched your search

+3 -3
View File
@@ -137,13 +137,13 @@ func (m *Model) confirmShare(s sharing) {
})
}
// pickShareKey asks which secret to encrypt with, in Go to.
// pickShareKey asks which secret to encrypt with, in Go to, then shares
// with it.
func (m *Model) pickShareKey(s sharing) tea.Cmd {
cmd := m.openGoTo(tabSearch, true)
m.search.pick = func(m *Model, key ref.Ref) tea.Cmd {
s.key = key
m.confirmShare(s)
return nil
return m.seal(s) // the picker showed what's shared
}
m.search.pickTitle = shareTitle(s)
m.search.pickLines = append(m.sharedFiles(s), "",