- Notifications
You must be signed in to change notification settings - Fork18
📰 CLI to browse Hacker News
License
NotificationsYou must be signed in to change notification settings
rafaelrinaldi/hn-cli
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
CLI to browseHacker News
$ npm install -g @rafaelrinaldi/hn-cli
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)
- 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
MIT ©Rafael Rinaldi
About
📰 CLI to browse Hacker News
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published