feat: save the place on the periodic tick too
CI / Checks (pull_request) Successful in 22s
PR title / Conventional title (pull_request) Successful in 2s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kebandClaude Opus 5.5 committed 2026-10-11 09:33:29 +02:00
1 parent d6c4b33d1d
commit 9787f78dd8
2 files changed
+16 -9

No files matched your search

+2 -1
View File
@@ -168,6 +168,7 @@ type Model struct {
cacheDirty bool
sourcesAt map[string]time.Time
placeDir string
savedPlace string // the link last saved as the place
now func() time.Time
// A pending clear of a copied value, counted down in the footer.
@@ -456,7 +457,7 @@ func (m *Model) setVersions(items []provider.Object) {
func (m Model) Init() tea.Cmd {
cmds := []tea.Cmd{m.sourcesCmd(), m.spin.Tick, m.checkClipboard()}
if m.cachePath != "" {
if m.cachePath != "" || m.placeDir != "" {
cmds = append(cmds, tea.Tick(persistEvery, func(time.Time) tea.Msg { return persistTickMsg{} }))
}
if m.fetchOnStart {