-
Notifications
You must be signed in to change notification settings - Fork 246
Feature: Add ability to jump to search result #748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
spotify_player/src/config/keymap.rs
Outdated
@@ -107,6 +107,10 @@ impl Default for KeymapConfig { | |||
key_sequence: "Z".into(), | |||
command: Command::AddSelectedItemToQueue, | |||
}, | |||
Keymap { | |||
key_sequence: "C-j".into(), |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
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.