rafaelrinaldi / hn-cli

:newspaper: CLI to browse Hacker News
MIT License
460 stars 19 forks source link

Refresh shortcut #2

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi,

Thanks. Really nice program. It would be nice to have a refresh feature, maybe with "r" key.

f0086 commented 8 years ago

That would be nice! :+1: Or a live-refresh with resorting and red/green indicators which topic gain interest

rafaelrinaldi commented 8 years ago

Hey @nrosvall, thanks for the feedback. A refresh feature would be helpful indeed.

I already have a working version of it under feat/refresh if you want to take a look. It already allow you to refresh the stories by hitting r but it doesn't give you a visual feedback yet. I'm working on it, maybe a label on the footer of the table would do it.

If you want to try this feature while it's under development:

# Clone this repository
$ git clone git@github.com:rafaelrinaldi/hn-cli.git
# Go to the feature branch
$ cd hn-cli && git checkout feat/refresh
# Link the binary to your /usr/local
$ npm link

Thanks!

rafaelrinaldi commented 8 years ago

@nrosvall I've played with the idea of a status bar UI. It displays your progress on the list and also when you refresh the list it will show the last update date.

Check the screen recording:

status-bar

What do you think?

ghost commented 8 years ago

Hi,

Thanks! Works well, really nice to have :)

rafaelrinaldi commented 8 years ago

@nrosvall Sweet. I will make a few tweaks and it publish a new release with this feature soon.

Thanks for your feedback.

rafaelrinaldi commented 8 years ago

@nrosvall It's alive! See the v1.5.0 release notes for more info.

ghost commented 8 years ago

Thanks! Great work!