chiark / gitweb /
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Simon Tatham [Thu, 7 Dec 2023 07:45:30 +0000 (07:45 +0000)]
Prevent accidentally stacking multiple [ESC][R].
Now, if you [ESC] to get to where you already were, it will just go
back to the existing stack entry.
(But maybe this still isn't strong enough? Perhaps we need to search
for it all the way up?)
Simon Tatham [Thu, 7 Dec 2023 07:34:35 +0000 (07:34 +0000)]
Actually show keypresses in menus
Simon Tatham [Thu, 7 Dec 2023 07:25:15 +0000 (07:25 +0000)]
Try out the traditional ESC X X to exit.
Although I might go back to letting you [Q] out of the Main Menu; not
sure yet.
Simon Tatham [Thu, 7 Dec 2023 07:18:29 +0000 (07:18 +0000)]
Add a Main Menu, at last.
Now that you can [RET] out of the home timeline, it's handy!
Simon Tatham [Thu, 7 Dec 2023 07:14:08 +0000 (07:14 +0000)]
Fix getting stuck in the logs menus
Simon Tatham [Thu, 7 Dec 2023 07:12:48 +0000 (07:12 +0000)]
Correct handling of [RET] in files and menus.
(a) turned out curses was returning it as \n not \r
(b) also, in a file, it should go down a line _or exit_.
Simon Tatham [Thu, 7 Dec 2023 07:00:37 +0000 (07:00 +0000)]
Amazingly horrible regexes for scanning post content.
Simon Tatham [Thu, 7 Dec 2023 05:35:32 +0000 (05:35 +0000)]
Support <em> in post content.
I just received a reply containing one.
Simon Tatham [Thu, 7 Dec 2023 05:33:13 +0000 (05:33 +0000)]
Show a Re: header on reply posts.
Simon Tatham [Thu, 7 Dec 2023 05:22:03 +0000 (05:22 +0000)]
Space out the ... at the end of a boost/fave record.
Simon Tatham [Thu, 7 Dec 2023 05:18:52 +0000 (05:18 +0000)]
Don't show @mentions in Ego Log post summaries.
That way we get in as much as possible of the message _content_, which
should help disambiguate posts that are part of a long conversation
with the same user(s).
Simon Tatham [Wed, 6 Dec 2023 19:03:26 +0000 (19:03 +0000)]
Fix missing 'you' after 'followed'.
Simon Tatham [Wed, 6 Dec 2023 19:03:14 +0000 (19:03 +0000)]
Make the ego feed refresh.
Simon Tatham [Wed, 6 Dec 2023 19:02:19 +0000 (19:02 +0000)]
*Really* fix that crash on receiving a mention.
Commit
35ba8f325faf3e3 replaced the wrong thing with a different wrong
thing, ahem.
Simon Tatham [Wed, 6 Dec 2023 12:57:27 +0000 (12:57 +0000)]
First cut at an 'ego log'.
Shows all the indications that people like me. Lives at the same place
Mono's Edit Log lives.
Formatting wants some work:
- maybe trim out @mentions from the front, so we quote more actual text
- do something to make log entries more nicely separated
Simon Tatham [Wed, 6 Dec 2023 12:28:43 +0000 (12:28 +0000)]
Fix a crash on receiving a mention.
self.mentions_feed is a function; mentions_feed is the value it returned.
Simon Tatham [Wed, 6 Dec 2023 07:34:22 +0000 (07:34 +0000)]
Cope with lack of XDG config directories.
If the host system is a pure server which you log into via ssh, it may
not have these at all. Hard-code the default ~/.config as a fallback.
Simon Tatham [Wed, 6 Dec 2023 07:33:31 +0000 (07:33 +0000)]
UNTESTED: beep and go to [ESC][R] on a message.
Simon Tatham [Wed, 6 Dec 2023 07:30:03 +0000 (07:30 +0000)]
Now we can read 'messages'! (aka mentions)
Simon Tatham [Wed, 6 Dec 2023 06:52:06 +0000 (06:52 +0000)]
Do SIGWINCH handling ourselves.
It broke as a side effect of going into nodelay mode, I think because
our select loop didn't know to check curses's flag.
Simon Tatham [Wed, 6 Dec 2023 06:28:28 +0000 (06:28 +0000)]
Set curses nodelay mode.
Otherwise, pressing M-g (in pterm, which curses will interpret as ESC
g, just as I'd want it to) delivers the ESC, but leaves the g in
curses's internal buffer, which we don't empty before diving back into
the select loop.
Simon Tatham [Tue, 5 Dec 2023 13:05:36 +0000 (13:05 +0000)]
Detect updates and append them to the file.
Simon Tatham [Tue, 5 Dec 2023 13:05:23 +0000 (13:05 +0000)]
Paging around a file now works!
Simon Tatham [Tue, 5 Dec 2023 07:09:40 +0000 (07:09 +0000)]
VERY UNFINISHED attempt to start reading a file in curses.
Simon Tatham [Mon, 4 Dec 2023 20:06:04 +0000 (20:06 +0000)]
Test of streaming
Simon Tatham [Mon, 4 Dec 2023 19:58:56 +0000 (19:58 +0000)]
UNTESTED attempt to make bidirectional incremental feeds
Simon Tatham [Sun, 3 Dec 2023 07:18:06 +0000 (07:18 +0000)]
Change my mind about account name policy.
I think the leading @ is only for @mentioning people, and it's only
out of the Mastodon context that people put it on by habit as a hint
that they're talking about the fediverse.
Also, I think I prefer my account names fully qualified, so now I have
access to the correct instance domain, I'll put it in From lines where
the server didn't send one at all.
Simon Tatham [Sun, 3 Dec 2023 07:14:29 +0000 (07:14 +0000)]
Avoid ugly double blank line in media-only posts.
Simon Tatham [Sat, 2 Dec 2023 19:21:50 +0000 (19:21 +0000)]
Cope with newlines in media descriptions.
Simon Tatham [Sat, 2 Dec 2023 19:15:35 +0000 (19:15 +0000)]
Separate logical instance domain from physical URL.
Some instances don't have the same domain name, e.g. Julia Evans's
personal instance lives at https://social.jvns.ca but the domain name
for username purposes is user@jvns.ca. Now I think we're correctly
distinguishing the two concepts.
Simon Tatham [Sat, 2 Dec 2023 18:59:50 +0000 (18:59 +0000)]
First cut at interleaving home timeline with mentions.
It took so many tries to get that merge algorithm working that I
managed to get '429 Too many requests' from the server. I hope that's
sorted out tomorrow. Perhaps I should call it a night for now.
Simon Tatham [Sat, 2 Dec 2023 18:59:38 +0000 (18:59 +0000)]
Log JSON responses more usefully
Simon Tatham [Sat, 2 Dec 2023 18:24:53 +0000 (18:24 +0000)]
Proof of concept using Link response headers for pagination.
Simon Tatham [Sat, 2 Dec 2023 18:13:55 +0000 (18:13 +0000)]
Remove redundant setup calls.
Simon Tatham [Sat, 2 Dec 2023 18:12:39 +0000 (18:12 +0000)]
Proof of concept fetching my notifications timeline.
Simon Tatham [Sat, 2 Dec 2023 18:01:26 +0000 (18:01 +0000)]
Colourise spaces properly.
It showed up in that error report, and it would have been nasty
copy-pasting as well.
Simon Tatham [Sat, 2 Dec 2023 17:58:05 +0000 (17:58 +0000)]
Report markup parse failures inline.
Don't want to crash the whole client for them!
Simon Tatham [Sat, 2 Dec 2023 17:48:11 +0000 (17:48 +0000)]
Handle <strong> tags
Simon Tatham [Sat, 2 Dec 2023 17:38:25 +0000 (17:38 +0000)]
Show media attachments in posts
Simon Tatham [Sat, 2 Dec 2023 17:28:02 +0000 (17:28 +0000)]
Show boosted toots sensibly.
Simon Tatham [Sat, 2 Dec 2023 17:21:50 +0000 (17:21 +0000)]
Now actually use the login details.
The public timeline is replaced with my home timeline, which I can now
access because my client is logged in.
Simon Tatham [Sat, 2 Dec 2023 17:14:16 +0000 (17:14 +0000)]
Implemented login.
Simon Tatham [Sat, 2 Dec 2023 16:16:37 +0000 (16:16 +0000)]
Start of a curses UI.
Just does setup and teardown, but I've at least integrated the
ColouredString system from text.py into it
Simon Tatham [Sat, 2 Dec 2023 13:52:23 +0000 (13:52 +0000)]
Support hashtags, mentions and code. <pre> still to do.
Simon Tatham [Sat, 2 Dec 2023 13:37:01 +0000 (13:37 +0000)]
Add some rendering unit tests
Simon Tatham [Sat, 2 Dec 2023 12:30:50 +0000 (12:30 +0000)]
Start colourising the rendering
Simon Tatham [Fri, 1 Dec 2023 17:39:19 +0000 (17:39 +0000)]
First cut at printing post content.
Simon Tatham [Fri, 1 Dec 2023 09:03:52 +0000 (09:03 +0000)]
Also display From: lines.
Simon Tatham [Fri, 1 Dec 2023 09:00:43 +0000 (09:00 +0000)]
Start of a Monochrome-like Mastodon client.
Currently fetches a public timeline, and formats Mono-style post
separator lines without any colour. Much yet to do!