Commit Graph

406 Commits

Author SHA1 Message Date
Tulir Asokan
886690f98f Update dependencies and Go version 2022-11-13 15:28:04 +02:00
Tulir Asokan
26b3c51053
Merge pull request #397 from n-peugnet/fix-message-redraw-first-reaction
Do not recalculate the buffer on first reaction
2022-11-09 18:00:59 +02:00
Tulir Asokan
94c483a0e1
Merge pull request #396 from n-peugnet/fix-baremessage-command-message
Fix baremessages command inverted message
2022-11-09 17:59:57 +02:00
Nicolas Peugnet
9fe2888017 Fix line breaks with URLs in plaintext only messages
By making sure that there is always only one container and no empty text
Entities.
2022-11-01 18:29:32 +01:00
Nicolas Peugnet
83da1df256 Do not recalculate the buffer on new reaction
Only the replacement is needed as the height is already correclty
calculated when drawn.

Fixes #283
2022-11-01 16:06:30 +01:00
Nicolas Peugnet
57fd8ed97c Fix baremessages command inverted message 2022-11-01 15:07:18 +01:00
n-peugnet
1cff17a857 Fix codeblocks doubled newlines in plaintext mode 2022-10-19 13:53:22 +02:00
n-peugnet
58c20698d6 Fix mangled newlines in some code blocks
Because some tokens can contain newlines and not only comment tokens, I
removed the comments specific code to handle newlines in a more generic
way.
2022-10-19 13:53:21 +02:00
Tulir Asokan
71f16b797f
Merge pull request #388 from n-peugnet/newlines-nohtml
Preserve newlines in plain text messages
2022-10-19 14:33:22 +03:00
n-peugnet
77b3fffba1 s/Html/HTML/g 2022-10-19 13:30:16 +02:00
Tulir Asokan
1b097337df
Merge pull request #391 from n-peugnet/fix-add-reaction-increment
Fix redraw of incremented reaction counts
2022-10-18 14:06:52 +03:00
n-peugnet
8c3c4d31f1 Fix redraw of incremented reaction counts 2022-10-16 19:29:33 +02:00
n-peugnet
bfc7dd5196 Preserve newlines in plain text message 2022-10-10 20:30:13 +02:00
n-peugnet
82cf2ee816 Fallback to "plaintext" lexer in codeblock parser
This avoids "malformed message" in the timeline when the lexer for a
given language is not found.
2022-10-10 12:36:51 +02:00
Tulir Asokan
6479ff2e34 Add option to disable clearing screen
Somewhat hacky and might cause other issues, but should fix #365
2022-04-25 00:25:49 +03:00
Tulir Asokan
f00d61c7f0 Adjust unknown command message 2022-04-19 12:02:03 +03:00
Tulir Asokan
030c0c6ec5 Fix rendering empty/malformed messages 2022-04-19 12:01:56 +03:00
Tulir Asokan
1e6174f828 Add test panic command 2022-04-17 23:55:23 +03:00
Tulir Asokan
fa79dc0ca1 Update mauview
Fixes #367
2022-04-17 23:55:18 +03:00
Tulir Asokan
b6fba5230a Enable inline URLs by default on VTE terminals 2022-04-16 19:59:34 +03:00
Tulir Asokan
f1d720e2dc Add /cs and /ssss to help 2022-04-16 19:37:24 +03:00
Tulir Asokan
b3e989ee0f Use xurls instead of custom regex for finding links 2022-04-16 19:26:24 +03:00
n-peugnet
0da7d78138 Display inline code in messages
The Textcolor is also set to make sure it is readable
with black on white themes
2022-04-16 17:53:47 +02:00
Tulir Asokan
e08f23ba65 Only linkify text if inline URLs are enabled 2022-04-15 23:44:59 +03:00
Tulir Asokan
ebe3fcc33c Re-add function for service messages 2022-04-15 23:31:48 +03:00
Tulir Asokan
66233721a2 Get rid of special-cased plaintext rendering. Fixes #273 2022-04-15 23:28:23 +03:00
Tulir Asokan
7bf6785689 Linkify links in HTML messages too 2022-04-15 23:25:12 +03:00
Tulir Asokan
8752b3e848 Linkify links in plaintext messages 2022-04-15 22:51:07 +03:00
Tulir Asokan
fa7a4d8320 Fix BaseEntity.String() 2022-04-15 22:36:06 +03:00
Tulir Asokan
6414b8bd13 Use inline link for file download URL 2022-04-15 22:30:07 +03:00
Tulir Asokan
b9bcfb24ef Open graphical file picker if no path is provided for /upload 2022-04-15 22:14:57 +03:00
Tulir Asokan
97491eb6c0 Add support for inline URLs
Fixes #71
Fixes #168
2022-04-15 22:09:15 +03:00
Tulir Asokan
c2a3940e41 Allow copying any type of message. Fixes #276 2022-04-15 20:44:14 +03:00
Tulir Asokan
e46694a33f Ignore newlines in HTML completely again 2022-04-15 20:29:23 +03:00
Tulir Asokan
5674f076be Add support for sending spoilers 2022-04-15 20:28:58 +03:00
Tulir Asokan
a5bdba204e Add support for rendering spoilers. Fixes #331 2022-04-15 15:14:22 +03:00
Tulir Asokan
751a158fbf Parse HTML when editing messages. Fixes #301 2022-04-15 14:12:01 +03:00
Tulir Asokan
1b4aa60114 Add slightly hacky workaround to fix #316 2022-04-15 14:03:08 +03:00
Tulir Asokan
7425bc25d9 Add lint to CI and pre-commit 2022-04-15 13:13:50 +03:00
Tulir Asokan
89d5b0aa7b Merge remote-tracking branch 'n-peugnet/toggle-autocompletions' 2022-04-15 13:10:14 +03:00
Tulir Asokan
18aeb8ba9d Improve removing unnecessary whitespace in HTML 2022-04-15 12:58:27 +03:00
Tulir Asokan
899bdbc705 Update tcell 2022-04-15 12:53:09 +03:00
n-peugnet
edaed2bf65 Add command autocompletion for toggle 2022-04-11 00:05:37 +02:00
Tulir Asokan
a7562a068a Add variation selectors and trim spaces in reactions 2022-03-30 15:27:05 +03:00
tleb
31e87b584f
Allow sending emoji using plaintext shortcodes in /react (#354) 2022-03-30 15:21:26 +03:00
Tulir Asokan
2a07ff6781 Maybe fix date change messages. Fixes #277 2022-03-07 17:53:01 +02:00
Tulir Asokan
b5543736f6 Mention /toggle without arguments in help page
Closes #347
Fixes #341
2022-03-06 22:44:32 +02:00
Tulir Asokan
daf0067d53 Remove ctrl+a from default keybindings and fix esc 2022-03-06 22:44:02 +02:00
Tulir Asokan
686f7025cb Add room name to topic bar if room list is hidden. Closes #317 2022-03-06 22:34:24 +02:00
Tulir Asokan
f652501fa2 Merge remote-tracking branch '3nprob/keyconfig'
Closes #325
2022-03-06 22:30:35 +02:00