You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.8 KiB

6 years ago
# Tut - a Mastodon TUI
A TUI for Mastodon with vim inspired keys. The program misses some features but they will be added when I get time.
6 years ago
Press `C` to create a new toot.
You can find Linux binaries under [releases](https://github.com/RasmusLindroth/tut/releases).
![Preview](./images/preview.png "Preview")
6 years ago
### Currently supported commands
* `:q` `:quit` exit
* `:timeline` home, local, federated, direct, notifications
* `:tl` h, l, f, d, n (a shorter form of the former)
Explanation of the non obvious keys when viewing a toot
* `V` = view. In this mode you can scroll throught the text of the toot if it doesn't fit the screen
* `O` = open. Gives you a list of all URLs in the toot. Opens them in your default browser.
* `M` = media. Opens the media with `xdg-open`.
### Install instructions
If you don't use the binary that you find under releases
you will need Go. Use a newer one that supports modules.
```bash
# First clone this repository
git clone https://github.com/RasmusLindroth/tut.git
# Go to that folder
cd tut
# Build or install
# Install (usally /home/user/go/bin)
go install
#Build (same directory i.e. ./ )
go build
```
If you choose to install and want to be able to just run `tut`
you will have to add `go/bin` to your `$PATH`.
6 years ago
### On my TODO-list:
* Support for config files (theme, default image/video viewer)
* Multiple accounts
* Support search
* Support tags
* Support lists
* Better error handling (in other words, don't crash the whole program)
6 years ago
### Thanks to
* [mattn/go-mastodon](https://github.com/mattn/go-mastodon) - used to make calls to the Mastodon API
* [rivo/tview](https://github.com/rivo/tview) - used to make the TUI
* [gdamore/tcell](https://github.com/gdamore/tcell) - used by tview under the hood
* [microcosm-cc/bluemonday](https://github.com/microcosm-cc/bluemonday) - used to remove HTML-tags