mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[GH-ISSUE #523] Remap / rebind keymap to action #300
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#300
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 @arouene on GitHub (Jul 29, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/523
Describe the bug
It does not seem possible to remap a kemap (like C-p which is bind to "SelectPreviousOrScrollUp") to an action (like "AddToPlaylist").
To Reproduce
I have this keymap.toml
Expected behaviour
SelectPreviousOrScrollUp is k
AddToPlaylist is C-p
Environment
@arouene commented on GitHub (Jul 29, 2024):
Besides, why do we make a difference between a keymap and an action?
@aome510 commented on GitHub (Jul 29, 2024):
I think you mean
commandandaction. The difference is thatactionperforms on a specific item (input) whilecommandis supposed to be a general operation w/o input.@arouene commented on GitHub (Jul 29, 2024):
Oh ok, I see, thank you !
@aome510 commented on GitHub (Jul 29, 2024):
You can bind
C-pto an action by bindingC-ptocommand = "None"to allow re-use the key.@arouene commented on GitHub (Jul 29, 2024):
I did try that, but then C-p is just not bind to anything
@aome510 commented on GitHub (Jul 29, 2024):
I see, then it's bug that doesn't allow to re-use
Nonecommand. It should be easy to updategithub.com/aome510/spotify-player@58a5ace777/spotify_player/src/config/keymap.rs (L416)to ignoreNonecommand.@arouene commented on GitHub (Jul 29, 2024):
Fixed in PR