mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[PR #629] [MERGED] Allow changing of volume in different steps #1759
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#1759
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?
📋 Pull Request Information
Original PR: https://github.com/aome510/spotify-player/pull/629
Author: @DOD-101
Created: 12/8/2024
Status: ✅ Merged
Merged: 12/8/2024
Merged by: @aome510
Base:
master← Head:add-616📝 Commits (4)
abc43b3feat(command)!: replace Volume -Up / -Down with VolumeChange1760669docs(command): update docs for new VolumeChange commandc74ec81refactor(clippy): change format macro to pass clippy tests3dd30f4fix(code-review): apply changes from code-review📊 Changes
5 files changed (+18 additions, -19 deletions)
View changed files
📝
README.md(+1 -2)📝
docs/config.md(+3 -0)📝
spotify_player/src/command.rs(+10 -5)📝
spotify_player/src/config/keymap.rs(+2 -2)📝
spotify_player/src/event/mod.rs(+2 -10)📄 Description
Resolves #616
This change implements what was requested in #616, but would require users to re-write their
keymap.toml.The new format for
keymap.tomlwould be:I'm looking for input on whether this is a good idea to implement this way. Or if an alternative would be better.
There is also the option of leaving the configuration syntax as is and setting the offset like this:
And this approach has some advantages and disadvantages.
For one, the config format for the other commands wouldn't change, but as far as I can tell I would have to write some custom deserialization logic, since TOML doesn't support this syntax out of the box. And any future commands, which have arguments, would need to do the same.
Personally, I don't have a preference either way.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.