Commit Graph

401 Commits

Author SHA1 Message Date
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
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
Tulir Asokan
b2ca5ed37e Add support for editing message in external editor
Closes #313
Fixes #311
2022-03-06 22:13:57 +02:00
Tulir Asokan
6525f9ec66 Add rainbownotice command 2022-02-16 19:38:10 +02:00
3nprob
5e3ccb8c53 Configurable keybindings 2021-12-08 01:26:56 +09:00
Tulir Asokan
98db812df1 Add config flags for backspace behavior. Fixes #322 2021-11-11 00:26:53 +02:00
Tulir Asokan
2cff2cdc22 Adjust things in timestamp toggle 2021-09-19 20:59:59 -04:00