mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-26 08:05:57 +03:00
[GH-ISSUE #892] [Feature Request] Sorting within panes #384
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-tui#384
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jtrv on GitHub (Sep 20, 2021).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/892
Originally I wanted to make a feature request for sorting playlists in the playlist pane. However it dawned on me that a general sorting function applicable to any pane might be a more useful, if possible. Then down the line it could be extended with 'sort by album, length, etc'.
@Rigellute commented on GitHub (Oct 1, 2021):
This is somewhat tricky as this sorting ideally needs to happen on the server due to spotify's pagination of results. To my knowledge, sorting is not a feature exposed by their API. I'll leave this open in case it becomes possible in the future.
The alternative is for spotify-tui to fetch all the results and then sort in memory. This could be problematic on large playlists/result pages
@jtrv commented on GitHub (Oct 1, 2021):
That makes sense, would it be possible to at least fetch/cache/sort solely for the playlist names in the playlist pane on the left? I'm a serial playlist maker and I have a large amount of playlists. As it is currently, it's kind of a pain to find my playlists in the order they appear in. Also I've been itching to learn rust, if you believe this may be a beginner friendly task or have relevant resources you can provide I would be glad to take a stab at it.