Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
export.sh
getToken.sh
masto.sh
post.sh

README.md

You’ll find inside this folder some scripts interact with Mastodon from the command line. This scripts depend on the two most useful tools for Web browsing: cURL and jq.

  • getToken.sh gets a read and write token from the Mastodon website and store it into config.json;
  • post.sh publish a new status from its standard input;
  • export.sh exports all your own statuses into export.json;

How to toot from Vim?

Open Vim, write your status… You can use g Ctrl-g to display the number of characters of current buffer.

Once done, pipe the content of the buffer to the post.sh shell script: :w !post.sh (you’ll probably need to adjust some path).