mastodon client rust https://github.com/syui/msr
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.
syui c92bf6b626
add secound
2 days ago
.github/workflows add gh-actions 10 months ago
src add secound 2 days ago
.gitignore add notify 10 months ago
Cargo.toml update v0.0.9 1 week ago
config.toml.example releases 0.0.1 10 months ago
readme.md update readme 1 week ago

readme.md

msr of mastodon cli client.

$ git clone https://github.com/syui/msr
$ cd msr
$ mkdir -p ~/.config/msr
$ cp config.toml.example ~/.config/msr/config.toml
$ vim ~/.config/msr/config.toml

$ cargo run
$ ./target/debug/msr s

# build
$ cargo build
$ ./target/debug/msr

example

# status
$ msr s

# post
$ msr p "test post"

# media upload
$ msr m ./test.png

# mention
$ msr mm $id -p "$message"
$ id=`msr nl -o id|head -n 1|cut -d '"' -f 2`

# notify
$ msr n
$ msr nl -o id

# nofity-clear
$ msr n -c

# follow, unfollow
$ msr f $id
$ msr f $id -d

# search user
$ msr s -u @ai
$ msr s -i @ai

# search post
msr s -i "@syui@syui.cf" -t
msr s -i "@syui@syui.cf" -t -a

# fav and reblog
$ msr fa $id
$ msr fa $id -d
$ msr r $id
$ msr r $id -d

icon

linux : img2sixel

mac : imgcat

not shown on tmux

# timeline
$ msr i
$ ls ~/.config/msr/icon/

custom-prompt

~/.zshrc

my_mastodon() {
	source ~/.config/msr/msr.zsh
		export mastodon="%F{cyan}${icon_mastodon}%f : @${MASTODON_BASE##*/}"
#export mastodon="%F{cyan}${icon_mastodon}%f : @${MASTODON_USER}@${MASTODON_BASE##*/}"
}
autoload -Uz add-zsh-hook
add-zsh-hook precmd my_mastodon

lib

mastodon api : https://github.com/XAMPPRocky/Mammut

rust cli : https://github.com/ksk001100/seahorse