Skip to content

Feature: Add ability to jump to search result#748

Merged
aome510 merged 6 commits into
aome510:masterfrom
JohnMitchell04:master
Jul 26, 2025
Merged

Feature: Add ability to jump to search result#748
aome510 merged 6 commits into
aome510:masterfrom
JohnMitchell04:master

Conversation

@JohnMitchell04

Copy link
Copy Markdown
Contributor

Currently, there's no way to jump to a search result within a playlist without first playing the song and using JumpToCurrentTrackInContext. This PR adds the ability to jump directly to any search result in a playlist. After searching, highlight a result and press C-j to jump to its location in the playlist.

The default keybind is C-j, which overlaps with MovePlaylistItemDown. Whilst, the two don't conflict during search, I recognise this may not be desirable, so I can change the default if desired.

Comment thread spotify_player/src/command.rs Outdated
Comment thread spotify_player/src/event/window.rs Outdated
Comment thread spotify_player/src/config/keymap.rs Outdated
command: Command::AddSelectedItemToQueue,
},
Keymap {
key_sequence: "C-j".into(),

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this definitely needs a new keybinding to avoid conflict with other command. Maybe g C. If you want C-j, you can bind it accordingly on your own configs

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to check, do you mean C g, I thought g C would enter the g into the search popup?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh you're right. Maybe C-J

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C-J didn't seem to work, the combo wasn't even picked up by crossterm, so I have selected C-g as it doesn't conflict with anything.

@aome510 aome510 merged commit 192ca86 into aome510:master Jul 26, 2025
5 checks passed
tojamrok pushed a commit to tojamrok/spotify-player that referenced this pull request Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants