[GH-ISSUE #66] [Feature Request] Some common search operations #19

Closed
opened 2026-03-14 12:24:58 +03:00 by kerem · 2 comments
Owner

Originally created by @huyz on GitHub (Mar 24, 2022).
Original GitHub issue: https://github.com/aome510/hackernews-TUI/issues/66

Right now I use https://hn.algolia.com/ to browse the most popular stories of the past week or month.
Would be awesome if these could be added as well to hackernews-TUI.

Originally created by @huyz on GitHub (Mar 24, 2022). Original GitHub issue: https://github.com/aome510/hackernews-TUI/issues/66 Right now I use https://hn.algolia.com/ to browse the most popular stories of the past week or month. Would be awesome if these could be added as well to hackernews-TUI.
kerem closed this issue 2026-03-14 12:25:04 +03:00
Author
Owner

@aome510 commented on GitHub (Mar 24, 2022):

Hi @huyz, hackernews-TUI already supports adding a custom shortcut for searching stories. In fact, it uses hn.algolia APIs to do so.

An example config section in hn-tui.toml to add M-1 for past week and M-2 for past month:

[[keymap.custom_keymaps]]
key = "M-1"
tag = "story"
by_date = false
[keymap.custom_keymaps.numeric_filters]
elapsed_days_interval = {start = 0, end = 7}

[[keymap.custom_keymaps]]
key = "M-2"
tag = "story"
by_date = false
[keymap.custom_keymaps.numeric_filters]
elapsed_days_interval = {start = 0, end = 30}

Please lmk if this does not work.

<!-- gh-comment-id:1077882930 --> @aome510 commented on GitHub (Mar 24, 2022): Hi @huyz, `hackernews-TUI` already supports adding a [custom shortcut](https://github.com/aome510/hackernews-TUI/blob/main/config.md#custom-keymap) for searching stories. In fact, it uses `hn.algolia` APIs to do so. An example config section in `hn-tui.toml` to add `M-1` for past week and `M-2` for past month: ```toml [[keymap.custom_keymaps]] key = "M-1" tag = "story" by_date = false [keymap.custom_keymaps.numeric_filters] elapsed_days_interval = {start = 0, end = 7} [[keymap.custom_keymaps]] key = "M-2" tag = "story" by_date = false [keymap.custom_keymaps.numeric_filters] elapsed_days_interval = {start = 0, end = 30} ``` Please lmk if this does not work.
Author
Owner

@huyz commented on GitHub (Mar 24, 2022):

Awesome!

<!-- gh-comment-id:1077895498 --> @huyz commented on GitHub (Mar 24, 2022): Awesome!
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/hackernews-TUI#19
No description provided.