[GH-ISSUE #51] Include useful font-highlighting similar to circumflex #14

Closed
opened 2026-03-14 12:23:35 +03:00 by kerem · 3 comments
Owner

Originally created by @jtrv on GitHub (Dec 13, 2021).
Original GitHub issue: https://github.com/aome510/hackernews-TUI/issues/51

This app is great however the one place I feel like it could be a bit better is highlighting. If hn-tui had highlighting to help with human-parsing and making things a little easier on the eyes, or making certain pieces of information more easily apparent or navigable, it would be perfect! This is a feature request for additional highlighting and labeling in the ways that circumflex provides it.

to list out all the different text-highlighting:

Categories:

  • highlight headlines with Ask HN, Tell HN, Show HN and Launch HN

Comments:

  • colored comment depth indicators
  • indent, italicize and dim quotes
  • highlight code snippets
  • highlight @username mentions
  • color reference numbers such as [0] [1] [2] ...
Originally created by @jtrv on GitHub (Dec 13, 2021). Original GitHub issue: https://github.com/aome510/hackernews-TUI/issues/51 This app is great however the one place I feel like it could be a bit better is highlighting. If hn-tui had highlighting to help with human-parsing and making things a little easier on the eyes, or making certain pieces of information more easily apparent or navigable, it would be perfect! This is a feature request for additional highlighting and labeling in the ways that [circumflex provides it.](https://github.com/bensadeh/circumflex#comment-section) to list out all the different text-highlighting: Categories: - [x] highlight headlines with `Ask HN`, `Tell HN`, `Show HN` and `Launch HN` Comments: - [x] colored comment depth indicators - [x] indent, italicize and dim quotes - [x] highlight `code snippets` - [ ] highlight @username mentions - [ ] color reference numbers such as [0] [1] [2] ...
kerem 2026-03-14 12:23:35 +03:00
Author
Owner

@aome510 commented on GitHub (Dec 13, 2021):

Hi @JacobTravers. Thank you for the ideas. Definitely will try those.

Also circumflex looks really great. Thanks again for the great reference 😄

<!-- gh-comment-id:992728616 --> @aome510 commented on GitHub (Dec 13, 2021): Hi @JacobTravers. Thank you for the ideas. Definitely will try those. Also [circumflex](https://github.com/bensadeh/circumflex) looks really great. Thanks again for the great reference 😄
Author
Owner

@bensadeh commented on GitHub (Dec 14, 2021):

Thanks for the mention, @JacobTravers & @aome510 😊,

The highlighting in clx is a mix between simple search + replace of certain keywords, as well as some regular expressions for more complicated patterns. I have gathered most of them here, maybe it can help you for inspiration/implementation of similar features.

(By the way, hackernews-TUI is really impressive, glad to see more people interested in the niche of HN readers in the Terminal!)

<!-- gh-comment-id:993275409 --> @bensadeh commented on GitHub (Dec 14, 2021): Thanks for the mention, @JacobTravers & @aome510 😊, The highlighting in `clx` is a mix between simple search + replace of certain keywords, as well as some regular expressions for more complicated patterns. I have gathered most of them [here](https://github.com/bensadeh/circumflex/blob/main/syntax/syntax.go), maybe it can help you for inspiration/implementation of similar features. (By the way, `hackernews-TUI` is really impressive, glad to see more people interested in the niche of HN readers in the Terminal!)
Author
Owner

@aome510 commented on GitHub (Dec 17, 2021):

@JacobTravers FYI, I have implemented most of the font highlight functionalities for StoryView and CommentView along with a better looking UI.

You can check them out with the latest version of the main branch. Any feedbacks are highly appreciated!
There are still a few big things I want to do before releasing new versions (documentation, highlight for ArticleView, etc).

Also, I decided not to implement highlighting for user mention and reference numbers as they are quite subject to false positives.

<!-- gh-comment-id:996438633 --> @aome510 commented on GitHub (Dec 17, 2021): @JacobTravers FYI, I have implemented most of the font highlight functionalities for `StoryView` and `CommentView` along with a better looking UI. You can check them out with the latest version of the `main` branch. Any feedbacks are highly appreciated! There are still a few big things I want to do before releasing new versions (documentation, highlight for `ArticleView`, etc). Also, I decided not to implement highlighting for user mention and reference numbers as they are quite subject to false positives.
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#14
No description provided.