···235235236236 for _, entry := range entries {
237237 if !entry.IsDir() && strings.HasSuffix(entry.Name(), ".snap.new") {
238238+ // Remove .snap.new extension to get the title
238239 name := strings.TrimSuffix(entry.Name(), ".snap.new")
239240 fullPath := filepath.Join(dir, entry.Name())
240241 newSnapshots = append(newSnapshots, SnapshotInfo{