[PR #693] Adds functionality to rebind keys to other keys #979

Open
opened 2026-02-28 14:54:02 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Rigellute/spotify-tui/pull/693
Author: @Kagia001
Created: 1/3/2021
Status: 🔄 Open

Base: masterHead: master


📝 Commits (10+)

📊 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Rigellute/spotify-tui/pull/693 **Author:** [@Kagia001](https://github.com/Kagia001) **Created:** 1/3/2021 **Status:** 🔄 Open **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`050ed73`](https://github.com/Rigellute/spotify-tui/commit/050ed736314cd5b6b1af71d2a66ad6436046f1dc) Adds the option to rebind keys. Useful for users with non-qwerty keyboard layouts. - [`16374c8`](https://github.com/Rigellute/spotify-tui/commit/16374c82a91fa53b00243e3dbf7b1beec43b7107) Update .gitignore - [`d3c46fc`](https://github.com/Rigellute/spotify-tui/commit/d3c46fc187624f7d7a90fbc369c6f56879be0c39) Formatting - [`d4decac`](https://github.com/Rigellute/spotify-tui/commit/d4decacaaa15987f94fb651bbb78372fd38c3b16) Merge branch 'master' of https://github.com/Kagia001/spotify-tui - [`3b3acda`](https://github.com/Rigellute/spotify-tui/commit/3b3acdacdaa3877a3bc431db20ada5e30df55052) Formatting - [`f9576ad`](https://github.com/Rigellute/spotify-tui/commit/f9576ad32c77ffd6a9a1cd4fcff57a6ebf6e5055) formatting - [`b537676`](https://github.com/Rigellute/spotify-tui/commit/b537676556324b5831f204750be769373160577e) formatting - [`ee0f54c`](https://github.com/Rigellute/spotify-tui/commit/ee0f54ccd6dd8a273d0835a4c16eaa566be606d0) formatting - [`652b5bf`](https://github.com/Rigellute/spotify-tui/commit/652b5bf30dd61f5ebabec3c804581bb550417e0c) formatting - [`9254334`](https://github.com/Rigellute/spotify-tui/commit/92543346fd2d1a4dc3cbcf28b1a9ae622f210cc9) Updated readme and removed some comments after formatting ### 📊 Changes **4 files changed** (+409 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+68 -0) 📝 `src/event/key.rs` (+1 -0) 📝 `src/handlers/mod.rs` (+81 -21) 📝 `src/user_config.rs` (+259 -0) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-tui#979
No description provided.