1
0
mirror of https://github.com/ihabunek/toot synced 2025-02-02 12:26:51 +01:00
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
2019-01-02 12:33:25 +01:00
2017-08-26 11:53:45 +02:00
2018-06-27 13:11:36 +02:00
2017-12-29 11:31:21 +01:00
2019-01-21 14:00:19 +01:00
2017-05-08 09:17:32 +02:00
2018-08-21 00:42:46 +02:00
2018-06-27 13:11:36 +02:00
2017-08-26 15:56:41 +02:00
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>`_.
Description
Toot è uno strumento CLI (interfaccia Linea di Comando) per interagire con le istanze di Mastodon da riga di comando. Toot include un'interfaccia utente da terminaleTUI (Terminal User Interface).
Readme GPL-3.0
Languages
Python 99.6%
Makefile 0.3%