mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-27 00:25:53 +03:00
[PR #693] Adds functionality to rebind keys to other keys #979
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-tui#979
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/Rigellute/spotify-tui/pull/693
Author: @Kagia001
Created: 1/3/2021
Status: 🔄 Open
Base:
master← Head:master📝 Commits (10+)
050ed73Adds the option to rebind keys. Useful for users with non-qwerty keyboard layouts.16374c8Update .gitignored3c46fcFormattingd4decacMerge branch 'master' of https://github.com/Kagia001/spotify-tui3b3acdaFormattingf9576adformattingb537676formattingee0f54cformatting652b5bfformatting9254334Updated readme and removed some comments after formatting📊 Changes
4 files changed (+409 additions, -21 deletions)
View changed files
📝
README.md(+68 -0)📝
src/event/key.rs(+1 -0)📝
src/handlers/mod.rs(+81 -21)📝
src/user_config.rs(+259 -0)📄 Description
This allows users to rebind keys to other keys in the config file which lets users with non-qwerty keyboards to use the vim-like keybinds. Users can also use this to change the keyboard shortcut for commands which are not configurable in the config file, although this is a somewhat clumsy way to do that. There is some awefully WET code in here (remap_key()), but it works.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.