mirror of
https://github.com/aome510/hackernews-TUI.git
synced 2026-04-26 09:25:56 +03:00
[PR #32] [MERGED] [no-issue] allow fully customizable shortcuts #59
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hackernews-TUI#59
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/hackernews-TUI/pull/32
Author: @aome510
Created: 4/27/2021
Status: ✅ Merged
Merged: 4/27/2021
Merged by: @aome510
Base:
main← Head:add-fully-customizable-shortcuts📝 Commits (10+)
1381a40implement default for config::Theme189b502add keybindings.rs9dc97bdimplement default keymapsd480328fix build errorsbaa9a30add default keymap configurations to the default toml filedb0241bchange hard-coded keys in main.rs to config keysba9f651change hard-coded keys in search_view.rs to config keys264cc3dremove j,k,t,b from list_view default keysdeb22d2change hard-coded keys in story_view.rs to config keys6b26574change hard-coded keys in comment_view.rs to config keys📊 Changes
12 files changed (+783 additions, -334 deletions)
View changed files
📝
README.md(+26 -23)📝
examples/assets/help_view.png(+0 -0)📝
src/config.rs(+52 -26)📝
src/hn-tui-default.toml(+83 -0)➕
src/keybindings.rs(+281 -0)📝
src/main.rs(+60 -108)📝
src/view/comment_view.rs(+66 -43)📝
src/view/help_view.rs(+149 -61)📝
src/view/list_view.rs(+0 -21)📝
src/view/search_view.rs(+12 -16)📝
src/view/story_view.rs(+50 -33)📝
src/view/utils.rs(+4 -3)📄 Description
keybindings.rsto load user-defined shortcuts from config file or generate a default keybindingsViewto the corresponding keys defined inkeybindings.rshelp_viewREADME.md🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.