From 0c5693c426d47254b814e11704ca348e94c3880f Mon Sep 17 00:00:00 2001 From: Thomas Frans Date: Fri, 3 Mar 2023 13:17:32 +0100 Subject: [PATCH] Disable autojump for add to playlist dialog. Autojump seems to take precedence over regular keys, which isn't the wanted behavior, especially when there are playlists in the list that contain some of the most common Vim keybindings. For example when there is a playlist called 'jazz', pressing `j` will jump to that playlist instead of going down. This commit disables autojump for now. If search inside the add to playlist dialog would be a wanted feature, it could be implemented using the default Vim search button `/` which would work the same way as searching in other lists works right now. --- src/ui/contextmenu.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ui/contextmenu.rs b/src/ui/contextmenu.rs index 86268e0..8ea19df 100644 --- a/src/ui/contextmenu.rs +++ b/src/ui/contextmenu.rs @@ -67,7 +67,6 @@ impl ContextMenu { } } - list_select.set_autojump(true); list_select.set_on_submit(move |s, selected| { let track = track.clone(); let mut playlist = selected.clone();