Skip to content

cetorres/tn-cli

Repository files navigation

tn-cli

TabNews CLI is a terminal based application (TUI) for the Brazilian news website TabNews.

It is made in Go using the libraries:

  • gocui for the TUI. This is one the best TUI libraries I've even seen. Supports even mouse interaction!
  • go-term-markdown for Markdown rendering.

I created this TUI app inspired by the lazygit great Git terminal client, that also uses gocui.

Demo

Demo

Installation

Via source code

  • Clone the repo or download and extract the zip file.
  • Run: go build inside the directory to compile and create the executable.
  • Run: ./tn-cli

Pre-built binaries

  • Download the binary for your platform from the releases.

Roadmap

The project needs help with these items.

  • Main interface created
  • Accessing contents API
  • Load TabNews recents posts via API
  • Load TabNews relevant posts via API
  • Show articles list on the left side view
  • Show article content on the right side reader view
  • Load article pages with arrows
  • Caching loaded data for faster access
  • Fix known bug on the left side list scroll
  • Show a bottom line with available commands and app version
  • Improve the reader view to show contents better, with markdown and links.
  • Add your feature to the list...

List of commands / key bindings

Action Key
Refresh Content R
Quit Ctrl+C, Q
Scroll Up
Scroll Down
Toggle Views tab
Change to Relevant 1
Change to Recent 2
Next Page
Previous Page

About

TabNews (tabnews.com.br) CLI made with Go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published