feat: save the place on the periodic tick too
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
d6c4b33d1d
commit
9787f78dd8
2 files changed
+16
-9
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user