Commit graph

4177 commits

Author SHA1 Message Date
7b2b21be30
plugins/reorder: fix GapTab serialization
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-14 17:20:03 +02:00
7b5c44b361 Merge branch 'reorder-plugin-handle-corner-case' into 'master'
Fix an issue where the reorder plugin would not create gaps

See merge request poezio/poezio!99
2020-05-13 00:03:12 +02:00
mathieui
52ad2c0235 Fix an issue where the reorder plugin would not create gaps 2020-05-12 23:57:59 +02:00
da235f286d Merge branch 'fix-composing-tab-state-case' into 'master'
Fix a bug when the value of show_composing_chat_state is not lowercase

See merge request poezio/poezio!98
2020-05-12 23:33:54 +02:00
mathieui
afc6da052e Fix a bug when the value of show_composing_chat_state is not lowercase 2020-05-12 23:28:09 +02:00
mathieui
ef38ff8f6a Merge branch 'feature/unique-prefix-tab-names' into 'master'
Unique prefix tab names

Closes #3525

See merge request poezio/poezio!94
2020-05-12 22:32:50 +02:00
Jonas Schäfer
1e7ce43789 Add keyboard action to go to room by unique prefix
This is especially useful in combination with the
newly introduced `unique_prefix_tab_names` config option. It has
no default binding.
2020-05-12 22:26:51 +02:00
Jonas Schäfer
a15e52dc39 Add option to show only the unique prefix of tab names
When the set of tabs used fluctuate, the memory of which number
belongs to which chat becomes difficult to work with. Non-numbers
can be used to navigate tabs with `/win`, however, it is difficult
to know which letters are required to select a certain tab.

This option introduces a display mode for tab names where only the
unique prefix of the tab name is shown, saving space and providing
with a minimal string which can be used with `/win`.
2020-05-12 22:26:51 +02:00
Jonas Schäfer
eab4615fe0 Add /wup command
The `/wup` command selects a tab by the prefix of its name only.

The `/win` will do a substring match based on the first tab
going from the current tab which matches the substring. This can
be confusing, especially since `/win` matches on different types
of tab "names" not only on the name which is shown in the info bar
by default.

The `/wup` command exclusively matches based on the prefix of the
tab.name string. This has the advantage that it is consistent,
deterministic and independent of the currently selected tab.
2020-05-12 22:26:51 +02:00
Jonas Schäfer
c1863addfd Add function to find a tab by unique prefix 2020-05-12 22:26:51 +02:00
Jonas Schäfer
d4d0c1a19f Add function to calculate unique prefix of two strings 2020-05-12 22:26:51 +02:00
1b974d2d9a Merge branch 'upload-exceptions' into 'master'
plugins/upload: handle more exceptions

See merge request poezio/poezio!97
2020-05-12 02:02:38 +02:00
8b385a0c99
plugins/upload: handle more exceptions
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-12 01:58:37 +02:00
ac3fb69574 Merge branch 'muc-barejid-info' into 'master'
poezio.core.handlers: Treat MUC Barejid message as info

See merge request poezio/poezio!96
2020-05-12 00:21:41 +02:00
17585c6b65
poezio.core.handlers: Treat MUC Barejid message as info
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-12 00:10:27 +02:00
406a10bf15 Merge branch 'move-deny-remove-global-scope' into 'master'
Move /deny and /remove global scope

See merge request poezio/poezio!93
2020-05-10 00:30:56 +02:00
mathieui
a1c8efdfb2 Move /deny and /remove to global scope as well 2020-05-10 00:11:23 +02:00
mathieui
e03fb0b3ce Fix completion and function names for /accept and /add 2020-05-10 00:11:23 +02:00
mathieui
eda88a59a6 Add back the deny_anonymous decorator to /add and /accept 2020-05-09 23:14:26 +02:00
mathieui
2eb362ffe8 Move the deny_anonymous decorator to the poezio.decorators module 2020-05-09 23:12:57 +02:00
mathieui
f68fa1da5e Merge branch 'split-message-rendering' into 'master'
split message rendering

See merge request poezio/poezio!48
2020-05-09 22:58:17 +02:00
ca85411af0 affiliations: Use InfoMessage in add_message call
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-09 19:46:17 +02:00
4eb395c215 Don't highlight on reflected messages
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-09 19:46:17 +02:00
446fa8ea82 Ensure muc history messages are considered history
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-09 19:46:17 +02:00
961f6c1755 Fix highlights by introducing a delayed property on ui.types.Message
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-09 19:46:17 +02:00
mathieui
cf026cf1b1 Fix tests for message rendering 2020-05-09 19:46:17 +02:00
mathieui
3a2aedf74c Fix /me messages 2020-05-09 19:46:17 +02:00
mathieui
c0df35f3b3 Fix a bug in message edition
(out of bounds access for no reason)
2020-05-09 19:46:17 +02:00
mathieui
525edff66f Fix a bug when using /dump in xmltab 2020-05-09 19:46:17 +02:00
mathieui
3d13d1d994 Typing improvements 2020-05-09 19:46:17 +02:00
mathieui
cad5d0d88a WIP: update muctab.add/log message 2020-05-09 19:46:17 +02:00
mathieui
06718b6c0b Add the new package to setup.py 2020-05-09 19:46:17 +02:00
mathieui
a5e9280047 Pass a message to add_message instead of messed up kwargs everywhere
Changes LOTS of things
2020-05-09 19:46:17 +02:00
mathieui
fefbb0b088 Only keep one TextWin alive 2020-05-09 19:46:17 +02:00
mathieui
558f4fa8b3 Fix attention handler 2020-05-09 19:46:17 +02:00
mathieui
076314fc21 Add tests for ui-related funcs 2020-05-09 19:46:17 +02:00
mathieui
5bc510eafa Fix an issue in xmllog rendering due to wrong offset
and improve tests to catch that
2020-05-09 19:46:17 +02:00
mathieui
32beeca480 Add tests for the new modules 2020-05-09 19:46:17 +02:00
mathieui
80ce8453f5 Rewrite part of the message handling/rendering 2020-05-09 19:46:17 +02:00
mathieui
a5ef6ec910 Add a context manager in Win for colored text 2020-05-09 19:46:17 +02:00
mathieui
41127e50ab Move message rendering code to Message.render()
Also:

- rename format_chars to FORMAT_CHARS because it’s static constant
- move Line, Message, and a few funcs/consts to a new poezio.ui module
2020-05-09 19:46:17 +02:00
mathieui
d22b4b8c21 Merge branch 'allow-pylint-failures' into 'master'
Allow pylint failure due to false positives

See merge request poezio/poezio!92
2020-05-09 19:41:21 +02:00
mathieui
31afd58354 Allow pylint failure due to false positives
…………
2020-05-09 19:31:20 +02:00
mathieui
7ec16d97ee Merge branch 'add-qr-dep' into 'master'
Add qrcode plugin dependency

See merge request poezio/poezio!91
2020-05-09 19:12:02 +02:00
mathieui
466f8efde6 Add qrcode lib to the plugin requirements 2020-05-09 19:08:01 +02:00
f1473f6d1f Merge branch 'muc-pms-x' into 'master'
Add <x/> to MUC-PM CSNs

Closes #3491

See merge request poezio/poezio!90
2020-05-08 15:12:35 +02:00
773880c799
PrivateTab: extract NS contant
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-08 15:11:21 +02:00
e2dc69f9e1
Chatstates: add <x/> in MUC-PMs
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-08 15:10:25 +02:00
4edf690e26 Revert "Revert "tabs/privatetab: Fixes #3491: Add MUC <x/> marker in MUC-PMs. Thanks Ge0rG.""
This reverts commit e9a6ea7a59.
2020-05-08 14:10:59 +02:00
4fe83c7451 Merge branch 'doc-affiliation' into 'master'
affiliation: fix usage string and add documentation

See merge request poezio/poezio!89
2020-05-07 23:14:55 +02:00