项目作者: rafaelrinaldi

项目描述 :
:newspaper: CLI to browse Hacker News
高级语言: JavaScript
项目地址: git://github.com/rafaelrinaldi/hn-cli.git
创建时间: 2016-01-27T21:57:54Z
项目社区:https://github.com/rafaelrinaldi/hn-cli

开源协议:MIT License

下载


hn-cli Build Status

CLI to browse Hacker News

demo

Install

  1. $ npm install -g @rafaelrinaldi/hn-cli

Usage

  1. Usage: hn [OPTIONS]
  2. CLI to browse Hacker News
  3. Example:
  4. $ hn --limit 10 --keep-open
  5. Options:
  6. -v --version Display current software version
  7. -h --help Display help and usage details
  8. -l --limit Limit the number of items to display (defaults to 150)
  9. -k --keep-open Wether or not to keep the list open after selecting an item (defaults to false)
  10. --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 keys j and k to navigate through the list
  • Use gg to scroll to the first item of the list and G to scroll to the last one
  • Hitting the enter key will open the URL in your default browser
  • Hitting the c key will open the HN comments for that story on your default browser
  • Share an item on Twitter by hitting the t key
  • Hitting the r 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
  • Use esc, ⌃C or q to close the program

License

MIT © Rafael Rinaldi



Buy me a ☕