|
|
5 years ago | |
|---|---|---|
| images | 6 years ago | |
| .gitignore | 6 years ago | |
| LICENSE | 6 years ago | |
| README.md | 5 years ago | |
| account.go | 6 years ago | |
| api.go | 5 years ago | |
| app.go | 6 years ago | |
| authoverlay.go | 5 years ago | |
| cmdbar.go | 5 years ago | |
| config.example.ini | 5 years ago | |
| config.go | 5 years ago | |
| controls.go | 6 years ago | |
| feed.go | 5 years ago | |
| go.mod | 5 years ago | |
| go.sum | 5 years ago | |
| linkoverlay.go | 5 years ago | |
| main.go | 5 years ago | |
| media.go | 6 years ago | |
| messagebox.go | 5 years ago | |
| notifications.go | 6 years ago | |
| paneview.go | 5 years ago | |
| status.go | 6 years ago | |
| statusview.go | 5 years ago | |
| top.go | 6 years ago | |
| ui.go | 5 years ago | |
| util.go | 5 years ago | |
| visibilityoverlay.go | 5 years ago | |
| xrdb.go | 6 years ago | |
README.md
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.
Press C to create a new toot and N to focus on your notifications.
You can find Linux binaries under releases.
Currently supported commands
:q:quitexit:timelinehome, local, federated, direct, notifications:tlh, l, f, d, n (shorter form)
:blockinglists users that you have blocked:boostslists users that boosted the toot:bookmarkslists all your bookmarks:composecompose a new toot:favoriteslists users that favorited the toot:mutinglists users that you have muted:profilego to your profile:savedalias for bookmarks:tagfollowed by the hashtag e.g.:tag linux:userfollowed by a username e.g.:user rasmusto narrow a search include the instance like this:user rasmus@mastodon.acc.sunet.se.
Keys without description in tut
c= Compose a new toothjkl= navigationarrow keys= navigationq= go back and quitESC= go back
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 screenO= open. Gives you a list of all URLs in the toot. Opens them in your default browser, if it's an user or tag they will be opened in tut.M= media. Opens the media withxdg-open.
Configuration
Tut is configurable, so you can change things like the colors, the default timeline, what image viewer to use and some more. Check out the configuration file to see all the options.
You find it in XDG_CONFIG_HOME/tut/config.ini which usally equals to ~/.config/tut/config.ini.
You can find an updated configuration file in this repo named config.example.ini.
If there are any new configurations options you can copy them frome that file.
Install instructions
Arch or Manjaro?
You can find it in the Arch User Repository (AUR). I'm the maintainer there.
https://aur.archlinux.org/packages/tut/
Debian
http://packages.azlux.fr/ (I'm not the maintainer)
FreeBSD
https://www.freshports.org/net-im/tut (I'm not the maintainer)
Build it yourself
If you don't use the binary that you find under releases you will need Go. Use a newer one that supports modules.
# Fetches and installs tut. Usally /home/user/go/bin
go get -u github.com/RasmusLindroth/tut
# You can also clone the repo if you like
# 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.
On my TODO-list:
- Multiple accounts
- Support search
- Support lists
- Better error handling (in other words, don't crash the whole program)
Thanks to
- mattn/go-mastodon - used to make calls to the Mastodon API
- rivo/tview - used to make the TUI
- gdamore/tcell - used by tview under the hood
- microcosm-cc/bluemonday - used to remove HTML-tags
