Commit graph

791 commits

Author SHA1 Message Date
James E. Blair
04be5a8764 Support short names for OFTC bridge 2021-05-25 20:11:37 -07:00
Filip Stedronsky
0d491bd3a6 Fix shortnames for Discord & Slack puppetting bridges 2021-05-01 15:59:47 +02:00
Toni Spets
b7e502526b Support Heisenbridge short names 2021-04-25 13:57:22 +03:00
Mateusz Piotrowski
2b668080bd
Add FreeBSD installation instructions for libolm 2021-04-21 22:36:33 +02:00
Matthijs Kooijman
d24e6ce6a9 colors: Do not use [] indexing on re.match objects
This indexing (i.e. __getitem__) introduced in Python 3.5 as an alias of
the group method, so using it breaks this plugin on older Python
versions. In particular, messages containing urls cannot be sent and
result in an exception:

	File "matrix/colors.py", line 106, in <lambda>
	    lambda m: "a" * len(m[0]),
	TypeError: '_sre.SRE_Match' object has no attribute '__getitem__'

This commit replaces the use of the index operation / __getitem__ with
the group method, which is equivalent but supported on all python
versions.
2021-04-03 22:20:57 +02:00
Antoni Boucher
ef09292005 Fix condition to not force the user through the SSO process
Fix #260
2021-02-18 08:08:58 -05:00
root
69cbba8839 Only require 'future' for python <3.2 2021-01-25 09:37:16 +01:00
Damir Jelić
e0cae8b418 buffer: The encryption warning sign is in the look section. 2020-12-15 22:41:34 +01:00
Yuri D'Elia
7239d48b95 Use the configured warning sign in the buffer prefix 2020-11-20 18:04:19 +01:00
Damir Jelić
81be90c7c9 Merge branch 'clear_backlog_pending_on_error' 2020-11-11 14:56:09 +01:00
user202729
8ee1a77d16 Only clear backlog_pending flag if the error is an instance of RoomMessagesError 2020-11-11 20:41:17 +07:00
user202729
a09aa4d4fc Set backlog_pending to false on error 2020-11-07 22:00:20 +07:00
Yuri D'Elia
96da8485d9 Remove pointless format 2020-10-12 02:00:11 +02:00
Yuri D'Elia
e06a4dced4 Use xdg-open instead of rifle as the default plumber 2020-10-12 01:43:27 +02:00
Yuri D'Elia
fc69f77923 Allow saving attachment without running a plumber
Add a second (optional) positional argument to specify the destination
file. If a file has been specified, just save without running the
default plumber.

Specifying a custom plumber allows to both save and run the plumber.
2020-10-12 01:41:05 +02:00
Damir Jelić
e43edbcbc9 Merge branch 'python36' into master 2020-10-11 10:40:06 +02:00
Damir Jelić
0a62f28ac1 Merge branch 'expose_canonical_alias' into master 2020-10-11 10:39:22 +02:00
kraem
704fdc2f70
buffer: Expose canonical_alias as localvar in buffer 2020-10-03 22:50:49 +02:00
Sandro Santilli
e695e6ef09 Fine-tune Deque dependency in python3 2020-09-24 22:07:01 +02:00
Sandro Santilli
0f80ac2821 Document that python 3.6.0 is needed, for python3 (for Deque)... 2020-09-24 21:47:44 +02:00
Antonin Delpeuch
639bdfb3bc
Fix leading whitespace in "/python version" command 2020-09-24 16:27:42 +02:00
Tom Smeding
2a79d9c38b Another fix to the a hypothesis precondition
Addition to 91b42e8 since I messed up
2020-08-30 20:02:20 +02:00
Tom Smeding
91b42e8671 Fix test hypothesis precondition 2020-08-29 20:19:01 +02:00
Tom Smeding
73e9d1d9d3 Use True as default value for markdown_input in tests 2020-08-29 20:18:56 +02:00
Tom Smeding
e74a5a2041 Toggle markdown parsing with matrix.look.markdown_input 2020-08-25 22:31:57 +02:00
Damir Jelić
2b21c0cb5c Merge branch 'cursor-reply' 2020-07-06 20:50:31 +02:00
Marco Sirabella
2171be802f
Introduce INSTALLDIR directory for DRY 2020-07-03 09:46:11 -04:00
Marco Sirabella
cbf188cd3d
Have directory be created first in makefile install rules
See: https://www.gnu.org/software/make/manual/make.html#Prerequisite-Types
2020-07-03 09:42:33 -04:00
Tom Smeding
fab8bb37bf Reply to messages with 'r' binding in cursor mode 2020-07-02 17:51:18 +02:00
Tom Smeding
de1d3d4664 Make buffer name prefix a global constant 2020-07-02 17:27:20 +02:00
Tom Smeding
439389db4d Use G.SCRIPT_NAME for buffer name namespace prefix 2020-07-02 16:40:12 +02:00
Tom Smeding
00f5849500 Namespace buffers with "matrix."
This allows setting key bindings specifically for matrix buffers
2020-07-02 16:29:01 +02:00
Damir Jelić
cd90256e69 server: Always use the option initial sync events for the initial sync. 2020-06-22 19:42:08 +02:00
Damir Jelić
8b5ae9d80d server: Lower the sync limit. 2020-06-22 19:42:08 +02:00
Denis Kasak
71b7f79317 Make nick prefix (&, @, +) colour configurable. 2020-06-08 20:41:59 +02:00
Denis Kasak
72b0cd959b Fix heading level. 2020-06-08 20:41:59 +02:00
Denis Kasak
5532d2ad02 README: Add information about using go.py. 2020-06-08 20:41:59 +02:00
Tom Smeding
7fdd7eb910 Use URLs, not URL's 2020-06-08 20:41:59 +02:00
Tom Smeding
d37e08cce2 Don't process markdown in URL's 2020-06-08 20:41:59 +02:00
Denis Kasak
172826ea6b Improve wording of README section on typing notifications. 2020-06-07 14:44:32 +02:00
Denis Kasak
16825451c7 Fix nicklist grouping of users with the + prefix.
The wrong comparison operator was used. Most likely a leftover from when
the function used power levels directly.
2020-06-07 14:37:42 +02:00
Tom Smeding
397acef2bd Escape manually entered html characters
Previously, the behaviour was inconsistent; if there was no other
formatting, weechat-matrix doesn't send formatted_body, and Riot would
display the message as-is. If there _was_ other formatting,
formatted_body is sent without escaping of the HTML characters, so that
Riot would interpret them as HTML.

This makes both cases consistent, using the first behaviour.
2020-06-04 15:08:45 +02:00
Denis Kasak
126c55b3ea
Merge pull request #204 from tomsmeding/reply-quotes
Allow quotes in replied-to messages
2020-06-03 11:31:31 +00:00
Tom Smeding
a5e6434c31
Fix handling of backslashes in relation to code blocks (#203)
Backslashes are now correctly preserved inside code blocks while still allowing the user to escape a backtick. The handling of backticks and bold/italic wrappers was unified so that they share the same escaping code.

Backslashes only escape Markdown wrapper characters (*, _, `). If they are encountered before another character, they are considered literal.
2020-06-03 11:06:16 +00:00
Tom Smeding
d5636bd186 Require text in reply-matrix 2020-06-02 09:42:28 +02:00
Tom Smeding
6aff7ddcbb Escape quotes in reply/redact completion message hints 2020-06-02 09:41:35 +02:00
Denis Kasak
3cf5cc077e Update project status in the README. 2020-05-31 14:44:04 +02:00
Denis Kasak
5191b596f3 Allow mixing of code and colours with other attrs when outputting HTML. 2020-05-31 14:44:04 +02:00
Tom Smeding
170c5811a3
Better half-markdown (#202)
Better half-markdown.

This fixes some issues with the current semi-markdown-parser to make life easier until a full markdown parser is implemented.

Changes:
- A * that would normally start italics but isn't matched by a closing *, is now left alone.
- A ` that would normally start a code block but isn't matched by a closing `, is now left alone.
- Backslashes should work as expected.
- Support for **bold** and the alternative _italic_ style.
2020-05-31 12:09:29 +00:00
Tom Smeding
0ce5b65835 Properly handle newlines in quote blocks 2020-05-29 21:29:44 +02:00