Commit graph

574 commits

Author SHA1 Message Date
Denis Kasak
e9e5facc7c Add (disabled) test for unbalanced asterisks at the start of line. 2019-01-27 15:25:43 +01:00
Damir Jelić
b61e9ecbd8 tests: Add more format parsing tests. 2019-01-26 16:48:06 +01:00
Damir Jelić
0188664317 tests: Add travis config. 2019-01-25 22:36:25 +01:00
Damir Jelić
549a13f204 tests: Add color input line parsing test. 2019-01-25 21:51:49 +01:00
Damir Jelić
db17c6272d colors: Add html bg color support. 2019-01-24 18:26:19 +01:00
Damir Jelić
7ab8cc6b3d readme: Add more configuration info. 2019-01-24 17:15:37 +01:00
Damir Jelić
955aa7e2d2 contrib: Add the matrix_decrypt helper.
This helper decrypts uploaded files and passes the file to a plumber
(rifle from ranger by default).
2019-01-24 15:33:34 +01:00
Damir Jelić
660344b5b0 upload: Allow matrix_upload to use multiple magic modules. 2019-01-24 15:24:33 +01:00
Damir Jelić
fa0d870deb server: Only set the lag from the response if it's less than the current lag. 2019-01-24 11:56:08 +01:00
Damir Jelić
92ff15943c server: Turn the connected flag into a property.
This way we update the necessary bar items automatically, when we change
the flag.
2019-01-24 11:54:22 +01:00
Damir Jelić
25f4f43b3f server: Only fetch the joined member list for rooms that are missing members. 2019-01-24 11:09:57 +01:00
Denis Kasak
4957e9c89c
Fix Markdown for command segments in README 2019-01-23 22:02:19 +01:00
Damir Jelić
525057c394 readme: Update the readme. 2019-01-23 17:18:51 +01:00
Damir Jelić
9a0f16d068 matrix: Remove TODO file. 2019-01-23 16:39:54 +01:00
Damir Jelić
d56cf219cf Merge branch 'olm-command' 2019-01-23 16:39:19 +01:00
Damir Jelić
5228e50e2e server: Use atomic_write for the device id file. 2019-01-23 16:37:26 +01:00
Damir Jelić
f56279b29d Merge branch 'configurable-reconnect-delay' into olm-command 2019-01-23 14:59:09 +01:00
Denis Kasak
fffb43fda0 Make reconnect delay configurable, per server. 2019-01-23 14:57:57 +01:00
Damir Jelić
58705661f8 server: Don't do full key queries anymore. 2019-01-21 16:05:44 +01:00
Damir Jelić
a34d1e68b0 server: Handle case where we receive a sent message first in a sync. 2019-01-21 00:27:04 +01:00
Damir Jelić
f57b1b32c0 completion: Don't use the Olm class directly. 2019-01-19 16:11:28 +01:00
Damir Jelić
5476d8e500 config: Change the import for the encryption logger. 2019-01-19 15:45:51 +01:00
Damir Jelić
c9ddcf7e78 matrix: Room display name calculation method is now a property. 2019-01-19 12:37:05 +01:00
Damir Jelić
9644ae5b65 matrix: Don't send out read markers with an empty event id. 2019-01-16 21:21:50 +01:00
Denis Kasak
e39b6a82b1 Add test for normalization of spaces in inline code. 2019-01-16 16:37:53 +01:00
Denis Kasak
8bc83842ee Implement MockConfig object.
To be used from tests that use code that expects `G.CONFIG` to be
defined, e.g.

    G.CONFIG = MockConfig()
2019-01-16 16:37:53 +01:00
Denis Kasak
dbf5b1d6bc Compress consecutive spaces in inline code blocks. 2019-01-16 16:37:53 +01:00
Denis Kasak
d6a415e54a Update copyright notices. 2019-01-16 16:37:53 +01:00
Denis Kasak
b235a890e6 Implement Markdown inline code. 2019-01-16 16:37:53 +01:00
Denis Kasak
ae2f70a723 Reword comment: bold -> emphasis 2019-01-16 16:37:53 +01:00
Damir Jelić
544155632f Merge branch 'pr22' into olm-command 2019-01-15 15:20:49 +01:00
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