Commit Graph

60 Commits

Author SHA1 Message Date
Sandra Snan 44b6f9fcf4
Drop Pleroma Emoji Reactions
I made this a list so you can add other types to drop easily but if
this is premature generalization we could make it a scalar instead.
2023-12-26 09:49:08 +01:00
Ivan Habunek 381e3583ef
Add featured tag commands 2023-12-13 08:40:02 +01:00
Ivan Habunek bbf67c6736
Pass tui options through cli options 2023-12-07 19:27:26 +01:00
Ivan Habunek 8e7a90e8da
Remove unused code 2023-12-07 10:23:05 +01:00
Ivan Habunek a4cf678b15
Extract print_divider 2023-12-07 10:06:39 +01:00
Ivan Habunek bf5eb9e7f8
Add --width option 2023-12-07 10:03:33 +01:00
Ivan Habunek bbb5658781
Overhaul output to use click 2023-12-05 11:55:09 +01:00
Ivan Habunek 3530553a06
Add --json option to status and thread commands 2023-11-21 16:51:02 +01:00
Ivan Habunek dd16627c89
Update print_account to take an Account object 2023-11-18 15:42:02 +01:00
Ivan Habunek d91c73520e
Better function name 2023-11-04 07:38:47 +01:00
Ivan Habunek d4f8acb3ce
Resolve circular import by moving get_config_dir 2023-06-28 14:46:35 +02:00
Ivan Habunek 953cad5023
Respect quiet setting 2023-06-28 14:17:35 +02:00
Ivan Habunek 4388175cb4
Respect color setting 2023-06-28 13:56:59 +02:00
Ivan Habunek 3a375b77ee
Add toot status command 2023-06-28 12:23:33 +02:00
Ivan Habunek b2c2f7466e
Fix type hints for older versions of python 2023-06-26 17:00:39 +02:00
Ivan Habunek f3439ad30d
Use entitites to simpliy print functions 2023-06-26 16:59:14 +02:00
Ivan Habunek 7b08e39f00
Decrease the amount of color 2023-06-22 11:33:07 +02:00
Daniel Schwarz 01afbe1f2f
If toot activate is invoked without an account, show list of accounts 2023-06-22 11:30:43 +02:00
Ivan Habunek a19670d0c3
Add integration tests for lists 2023-03-30 12:00:12 +02:00
Ivan Habunek 8624ddb175
Add a simple table printer and apply to lists 2023-03-30 12:00:12 +02:00
Daniel Schwarz bfdd84870f
Added "toot list_delete" and "toot list_create" commands 2023-03-30 10:01:03 +02:00
Daniel Schwarz 08bb7aae71
added "toot list_accounts" command 2023-03-30 10:01:03 +02:00
Daniel Schwarz 855b2a1526
"toot list" console command added 2023-03-30 10:01:02 +02:00
Ivan Habunek 40076ab0c4
Print verified flag 2023-01-30 17:09:41 +01:00
Ivan Habunek baa5a37125
Add custom fields to status output 2023-01-30 17:04:21 +01:00
Ivan Habunek 15d377e889
Expand tests 2023-01-02 11:53:50 +01:00
Ivan Habunek 2d8791e629
Remove coding directives, no longer needed 2022-12-31 09:31:32 +01:00
Ivan Habunek 7be74f9240
Print if no tags are followed 2022-12-31 09:31:32 +01:00
Daniel Schwarz 67b52757a4
Command line support for following hashtags (Mastodon 4+) 2022-12-31 09:02:38 +01:00
Ivan Habunek 02d358907c
Embrace f-strings 2022-12-12 12:47:45 +01:00
Ivan Habunek ef697c3bee
Show only registration date on whois
Time is not that relevant and causes noise
2022-12-12 12:47:45 +01:00
Ivan Habunek 59b98a7f33
Improve colorize 2022-12-02 08:50:34 +01:00
Ivan Habunek 7b4063fddc
Remove use of deprecated status.text_url 2022-11-30 08:55:46 +01:00
Ivan Habunek 942dd36cd6
Fix tests 2022-11-29 10:08:21 +01:00
Ivan Habunek 916b4cc4bf
Extract code for printing a poll 2022-11-29 09:20:00 +01:00
Daniel Schwarz f15310cc75
Display polls in command line status output
Also display your own votes in toot tui poll displays.
2022-11-29 09:03:19 +01:00
Ivan Habunek 654bc06166
Fix formatting 2022-11-24 11:21:01 +01:00
Ivan Habunek d03a329b1a
Improve print_instance 2022-11-24 11:21:01 +01:00
Ivan Habunek 0b671be0c6
Use exisiting functon to parse datetime 2022-11-21 08:35:23 +01:00
Giuseppe Bilotta e171578878 Implement following/followers list retrieval 2022-11-18 08:23:12 +01:00
Andy Loven 3315a87463 Local time in toot timeline 2022-11-08 07:11:26 +01:00
Ivan Habunek cf78cd20ac
Upgrade to v2 search endpoint 2019-09-22 22:08:04 +02:00
Ivan Habunek 367ced2eef
Don't use ANSI color codes when not desired
Which is when not supported by terminal or when not in a tty.
2019-09-06 15:03:47 +02:00
Ivan Habunek 474d9c432f
Move notification printing to output module
Removed sorting, since notifications are already sorted.
2019-04-16 14:12:42 +02:00
Ivan Habunek 10595be865
Show full account name in timeline 2019-02-15 14:13:11 +01:00
Ivan Habunek e6d585ae5d
Nicer timeline output 2019-02-14 17:31:48 +01:00
Ivan Habunek 996228d224
Employ wcstring utils to improve rendering 2019-02-14 15:47:40 +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
Balazs Nadasdi ee417df60e Status ID + thread view
- Status ID on timeline list view
 - thread command to view a complete thread
   Display order:
    - ancestors
    - status
    - descendants
2019-01-19 19:28:17 +01:00
Denis Laxalde 0f6bd920c3 Replace ' by "'" before parsing HTML
Beautiful will does not parse HTML entities like `'` as we expect
and the previous logic of replacing this *after* HTML parsing occurred
did not produced expected results.

To illustrate this, we change data in "test_timeline" to include a
literal `'` as it sometimes occur in data returned by Mastodon API.
New HTML content is:

    <p>The computer can&apos;t tell you the emotional story [...] </p>

Beautiful will parse this as as:

    <p>The computer can&amp;apost tell you the emotional story [...] </p>

which is not what we expect.

We fix this by replacing `&apos;` *before* HTML parsing by Beautiful.
Since test data in "test_timeline" got updated we also add an extra
assertion checking that part of the content with a literal "'" is
(still) properly rendered.
2019-01-01 23:14:54 +01:00