Commit graph

1773 commits

Author SHA1 Message Date
Florent Le Coz
e0136e785a scroll_to_separator now scrolls to the top if there’s no separator. 2013-01-29 07:58:20 +01:00
Florent Le Coz
13b5ab4b65 Makes next_hl and prev_hl work after a scroll_to_separator.
This makes it easy to review all the highlights after the separator was
placed, using M-h, M-n, M-n, M-n…

We just add a counter of highlights which is incremented each time there’s
an hl, and set to zero when we reset the separator. We use that counter to
set hl_pos when we scroll to the separator.
2013-01-29 07:58:20 +01:00
mathieui
80f689b2fa Do not open new useless tabs with /message 2013-01-28 19:34:53 +01:00
mathieui
0c19f49e98 fix the completion of jids for /message 2013-01-28 19:08:42 +01:00
Florent Le Coz
d7b078950d Add XEP 296 to the list of supported XEP. 2013-01-26 05:46:48 +01:00
Florent Le Coz
1e60dc2cea Add the color of the resource (for dynamic conversations) in the dark theme. 2013-01-26 05:44:08 +01:00
Florent Le Coz
6aa2a05f01 Remove a single trailing space. hihi. 2013-01-26 05:35:07 +01:00
Florent Le Coz
d6fec9775a Add an /unlock command to manually unlock a DynamicConversationTab. 2013-01-26 05:35:07 +01:00
Florent Le Coz
dd2a6d1d65 Implement XEP 296 for locking resource in conversations.
With a few specific behaviours: When manually opening a conversation with a
bare jid, we open a normal conversation that follows the XEP (locked and
unlocked accordingly). If the user manually opens a conversation with a
fulljid (by selecting a specific resource in the roster, or by specifying a
fulljid to the /message command), we open a special tab that doesn’t follow
the XEP (it is always locked to the same resource, and cannot be unlocked).

When a message is received, unless a special tab has been manually opened by
the other with that specific resource, we always send the messages to a uniq
normal tab, unlocking or locking it according to the XEP.

This means that only one tab can be opened with a given contact, unless the
user specifically chooses to open a special tab for a specific resource.

fixes #2159
2013-01-26 05:35:07 +01:00
mathieui
61f469bc12 Don’t rebuild the lines on resize when the width has not changed
- because it is an heavy operation, and it is useless, since the lines
  only change when the width changes.
2013-01-23 09:29:28 +01:00
mathieui
6a81c021e1 Fix it for real. 2013-01-21 19:45:19 +01:00
mathieui
43e01ce4a6 Fix a traceback when a tab failed to be joined in the first place 2013-01-21 19:34:44 +01:00
mathieui
1bf61cde38 Break the ugly roster refresh loop into two
- The code is more understandable
- The number of iterations may have slightly increased
- Less things are done inside the lock, so the overall experience should
  be smoother
2013-01-21 19:23:23 +01:00
mathieui
bedf225749 Fix get_version and get_room_form 2013-01-19 16:20:17 +01:00
mathieui
2d9d22dae9 Also add the image… 2013-01-19 00:04:40 +01:00
mathieui
dcd82d93b2 Add some documentation about message correction 2013-01-19 00:00:57 +01:00
mathieui
3755b51430 Use the new command scheme in plugins too
(while staying backwards-compatible)
2013-01-18 23:25:33 +01:00
mathieui
b3341c6327 Open tabs for rooms without autojoin (but do not join them) 2013-01-18 23:25:33 +01:00
Florent Le Coz
90599a35e9 Change the SleekXMPP git url to use the better git:// protocol 2013-01-17 19:50:27 +01:00
mathieui
40ff60ab24 Fix a (hidden) traceback
Do not traceback when we receive a chatstate from someone not in our
roster.
2013-01-17 18:17:44 +01:00
mathieui
65a0569300 Update the installation instructions 2013-01-17 17:54:11 +01:00
Florent Le Coz
8ab4fc05c3 Refresh the rooster when canceling the search.
fixes #2195
2013-01-17 17:51:25 +01:00
mathieui
c5cc462963 Move to the upstream SleekXMPP
- remove the decline command that is not in the trunk (and mediated
  declines are supported nowhere anyway)
- change a bit xhtml-im support
- change the bookmarks management a bit
- Add a verification to avoid crashing when poezio will be launched the
  next time
- Fix the (unrelated) bug when setting a jid affiliation
2013-01-17 17:37:06 +01:00
mathieui
b06240ee7b Improve the xml tab
fix refresh bugs, display the scrolling status, add an info bar, add the
global info win
2013-01-11 19:54:30 +01:00
mathieui
b0fbbc9fa9 Fix the behaviour of /move_tab 2013-01-07 23:41:34 +01:00
Florent Le Coz
229d56456b fix a tb on /accept 2013-01-07 17:30:08 +01:00
mathieui
2ea8673a04 Improve the help system (#1986)
TODO: change the plugin API to take advantage of this
This change is backwards-compatible (as in “should not break anything”)
2013-01-06 17:36:14 +01:00
mathieui
b04d5c5f53 Update the gnupg wrapper - Fix #2162 2013-01-05 18:12:55 +01:00
mathieui
4873bab740 Do not display messages if they have an empty body after the hook 2013-01-05 15:55:45 +01:00
mathieui
15fce04294 Do not display the messages with type=headline and an empty body
(thanks, jappix)
2013-01-04 10:11:58 +01:00
mathieui
68c6c06095 Prevent a RuntimeError when there are too many revisions on a message
Python recursion sucks, and namedtuple.repr() uses that, so I rewrote
__str__ and __repr__ in order to make it the iterative way instead.
2013-01-02 20:36:38 +01:00
mathieui
ea1851e00d Iterate over the messages from the end, not from the start
(the corrected message is way more likely to be recent)
2013-01-02 19:32:32 +01:00
mathieui
d0a8304e55 Add the save_status, status, and status_message options
(the name show is not intuitive, so I used status and status_message)
- The status is send when connecting, and is the same used when joining
  rooms
- save_status is true by default, and will make poezio save the status
  whenever it changes
- status and status_message are empty by default
2013-01-02 19:07:36 +01:00
mathieui
c04fbadf2f Add a default color for “Warning” messages 2013-01-02 01:48:55 +01:00
mathieui
17d0527cf8 Fix a traceback with corrections 2013-01-02 01:36:53 +01:00
mathieui
677b944d38 Fix a TB on /move_tab 2013-01-02 01:19:47 +01:00
mathieui
a1607c4c6e Fix #2082 (xml:lang)
This is now already done in sleekxmpp, so I added a “lang” configuration
option. TODO: use the locale of the system.
2012-12-31 14:00:09 +01:00
mathieui
d15c4e0b58 Fix #2138 (send xhtml with /say and /correct) 2012-12-31 03:02:18 +01:00
mathieui
1f58cb3124 Fix #2167
(kinda)
2012-12-31 02:35:41 +01:00
mathieui
26ecafc6e5 Fix #2161 2012-12-31 02:22:28 +01:00
mathieui
f1d2aa67d0 Fix #2158
Fix /accept for transports.
I think there are more people who use transports than people who have
\2f into a legitimate JID. So I believe this is ok.
2012-12-30 19:43:07 +01:00
mathieui
d66cf8e1fe Typo 2012-12-30 19:31:27 +01:00
mathieui
80c79d8b79 Fix #2189 Fix #2139 - Make /correct work properly in all chat tabs
#2189 wasn’t crashing, but well.
Also fix a crash with the separator and /correct
2012-12-30 19:27:59 +01:00
mathieui
5fe494699a update CHANGELOG 2012-12-30 17:47:47 +01:00
mathieui
7ec85ae328 Fix #2143 Fix #2056
Show headline messages in the info buffer, and show error messages (or
other errors) with a special style.
2012-12-30 17:40:27 +01:00
mathieui
0f9b37b8a8 Do not rebuild everything in order to modify a message
(should fix the “leak” on /correct, and make it faster)
2012-12-30 14:54:54 +01:00
Emmanuel Gil Peyrot
1313e7be38 Add a /display_corrections plugin. 2012-12-29 13:14:50 +01:00
Emmanuel Gil Peyrot
65e097f410 Display the number of revisions of a corrected message. 2012-12-29 13:14:50 +01:00
Emmanuel Gil Peyrot
590afbd4bc Fix /correct and /me highlights, and handle /correct a bit better. 2012-12-29 13:14:50 +01:00
mathieui
dc4e0302b4 Fix #1977 2012-12-28 20:44:49 +01:00