All Projects โ†’ bensadeh โ†’ circumflex

bensadeh / circumflex

Licence: AGPL-3.0 License
๐ŸŒฟ It's Hacker News in your terminal

Programming Languages

go
31211 projects - #10 most used programming language
Roff
2310 projects

Projects that are alternatives of or similar to circumflex

jira-cli
๐Ÿ”ฅ [WIP] Feature-rich interactive Jira command line.
Stars: โœญ 809 (+1781.4%)
Mutual labels:  console, tui
xplr
A hackable, minimal, fast TUI file explorer
Stars: โœญ 2,271 (+5181.4%)
Mutual labels:  console, tui
hackernews-button
Privacy-preserving Firefox extension linking to Hacker News discussion; built with Bloom filters and WebAssembly
Stars: โœญ 73 (+69.77%)
Mutual labels:  hacker-news, hackernews
S Tui
Terminal-based CPU stress and monitoring utility
Stars: โœญ 2,825 (+6469.77%)
Mutual labels:  console, tui
aurelia-hacker-news
A recreation of the Hacker News website written in TypeScript and built with Aurelia.
Stars: โœญ 60 (+39.53%)
Mutual labels:  hacker-news, hackernews
Asciimatics
A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations
Stars: โœญ 2,869 (+6572.09%)
Mutual labels:  console, tui
px
ps and top for human beings
Stars: โœญ 151 (+251.16%)
Mutual labels:  console, tui
Lazyhub
lazyhub - Terminal UI Client for GitHub using gocui.
Stars: โœญ 133 (+209.3%)
Mutual labels:  console, tui
qbittorrentui
text user interface for qbittorrent
Stars: โœญ 19 (-55.81%)
Mutual labels:  console, tui
hackernews-TUI
A Terminal UI to browse Hacker News
Stars: โœญ 347 (+706.98%)
Mutual labels:  hacker-news, tui
Mandown
man-page inspired Markdown viewer
Stars: โœญ 173 (+302.33%)
Mutual labels:  console, tui
croatoan
Common Lisp bindings for the ncurses terminal library.
Stars: โœญ 111 (+158.14%)
Mutual labels:  console, tui
Smenu
smenu started as a lightweight and flexible terminal menu generator, but quickly evolved into a powerful and versatile CLI selection tool for interactive or scripting use.
Stars: โœญ 1,906 (+4332.56%)
Mutual labels:  console, tui
Finalcut
A text-based widget toolkit
Stars: โœญ 244 (+467.44%)
Mutual labels:  console, tui
Kubebox
โŽˆโ Terminal and Web console for Kubernetes
Stars: โœญ 1,855 (+4213.95%)
Mutual labels:  console, tui
hackertab.dev
Hackertab turns your New Tab page into a geeky one that keeps you as a developer updated with the best tools, news, jobs and events.
Stars: โœญ 229 (+432.56%)
Mutual labels:  hacker-news, hackernews
Phetch
๐Ÿญ quick lil gopher client for your terminal
Stars: โœญ 108 (+151.16%)
Mutual labels:  console, tui
Clrcli
CLRCLI is an event-driven library for building line-art user interfaces in C#/.Net command-line applications.
Stars: โœญ 124 (+188.37%)
Mutual labels:  console, tui
pytermgui
Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!
Stars: โœญ 1,270 (+2853.49%)
Mutual labels:  console, tui
obsidian-hackernews
Periodically fetches and displays top stories from HackerNews.
Stars: โœญ 27 (-37.21%)
Mutual labels:  ycombinator, hackernews

circumflex

License Changelog Go Version

circumflex is a command line tool for browsing Hacker News in your terminal

^

Main features

  • ๐Ÿ›‹ Everything in one place โ€” read both the comment section and articles in Reader Mode
  • ๐ŸŒˆ Syntax highlighting โ€” syntax-aware formatting for comments and headlines
  • โšก๏ธ Familiar tools โ€” content is piped to the pager less

You might also like:

  • ๐Ÿคน Native terminal colors โ€” you bring your own color scheme, circumflex does the rest
  • ๐Ÿ›  Easy customization โ€” quickly enable or disable features
  • โค๏ธ Add to favorites โ€” save interesting submissions for later

Table of Contents


Installing

Via Homebrew

circumflex is available as a Tap.

# Install
brew install bensadeh/circumflex/circumflex

# Run
clx

From source

You can also build circumflex from source:

# Run
go run main.go

Comment section

Overview

Press Enter to read the comment section.

^

Comments are pretty-printed and piped to the pager less. To present a nice and readable comment section, circumflex features:

  • Rainbow-colored indentation blocks
  • Text formatting in bold, italics and code where available
  • Labels for Original Posters (OP), Parent Posters (PP) and moderators (mod)

Navigation

The following pair of shortcuts are recommended for browsing and navigating the comment section.

  • d/u to scroll half a screen
  • j/k to scroll one line at a time
  • n/N to jump to the next top-level comment

Reader Mode

Press Space to read the submission link in Reader Mode.

^

Note: some websites do not work well with Reader Mode. If the submission URL points to a domain with known Reader Mode incompatibility, the link cannot be opened in Reader Mode. See validator.go for a full list of incompatible sites.

Syntax highlighting

Quotes

Quotes are indented, italicized and dimmed in order to distinguish them from the rest of the comment.

^

Hacker News and forum idiosyncrasies

`Code snippets`, @username mentions, $variables and URLs are highlighted.

^

References

References on Hacker News are formatted as numbers inside brackets. circumflex highlights these numbers for easier cross-referencing.

^

Categories

Headlines containing the text Ask HN, Tell HN, Show HN and Launch HN are highlighted.

^

YC-funded startups

Twice a year, Y Combinator funds start-ups through its accelerator program. circumflex highlights these startups to signalize their affiliation with YC.

^

History

Mark submissions as read

Visited submissions are marked as read.

Highlight new comments

Comments that are new since the last visit are highlighted.

Disabling history

A list of submissions (by ID and last time visited) are stored in ~/.cache/circumflex/history.json. Disable marking submissions as read by running clx with the -d or --disable-history flag.

You can delete your browsing history from the command line:

clx clear

Favorites

Press f to add the currently highlighted submission to your list of favorites. Remove submissions from the Favorites page with x.

You can add any submission by its ID from the command line:

clx add [id]

Favorites are stored in ~/.config/circumflex/favorites.json. circumflex pretty-prints favorites.json to make it both human-readable and VCS-friendly.

Headers

Run circumflex with the -e/header-type flag and a number to set the header on the main screen:

clx -e [1-3]

Stock dark mode (default)

Stock light mode (1)

No colors (2)

Orange header (3)

Settings

Run clx help for a list of available commands and settings.

A table of available flags is provided below:

Flag Description
-c Set the comment width
-l Disable syntax highlighting for the headlines
-o Disable syntax highlighting in the comment section.
-s Disable conversion of smileys (:)) to emojis (๐Ÿ˜Š)
-d Disable marking submissions as read
-r Show each line with a number relative to the currently selected element (similar to Vim's hybrid line number mode)
-t Hide the indentation symbol from the comment section (does not affect quotes)
-e Set the header type

Tweaks

Low contrast headers

Some terminals brighten text in bold in order to give them stronger contrast in dark color schemes. circumflex uses bold text to give headers and authors names additional contrast for better legibility.

See example screenshots below (low contrast header) of terminal output which does not brighten bold fonts.

^

Below are a few examples on how to enable bold text in bright colors in different terminals.

Alacritty
  • Set draw_bold_text_with_bright_colors to true
  • Define bright_foreground and set it to a brighter value than foreground
  • (See alacritty/alacritty/pull/1026 for more info)
Terminal (macOS)
  • Check Use bright colors for bold text under Profiles
iTerm (macOS)
  • Check Brighten bold text under Profiles โ†’ Colors

Keymaps

Press ?/i to show a list of available keymaps:

Key Description
Enter Read comments
Space Read article in Reader Mode
r Refresh
Tab Change category
o Open link to article in browser
c Open comment section in browser
f Add to favorites
x Remove from favorites
q Quit

Under the hood

circumflex uses:

Screenshots use:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].