No description
Find a file
Denis Laxalde 0bf4b2a21a
Fix left column padding in timeline with wide characters
When the left column contains wide characters (which occupy more than
one cell when printed to screen), padding to 30-characters with
"{:30}".format() does not work well. This happens for instance when the
display name contains unicode characters such as emojis.

We fix this by introducing a pad() function in utils module which uses
the wcwidth library (https://pypi.org/project/wcwidth/) to compute the
length of the text for the column. trunc() function is also adjusted to
optionally compute the length of the text to be truncated since, when
called from pad(), we now pre-compute this value.

We update test for timeline rendering so that the display name now
includes an emoji. (Without the fix, the test would not pass as left
column would be misaligned.)
2019-02-14 14:21:53 +01:00
docs Add status related commands 2019-01-02 12:33:25 +01:00
tests Fix left column padding in timeline with wide characters 2019-02-14 14:21:53 +01:00
toot Fix left column padding in timeline with wide characters 2019-02-14 14:21:53 +01:00
.flake8 Configure flake8 2017-08-26 11:53:45 +02:00
.gitignore Add sphinx docs 2018-06-27 13:11:36 +02:00
.travis.yml Drop support for Python 2 2017-12-29 11:31:21 +01:00
CHANGELOG.md Fix changelog date 2019-01-21 14:00:19 +01:00
LICENSE Change license to GPLv3 2017-05-08 09:17:32 +02:00
Makefile Don't upload zip to pypi, expects only tar.gz 2019-01-21 14:00:20 +01:00
README.rst Fix a typo 2018-08-21 00:42:46 +02:00
requirements-dev.txt Add sphinx docs 2018-06-27 13:11:36 +02:00
requirements.txt Fix left column padding in timeline with wide characters 2019-02-14 14:21:53 +01:00
setup.py Fix left column padding in timeline with wide characters 2019-02-14 14:21:53 +01:00
stdeb.cfg Add debian packaging 2017-08-26 15:56:41 +02:00
trumpet.png Resize image 2018-06-25 14:30:18 +02:00

============================
Toot - a Mastodon CLI client
============================

.. image:: https://raw.githubusercontent.com/ihabunek/toot/master/trumpet.png

Interact with Mastodon social network from the command line.

.. image:: https://img.shields.io/travis/ihabunek/toot.svg?maxAge=3600&style=flat-square
   :target: https://travis-ci.org/ihabunek/toot
.. image:: https://img.shields.io/badge/author-%40ihabunek-blue.svg?maxAge=3600&style=flat-square
   :target: https://mastodon.social/@ihabunek
.. image:: https://img.shields.io/github/license/ihabunek/toot.svg?maxAge=3600&style=flat-square
   :target: https://opensource.org/licenses/MIT
.. image:: https://img.shields.io/pypi/v/toot.svg?maxAge=3600&style=flat-square
   :target: https://pypi.python.org/pypi/toot

Documentation
-------------

Documentation is hosted on readthedocs.io. Check it out for instruction on installation, usage and more.

https://toot.readthedocs.io/en/latest/

Features
--------

* Posting, replying, deleting statuses
* Support for media uploads, spoiler text, sensitive content
* Search by account or hash tag
* Following, muting and blocking accounts
* Simple switching between authenticated in Mastodon accounts

Curses UI
---------

toot has an experimental curses based console UI.

.. image :: https://raw.githubusercontent.com/ihabunek/toot/master/docs/_static/curses.png

License
-------

Copyright 2018 Ivan Habunek <ivan@habunek.com>

Licensed under `GPLv3 <http://www.gnu.org/licenses/gpl-3.0.html>`_, see `LICENSE <LICENSE>`_.