Repository: aome510/spotify-player (language: rust)

Issue:
Being able to queue songs in the search pop-up window
Currently the 'Z' key would be entered in the search window as a character rather than being used to queue a song.



Discussion / hints:
You can add another keymap for adding item to queue command as in https://github.com/aome510/spotify-player/blob/master/docs/config.md#keymaps that doesn't use single character, e.g `C-{char}` (ctrl), `M-{char}` (alt) etc

Fix patch:
diff --git a/README.md b/README.md
index 8579a7f6..cf82ad45 100644
--- a/README.md
+++ b/README.md
@@ -363,7 +363,7 @@ List of supported commands:
 | `RestartIntegratedClient`      | restart the integrated librespot client (`streaming` feature only)      | `R`                |
 | `ShowActionsOnSelectedItem`    | open a popup showing actions on a selected item                         | `g a`, `C-space`   |
 | `ShowActionsOnCurrentTrack`    | open a popup showing actions on the current track                       | `a`                |
-| `AddSelectedItemToQueue`       | add the selected item to queue                                          | `Z`                |
+| `AddSelectedItemToQueue`       | add the selected item to queue                                          | `Z`, `C-z`         |
 | `FocusNextWindow`              | focus the next focusable window (if any)                                | `tab`              |
 | `FocusPreviousWindow`          | focus the previous focusable window (if any)                            | `backtab`          |
 | `SwitchTheme`                  | open a popup for switching theme                                        | `T`                |
diff --git a/spotify_player/src/config/keymap.rs b/spotify_player/src/config/keymap.rs
index 92cd076c..39924301 100644
--- a/spotify_player/src/config/keymap.rs
+++ b/spotify_player/src/config/keymap.rs
@@ -83,6 +83,10 @@ impl Default for KeymapConfig {
                     key_sequence: "z".into(),
                     command: Command::Queue,
                 },
+                Keymap {
+                    key_sequence: "C-z".into(),
+                    command: Command::AddSelectedItemToQueue,
+                },
                 Keymap {
                     key_sequence: "Z".into(),
                     command: Command::AddSelectedItemToQueue,


Test patch: