1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-11-03 04:17:21 -05:00
Commit Graph

7 Commits

Author SHA1 Message Date
Daniel Schwarz
89e905cd8b added urwidgets as an optional depenency for 'hyperlinks' extra 2023-09-28 14:22:59 -04:00
Daniel Schwarz
bfdd84870f
Added "toot list_delete" and "toot list_create" commands 2023-03-30 10:01:03 +02:00
Ivan Habunek
8fcdb0b061
Don't limit upper version on wcwidth
Also it had a typo which limited it to 2.0 instead of 0.2, so this
doesn't change anything.
2022-11-12 09:26:31 +01:00
Ivan Habunek
25ff2328c7
Add urwid to requests.txt
fixes #115
2019-09-06 15:04:50 +02: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
Ivan Habunek
1b86cdd404
Drop support for Python 2
It's hard to maintain both versions, having unicode issues in py2, etc.
2017-12-29 11:31:21 +01:00
Ivan Habunek
0c4a5f3aaf
Move requirements to requirements.txt 2017-04-26 11:16:22 +02:00