feat(picker): when resuming a source that has nothing to resume, start a picker with the source instead

This commit is contained in:
Folke Lemaitre 2025-10-22 13:31:46 +02:00
parent b39a1898db
commit db3c13c28e
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -69,6 +69,9 @@ function M.resume(opts)
local last = states[1]
if not last then
if opts.source then
return Snacks.picker.pick(opts.source)
end
Snacks.notify.error("No picker to resume")
Snacks.picker.pickers()
return