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.
Rasmus Lindroth bcddfa234f Support user search and display more info 6 years ago
images Add config and autoupdate feed 6 years ago
.gitignore fix readme 6 years ago
LICENSE Create LICENSE 6 years ago
README.md Support user search and display more info 6 years ago
account.go First 6 years ago
api.go Support user search and display more info 6 years ago
app.go clean up code 6 years ago
authoverlay.go Add config and autoupdate feed 6 years ago
cmdbar.go Support for tags and open tags and mentions in app instead of browser 6 years ago
config.go Support user search and display more info 6 years ago
controls.go First 6 years ago
feed.go Support user search and display more info 6 years ago
go.mod Add config and autoupdate feed 6 years ago
go.sum Add config and autoupdate feed 6 years ago
linkoverlay.go Support for tags and open tags and mentions in app instead of browser 6 years ago
main.go Support user search and display more info 6 years ago
media.go Added notifications and nested timelines 6 years ago
messagebox.go Support for tags and open tags and mentions in app instead of browser 6 years ago
paneview.go Added notifications and nested timelines 6 years ago
status.go clean up code 6 years ago
statusview.go Support user search and display more info 6 years ago
top.go clean up code 6 years ago
ui.go Support user search and display more info 6 years ago
util.go Add config and autoupdate feed 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.

You can find Linux binaries under releases.

Preview

Currently supported commands

  • :q :quit exit
  • :timeline home, local, federated, direct, notifications
  • :tl h, l, f, d, n (a shorter form of the former)
  • :tag followed by the hashtag e.g. :tag linux
  • :user followed by a username e.g. :user rasmus to narrow a search include the instance like this :user rasmus@mastodon.acc.sunet.se.

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, if it's an user or tag they will be opened in tut.
  • M = media. Opens the media with xdg-open.

Configuration

Tut if 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.

Install instructions

Using Arch?

You can find it in the Arch User Repository (AUR).

https://aur.archlinux.org/packages/tut/

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.

# 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