Skip to content

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

Merged
merged 6 commits into from
Jul 26, 2025

Conversation

JohnMitchell04
Copy link
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.

@@ -107,6 +107,10 @@ impl Default for KeymapConfig {
key_sequence: "Z".into(),
command: Command::AddSelectedItemToQueue,
},
Keymap {
key_sequence: "C-j".into(),
Copy link
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
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
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
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.

JohnMitchell04 and others added 3 commits June 23, 2025 22:00
Co-authored-by: Thang Pham <phamducthang1234@gmail.com>
@aome510 aome510 merged commit 192ca86 into aome510:master Jul 26, 2025
5 checks passed
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