mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 17:35:50 +03:00
[GH-ISSUE #129] Option to remove keybinding from keymap.toml #994
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#994
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @klotzambein on GitHub (Feb 12, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/129
Problem Statement
My muscle memory often serves me wrong, and I press 'q' to exit a sub-menu. This is not a huge problem as I can just restart the application, but it is a bit frustrating. Just now I decided to look into the configuration, but it seams that it is not possible to remove/reassign a keybinding. They can only be added.
Possible Solutions
keymap.tomlto remove a keybinding. This is probably the most backwards compatible solution, but it would require that thekeymap.tomlis parsed differently.Additional Context
I would be willing to create a PR once this is approved. Overall, I am incredibly happy about having found this spotify player. It fills an old gap in my terminal application ensemble.
@aome510 commented on GitHub (Feb 12, 2023):
Hi @klotzambein, great to hear that you like this project!
Actually, I've already implemented the second approach. Prior to the codes that you linked, I did this
github.com/aome510/spotify-player@52b1349d47/spotify_player/src/config/keymap.rs (L259)So, if you add these lines to
keymap.toml"q" should be bind to close popup command. Lmk if you have other questions.
@klotzambein commented on GitHub (Feb 12, 2023):
Perfect, I missed the swap when looking at the code. Works like a charm now.