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

📰 CLI to browse Hacker News

License

NotificationsYou must be signed in to change notification settings

rafaelrinaldi/hn-cli

Repository files navigation

CLI to browseHacker News

demo

Install

$ npm install -g @rafaelrinaldi/hn-cli

Usage

Usage: hn [OPTIONS]  CLI to browse Hacker NewsExample:  $ hn --limit 10 --keep-openOptions:  -v --version              Display current software version  -h --help                 Displayhelp and usage details  -l --limit                Limit the number of items to display (defaults to 150)  -k --keep-open            Wether or not to keep the list open after selecting an item (defaults to false)     --latest               Sort the list by submission date (defaults to false)

Features

  • By default it will list stories using the same order as seen on HN
  • You can change the list order to display the most recent ones by runnig the program with the--latest flag
  • You can use Vim arrow keysj andk to navigate through the list
  • Usegg to scroll to the first item of the list andG to scroll to the last one
  • Hitting theenter key will open the URL in your default browser
  • Hitting thec key will open the HN comments for that story on your default browser
  • Share an item on Twitter by hitting thet key
  • Hitting ther key will refresh the stories and update the current list
  • A status bar is fixed on the bottom of the screen to provide visual feedback about updates and reading progress
  • Useesc,⌃C orq to close the program

License

MIT ©Rafael Rinaldi


Buy me a ☕


[8]ページ先頭

©2009-2025 Movatter.jp