sajattack / discourse-tui

Terminal UI for Discourse forums
MIT License
11 stars 2 forks source link

discourse-tui

Terminal UI for Discourse forums

screenshot

Dependencies

Setup

mkdir -p ~/.config/discourse-tui
cp theme.toml ~/.config/discourse-tui
cargo build --release
sudo cp target/release/discourse-tui /usr/bin

Run (unauthenticated)

discourse-tui <url>

Setup Api Key

First you need to register discourse-tui as the handler for discourse:// URIs

cp discourse-tui.desktop ~/.local/share/applications

Add this line to ~/.config/mimeapps.list, under [Added Associations] and [Default Applications]

x-scheme-handler/discourse=discourse-tui.desktop

You may need to logout for this to have an effect.

Now, back to discourse-tui

discourse-tui --new-key <url>

Click the link

Click "Authorize" You should see a terminal flash open briefly, this is discourse-tui opening and completing the authentication.

Now just run

discourse-tui

The TUI will open with the URL you specified in the --new-key phase and you will be logged in.

Troubleshooting