Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🌿 It's Hacker News in your terminal

License

NotificationsYou must be signed in to change notification settings

bensadeh/circumflex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

circumflex

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
  • ⚡️Read it withless — use the pager you already know for quick and simple navigation

You might also like:

  • 🤹Native terminal colors — you bring your own color scheme,circumflex does the rest
  • 💎Nerd Fonts — full support for Nerd Fonts as icons
  • ❤️Add to favorites — save interesting submissions for later

Table of Contents


Installing

The binary name forcircumflex isclx.

Package managers

#Homebrewbrew install circumflex#Nixnix-shell -p circumflex#AURyay -S circumflex

From source

#Gogo run main.go

Important

When building from source, make sure that you are using the latest versionofless.

Comment section

Overview

PressEnter to read the comment section.

^

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

  • Rainbow-colored indentation blocks
  • Text formatting inbold,italics andcode 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 thecomment section.

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

Reader mode

PressSpace to read the submission link in Reader Mode.

^

Note

Some websites do not work well with Reader Mode. If the submission URL points toa domain with known Reader Mode incompatibility, the link cannot be opened in Reader Mode.

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 andURLs are highlighted.

^

References

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

^

Categories

Headlines containing the textAsk HN,Tell HN,Show HN andLaunch 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.

^

Nerd Fonts

If you have a Nerd Fonts-patched fonts, you can runclx with the-n or--nerdfonts flag.

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 (byID and last time visited) are stored in~/.cache/circumflex/history.json. Disable marking submissions as read byrunningclx with the-d or--disable-history flag.

You can delete your browsing history from the command line:

clx clear

Favorites

Pressf to add the currently highlighted submission to your list of favorites. Remove submissions from theFavorites page withx.

You can add any submission by itsID from the command line:

clx add [id]

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

Settings

Overview

Runclx help orman clx for a list of available commands and settings.

Commands

add [ID]      Add item to list of favorites by IDcomments [ID] Go directly to the comment section by IDarticle [ID]  Read the linked article associated with an item based on the IDurl [URL]     Open a URL directly in Reader Modeclear         Clear the history of visited IDs

Flags

-a, --auto-expand           Automatically expand all replies upon entering                              the comment section    --categories=[string]   Set the categories in the header                              (available: "top,best,ask,show,new")                              (default:   "top,best,ask,show")-c, --comment-width=[int]   Set the comment width                              (default 70)-e, --disable-emojis        Disable conversion of smileys to emojis-d, --disable-history       Disable marking stories as read-t, --hide-indent           Hide the indentation bar to the left of the reply-n, --nerdfonts             Enable Nerd Fonts    --no-less-verify        Disable checking less version on startup-o, --plain-comments        Disable syntax highlighting for comments-p, --plain-headlines       Disable syntax highlighting for headlines-v, --version               Print current version

Keymaps

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

KeyDescription
EnterRead comments
SpaceRead article in Reader Mode
rRefresh
TabChange category
oOpen link to article in browser
cOpen comment section in browser
fAdd to favorites
xRemove from favorites
qQuit

Under the hood

circumflex uses:

Screenshots use:


[8]ページ先頭

©2009-2025 Movatter.jp