Denis Kasak
a8ea6504e9
Fix parsing of unclosed Markdown delimiters.
...
Always append the last segment of the message with default attributes.
This prevents unclosed Markdown delimiters from starting Markdown
effects (for instance, `*foobar` won't display "foobar" as
emphasized/italicised).
Markdown parsing is still half-broken as it isn't a proper Markdown
parser, but this improves the situation somewhat.
2019-01-15 14:15:23 +01:00
Damir Jelić
3efd866052
buffer: Limit the number of lines we search when replacing lines.
2019-01-15 13:51:20 +01:00
Damir Jelić
11b960e22c
server: Fix device printing if some fields are None.
2019-01-14 17:12:49 +01:00
Damir Jelić
062a736217
Merge branch 'coloring' into olm-command
2019-01-13 13:46:13 +01:00
Denis Kasak
dcc5a3e530
Make displaying preformatted code as blocks configurable.
2019-01-13 13:45:25 +01:00
Denis Kasak
26f7dae990
Make code block margin configurable.
2019-01-13 13:45:25 +01:00
Denis Kasak
a6cf2e1527
Stylize code blocks as actual boxes with margins.
2019-01-13 13:45:25 +01:00
Denis Kasak
141814bb84
Support full color pair (fg/bg) for each color.
2019-01-13 13:45:25 +01:00
Denis Kasak
041c15e811
Be more careful when stripping newline added by pygments.
...
Calls rstrip() instead of cutting of the last character blindly, so
that:
1. Potentially multiple trailing whitespace of any kind will get
stripped.
2. We don't chop off a non-whitespace character, in case pygments'
changes.
2019-01-13 13:45:25 +01:00
Denis Kasak
96e8f5246b
Improve handling of code blocks.
...
* Don't try to guess the language of code blocks without a language
specifier ("untagged" blocks).
* Colour untagged and inline code blocks (and make the colour
configurable).
* Reflow inline code blocks.
2019-01-13 13:45:25 +01:00
Denis Kasak
6203a84553
Use uniform spelling: colour -> color.
2019-01-13 13:45:15 +01:00
Damir Jelić
a75ce9c636
buffer: Fix buffer lines updating if the new string is an empty string.
...
This should fix the buffer sorting bug where the prefix isn't properly
updated.
2019-01-13 13:42:34 +01:00
Damir Jelić
4eb1d52d81
matrix: Add initial upload support.
2019-01-13 12:33:25 +01:00
Damir Jelić
7e0215702c
server: Refactor message sending.
2019-01-13 12:33:25 +01:00
Damir Jelić
ab2ba0f9ae
globals: Add a logbook based logger.
2019-01-13 12:33:25 +01:00
poljar
5b6fc50877
Merge pull request #20 from dkasak/olm-command
...
Fix collections ABC deprecation warning.
2019-01-09 15:14:57 +01:00
Denis Kasak
98f233defd
Fix collections ABC deprecation warning.
2019-01-09 15:06:33 +01:00
Damir Jelić
2a68120d09
buffer: Don't move the unread marker for the current buffer.
2018-12-10 20:10:58 +01:00
Damir Jelić
cf178a32c4
server: Send read markers after sending a message.
2018-12-10 20:10:36 +01:00
Damir Jelić
eabaee6a1b
buffer: Handle fully read account data events.
2018-12-10 18:55:01 +01:00
Damir Jelić
1fe0484b96
buffer: Ignore unknown events.
2018-12-03 22:39:50 +01:00
Damir Jelić
9d3b624733
server: Add support for sending out read markers.
2018-12-03 22:28:49 +01:00
Damir Jelić
33a96485ee
buffer: Limit the display name to 50 characters.
2018-11-30 12:53:01 +01:00
Damir Jelić
be0aae605f
buffer: Use the display name for slack users as well.
2018-11-30 12:50:39 +01:00
Damir Jelić
199e6de2a7
commands: Add initial room command.
2018-11-29 17:10:42 +01:00
Damir Jelić
66765f96d8
buffer: Small documentation fix.
2018-11-29 17:10:42 +01:00
Damir Jelić
624ecc4d77
config: Add typing notice conditions.
2018-11-29 17:10:42 +01:00
Damir Jelić
45ebb921a9
bar_items: Dont' display own user as typing.
2018-11-29 15:54:43 +01:00
Damir Jelić
1298a2c910
server: Initial typing notice sending support.
2018-11-29 15:54:13 +01:00
Damir Jelić
c8968020a9
Update gitignore.
2018-11-23 18:39:03 +01:00
Damir Jelić
b392989a5e
server: Remove unused imports.
2018-11-23 18:36:43 +01:00
Damir Jelić
a0199109be
buffer: Store undecrytped events so we can try to decrypt them later.
2018-11-22 13:52:09 +01:00
Damir Jelić
bdb7f4509e
buffer: Remove dead code.
2018-11-21 19:18:20 +01:00
Damir Jelić
d802aa30ae
server: Send a hsignal when a new room key is received.
2018-11-21 19:17:57 +01:00
Damir Jelić
47e71ce925
buffer: Add the session id to the line tags.
2018-11-21 19:17:34 +01:00
Damir Jelić
b9e60d6ecf
bar_items: Use the room member_count method for nicklist_count.
2018-11-21 17:03:38 +01:00
Damir Jelić
7bd0c96c57
server: Remove special case for sync request lag calculation.
...
This is now handled in nio.
2018-11-15 17:19:55 +01:00
Damir Jelić
901a392f5a
server: Don't try to fetch members if the server is disconnected.
2018-11-15 17:19:21 +01:00
Damir Jelić
58bf197913
buffer: Fix the editing of actions for already printed lines.
2018-11-15 17:18:49 +01:00
Damir Jelić
e4377c6d1a
bar_items: Make the disconnect sign configurable.
2018-11-15 11:08:39 +01:00
Damir Jelić
14f4da0708
bar_items: Make the encrypted room sign configurable.
2018-11-15 11:07:35 +01:00
Damir Jelić
c1037620fa
bar_items: Make the busy sign configurable.
2018-11-14 20:07:39 +01:00
Damir Jelić
d93184f2ed
server: Don't delay consecutive syncs by two seconds.
2018-11-12 15:32:59 +01:00
Damir Jelić
0e3c0724e0
globals: Increase MAX_EVENTS.
2018-11-12 15:31:45 +01:00
Damir Jelić
a638ef3e5f
server: Remove some debug output.
2018-11-12 15:31:23 +01:00
Damir Jelić
6f29d1154d
server: Add some type definitions.
2018-11-12 15:30:56 +01:00
Damir Jelić
7e15b04f98
config: Add the lag_min_show option.
2018-11-12 15:30:28 +01:00
Damir Jelić
a08400c975
buffer: Don't put a space in the matrix_id tag.
2018-11-09 17:57:26 +01:00
Damir Jelić
f1e96f7a28
Merge branch 'pr-17' into olm-command
2018-11-07 13:52:14 +01:00
Damir Jelić
2022151bd0
tests: Add initial buffer tests.
2018-11-07 13:50:55 +01:00