You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(queue): add setting to disable queue auto-population and auto-advance (#108) (#185)
* feat(queue): add setting to disable queue auto-population and auto-advance (#108)
Adds an `autoQueue` setting (default on, preserving current behavior). When
turned off:
- switching episodes no longer enqueues the episode you were listening to, and
- playback no longer auto-advances to the next queued episode at episode end.
The queue stays usable as a manual playlist (context-menu add/remove/reorder are
unaffected). When the queue is off and empty, its grid tile and player list are
hidden so the disabled queue does not linger in the UI. The gate lives at the
queue operations (addEpisodeToQueue, playNext) and reads the setting live, so
toggling takes effect without a reload and no caller can bypass it.
Closes#108
* refactor(settings): re-emit plugin store on settings import (#108)
applyImportedSettings re-hydrates the individual stores but did not re-emit the
`plugin` store, unlike the autoQueue toggle. Importing settings that change
`autoQueue` already refreshes the Queue tile/list today because the
unconditional `queue.set` triggers the same reactive statements, but that is
incidental. Re-emit `plugin` after import so the autoQueue-gated UI stays correct
independent of the queue emission (addresses Devin review note on #185). No
observable behavior change.
Copy file name to clipboardExpand all lines: docs/docs/podcasts.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,16 @@ The new order is saved automatically and restored the next time you open Obsidia
54
54
55
55
Episodes in the queue are kept unique by title, so adding an episode that is already queued will not create a duplicate.
56
56
57
+
## Turning off the queue
58
+
By default the queue fills itself: when you switch to a new episode, the one you were listening to is kept at the top of the queue, and playback continues with the next queued episode when the current one ends.
59
+
60
+
If you would rather manage the queue yourself, turn off **Keep a queue of episodes you switch away from** in PodNotes settings. With it off:
61
+
62
+
- episodes are no longer added to the queue automatically when you switch, and
63
+
- playback no longer advances to the next queued episode on its own.
64
+
65
+
You can still add, remove, and reorder episodes in the queue manually from the episode context menu. While the queue is empty in this mode, its tile in the podcast grid and its list in the player are hidden.
66
+
57
67
## Player
58
68
The player will automatically load and play the current episode.
.setName("Keep a queue of episodes you switch away from")
112
+
.setDesc(
113
+
"When on, the episode you switch away from is kept at the top of the queue and playback automatically continues with the next queued episode when one ends. Turn this off to stop the queue from filling and advancing on its own — you can still add episodes to the queue manually.",
114
+
)
115
+
.addToggle((toggle)=>
116
+
toggle
117
+
.setValue(this.plugin.settings.autoQueue)
118
+
.onChange(async(value)=>{
119
+
this.plugin.settings.autoQueue=value;
120
+
awaitthis.plugin.saveSettings();
121
+
// Re-emit the plugin store so an open player/grid recomputes
122
+
// the Queue tile/list visibility immediately (issue #108).
0 commit comments