feat: playlist folder navigation in the "Add Track To Playlist" picker#360
Merged
LargeModGames merged 1 commit intoJul 10, 2026
Merged
Conversation
Contributor
Author
LargeModGames
approved these changes
Jul 10, 2026
LargeModGames
added a commit
that referenced
this pull request
Jul 10, 2026
…avigation, and custom screens (#363) ## What's new A major expansion of the Lua plugin API (v4 shipped in #302), made this a while ago but forgot to merge it: - **Async data reads**: `get_playlists`, `get_queue`, `get_search_results`, `get_saved_tracks`/`albums`/`shows`, `get_recently_played`, `get_devices`, `get_lyrics`, all with the `(data, err)` callback convention. - **More actions**: `set_repeat`/`cycle_repeat`, `transfer_playback`, `play_uri`/`play_context`, `add_to_queue`, playlist create/edit, and save/follow actions. - **Timers**: `set_timeout`, `set_interval`, `cancel_timer`. - **Per-plugin storage**: JSON-backed `storage_get`/`set`/`remove`/`keys`. - **Navigation**: `navigate`, `back`, `current_route`, plus a `config()` read of the user config. - **New events**: `shuffle_change`, `repeat_change`, `device_change`, `search_results`, `route_change`. - **Custom screens**: `register_screen`/`set_screen`/`show_screen`/`close_screen` with paragraph/list/gauge widgets and per-key callbacks (new `RouteId::PluginScreen` / `ActiveBlock::PluginScreen`, `src/tui/ui/plugin_screen.rs`, example plugin `examples/plugins/queue-browser.lua`). Documented in `docs/scripting.md`. ## Notes - Rebased onto current main (post #360 and #361); the new Stats and RecapPrompt routes got plugin-facing names in the exhaustive `route_name` map. - `get_recently_played` gained a `navigate` flag so plugin data reads don't hijack the current screen; the handler path still navigates as before. ## Testing - `cargo fmt`, `cargo clippy -- -D warnings` (with and without `scripting`), and `cargo test --no-default-features --features telemetry,scripting` (572 tests) all pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
The
w"Add Track To Playlist" dialog now supports Spotify playlist folders like the sidebar Playlists panel: 📁 folder rows are shown scoped to the current folder level,Enterdescends into a folder, the←row goes back up, andEnteron a playlist adds the track as before. Only editable (owned or collaborative) playlists are offered, and the "Playlist Folders First" setting (behavior.group_folders_first) orders the dialog too.If folder data is unavailable (librespot rootlist fetch fails, or a build without native streaming), the dialog falls back to the previous flat list.
Closes #359.
Testing
cargo fmt --all— cleancargo clippy --no-default-features --features telemetry -- -D warnings— cleancargo test --no-default-features --features telemetry— 386 passed, including two new tests: folder navigation with non-editable playlists filtered out, and folders-first ordering in the pickercargo build(full streaming build) — compilesAdditional notes
local_playlists) and is untouched.←back row; pruning such folders is deliberately skipped for now.[Unreleased].