1
0
mirror of https://github.com/ihabunek/toot synced 2024-12-23 23:52:40 +01:00
Commit Graph

20 Commits

Author SHA1 Message Date
Lexi Winter
ec48e8eed8 tui: allow editing toots
Add new [E]dit command to the timeline: opens an existing toot to allow
editing it.  Since this is more or less the same operation as posting a
new toot, extend the StatusComposer view to support this rather than
implementing a new view.

Add a new api method, fetch_status_source(), to implement the
/api/v1/statuses/{id}/source endpoint used to fetch the original post
text.
2024-01-01 14:16:09 +00:00
Lexi Winter
5dd53b1b9c tui: honour user's default visibility preference
Mastodon allows the user to configure a default visibility which should
apply to all clients.  This setting is returned by the
/api/v1/preferences method.

Fetch the user preferences when the TUI starts, and use it to set the
default visibility when composing a new toot.  The preference can be
overridden by a new command-line option, toot tui --default-visibility=.
If neither the preference nor the option are set, fall back to
get_default_visibility().
2023-12-31 18:20:47 +00:00
Ivan Habunek
f72e4ba844
Move code from toot.tui.base to toot.tui 2023-12-14 11:35:52 +01:00
Ivan Habunek
4dfab69f3b
Add tui command 2023-12-03 13:53:52 +01:00
Ivan Habunek
219225ba8a
Remove named colours
This is a prerequisite for configurable styling, since we don't want to
override "green" style to be yellow and such.
2023-07-07 13:57:19 +02:00
rogarb
d81eaaad0d
Inherit visibility when replying in TUI
When replying to a toot, the visibility gets set to default: if the toot
has a direct visibility, the visibility in reply will be changed to the
default one, whereas it should stay in direct mode.
2023-03-05 09:45:46 +01:00
Ivan Habunek
e07be634f6
Extract code for getting default visibility 2022-12-28 09:19:25 +01:00
Lim Ding Wen
8582c8ed62
TOOT_VISIBILITY controls default visibility 2022-12-28 09:12:05 +01:00
Lim Ding Wen
f91bfa0c62
TUI no longer mentions self when replying
This brings it more in-line with Mastodon v4's web UI.
2022-12-28 09:06:14 +01:00
Lim Ding Wen
69718f41f6
Reply to original account instead of boosting account
Affects the "replying to" TUI label, and the mention auto-generated.
This brings it more in-line with Mastodon web behaviour.
2022-12-28 09:03:11 +01:00
Ivan Habunek
60efc13338
Implement character count indicator when composing
Attempts to load max char count from the server on init.

issue #121
2020-01-03 09:15:11 +01:00
Ivan Habunek
d595cc5140
Don't use fstrings to keep support with python<3.7
fixes #131
2019-09-23 16:51:04 +02:00
Denis Laxalde
9623219959 Include mentions and replied-to account in compose text
We add a "mentions" attribute to Status. Then when composing a reply, we
fill the edit text of the compose box with the account name of status
being replied to and possibly include mentions at the bottom of the edit
text. Initial cursor position is set after replied account name.
2019-09-18 21:42:55 +02:00
Ivan Habunek
51afcf7e34
Add goto hash timeline 2019-09-03 15:40:48 +02:00
Ivan Habunek
07e6c372bc
Prepare for context menu 2019-09-03 15:40:48 +02:00
Ivan Habunek
31462fe6f8
Implement replies 2019-09-03 15:40:46 +02:00
Ivan Habunek
9c74c1d9e6
Housekeeping 2019-09-03 15:40:46 +02:00
Ivan Habunek
5ec8d9411d
Propagate visibility when posting status 2019-09-03 15:40:45 +02:00
Ivan Habunek
9aadec6cfb
Add option to set status visibility 2019-09-03 15:40:44 +02:00
Ivan Habunek
366e9382d3
Implement posting statuses 2019-09-03 15:40:44 +02:00