mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-26 16:15:55 +03:00
[PR #585] [MERGED] Show active keybindings in Help #909
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#909
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/585
Author: @bi1yeu
Created: 9/21/2020
Status: ✅ Merged
Merged: 10/5/2020
Merged by: @Rigellute
Base:
master← Head:show-keybindings-in-help📝 Commits (6)
6893eedshow active keybindings in help menubf46412properly format bare keys as<Keyname>1082ac8fix formatting6ffe4f3Merge remote-tracking branch 'upstream/master' into show-keybindings-in-help040327cadd new keybindings to help menu8c8022afix formatting again📊 Changes
4 files changed (+266 additions, -86 deletions)
View changed files
📝
src/event/key.rs(+26 -0)📝
src/main.rs(+1 -1)📝
src/ui/help.rs(+238 -84)📝
src/ui/mod.rs(+1 -1)📄 Description
Closes #572
Makes the Help page display the active keybindings from config rather than the hard-coded defaults.
Functionally tested by putting some keybindings in
~/.config/spotify-tui/config.ymland observing they were displayed on the Help page.I tried to match the current Help page styling for key strings:
<Enter>,<Space>,<Ctrl+x>, etc.P.S. This is my first time writing Rust, so please let me know if anything isn't idiomatic (or is completely wrong)!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.