mirror of
https://github.com/aome510/hackernews-TUI.git
synced 2026-04-26 09:25:56 +03:00
[PR #80] [MERGED] Expand story view capabilities #93
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hackernews-TUI#93
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/80
Author: @aome510
Created: 9/5/2022
Status: ✅ Merged
Merged: 9/5/2022
Merged by: @aome510
Base:
main← Head:expand-story-view-caps📝 Commits (5)
912e969addStorySortModeand use it to retrieve HN storiesaf90954changeby_dateparameter tosort_mode919c116handlejobstories similar tostorystories4f4202cupdate story title bar based on the sort modef688c25renametoggle_sort_by_datetocycle_sort_mode📊 Changes
10 files changed (+139 additions, -55 deletions)
View changed files
📝
README.md(+1 -1)📝
examples/hn-tui.toml(+1 -1)📝
hackernews_tui/src/client/mod.rs(+40 -24)📝
hackernews_tui/src/client/query.rs(+37 -0)📝
hackernews_tui/src/config/keybindings.rs(+2 -2)📝
hackernews_tui/src/view/async_view.rs(+5 -5)📝
hackernews_tui/src/view/help_view.rs(+4 -4)📝
hackernews_tui/src/view/mod.rs(+11 -3)📝
hackernews_tui/src/view/search_view.rs(+1 -1)📝
hackernews_tui/src/view/story_view.rs(+37 -14)📄 Description
Changes
None,Date, andPoint.sort_modeas a parameter instead ofby_dateNonesort mode is specified, use a combination of HN Algolia APIs and HN official APIs to retrieveask_hnandshow_hnstories in the same order as displayed in the http://news.ycombinator.com/ website.Breaking changes
toggle_sort_by_datecommand tocycle_sort_mode🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.