Commit graph

686 commits

Author SHA1 Message Date
mathieui
2860232cc6 Fix a traceback on C-c ❶ or C-c ², etc 2011-05-13 11:34:31 +02:00
mathieui
c631673cf3 should fix #2161, and enable xhtml-im while in debug 2011-05-11 14:33:22 +02:00
mathieui
4a007eb42b -log.debug 2011-05-10 00:49:20 +02:00
mathieui
6e58f88d05 Fix the /version command in mucs (and globaaly) & improve shlex parsing 2011-05-10 00:47:41 +02:00
Florent Le Coz
bc67a7d654 Aha, remove this duplicate function 2011-05-06 02:47:34 +02:00
Florent Le Coz
897aa5bd70 M-backspace deletes a word 2011-05-05 23:28:06 +02:00
Florent Le Coz
118a81992d Fix /recolor correctly, and also fixes #2158 2011-05-04 23:08:58 +02:00
Florent Le Coz
c784deea9c Fix the paused status that was sent on /part and other inapropriate situations 2011-05-04 22:52:24 +02:00
mathieui
0029f47082 Fix python 3.1 compat 2011-05-04 22:25:26 +02:00
mathieui
c93aafa8f5 fixes #2148, #2156, #2155 2011-05-04 22:05:02 +02:00
Florent Le Coz
4b932d3a87 Do not dispaly information message about the contact that were already connected at the moment we got logged in. 2011-04-18 03:42:10 +02:00
Florent Le Coz
d913e71513 Refresh optimization on chatstates 2011-04-18 03:34:51 +02:00
Florent Le Coz
3aa6e891a5 Add some more debug and optimze the general refresh again 2011-04-18 03:07:28 +02:00
Florent Le Coz
78d8d3e74b Great roster refresh optimization 2011-04-18 02:27:46 +02:00
Florent Le Coz
da76355af0 Remove the paused timed event when we send the message 2011-04-17 15:49:38 +02:00
Florent Le Coz
d1a797205a Fix the infinite loop… 2011-04-17 15:18:17 +02:00
Florent Le Coz
b4d1eda1e0 Fixed #2150 2011-04-17 15:12:12 +02:00
Florent Le Coz
cd623aef58 Litter bug on roster presence 2011-04-17 13:55:34 +02:00
Florent Le Coz
f509c3ee22 idem etc 2011-04-17 00:49:49 +02:00
Florent Le Coz
bf2bd33bd3 Idem 2011-04-16 22:55:30 +02:00
Florent Le Coz
1c4867b180 Fix some refresh issues 2011-04-16 22:03:11 +02:00
Florent Le Coz
3711c258a8 Optimize refresh by doing only when strictly required and on the concerned part of the screen.
Also remove the \n at the end of /info when status message is empty
2011-04-16 21:46:07 +02:00
Florent Le Coz
9889baf0ce Make the information messages "pop" the information buffer temporarly 2011-04-16 18:07:14 +02:00
Florent Le Coz
8167f9d3a4 Fix a typo that made the ban messages not appear at all 2011-04-16 01:19:53 +02:00
Florent Le Coz
5c0cf9a98d fix the colors for Subscribed alerts 2011-04-10 20:03:16 +02:00
Florent Le Coz
f414f341a4 Remove the bugged handling of :ctrl+arrows 2011-04-10 17:02:48 +02:00
Florent Le Coz
737bbbface Fix the read_keyboard on ^C 2011-04-10 17:00:29 +02:00
Florent Le Coz
6cd5f8d4f7 Fix the dispay of links in xhtml messages. Reenabling xhtml-im by default 2011-04-10 16:44:26 +02:00
Florent Le Coz
72ec428320 Ignore messages with empty body. fixed #2144 2011-04-10 14:19:18 +02:00
Florent Le Coz
01509b463b Fix the *args of timed events 2011-04-10 04:08:33 +02:00
Florent Le Coz
a6c56682b7 Implement paused chate state. fixed #2124 2011-04-10 03:52:46 +02:00
Florent Le Coz
35b6e146cb Basic timed event implementation. 2011-04-09 22:18:36 +02:00
Florent Le Coz
27a20b349c Have a timeout in read_char to enable timed events 2011-04-08 16:36:00 +02:00
Florent Le Coz
ce5d67d8f6 Alt+ a number returns to the previous tab if we are already on tab “number”.
Kassdédi mrk
2011-04-05 20:51:35 +02:00
Florent Le Coz
f4c138e444 Save the last presence. Fix #2133 2011-04-05 05:27:52 +02:00
Florent Le Coz
cb1abbd945 Disable xhtml-im by default 2011-04-04 19:19:27 +02:00
Florent Le Coz
7e2a98b0f5 Color 7is now the default color instead of white 2011-04-04 16:09:05 +02:00
Florent Le Coz
b3a9dc8637 Fixed #2136 2011-04-04 15:22:06 +02:00
Florent Le Coz
5aa5a25b8a Fix that again 2011-04-04 02:31:46 +02:00
Florent Le Coz
22832b339b Fix colors of reason in a kick message 2011-04-04 02:29:35 +02:00
Florent Le Coz
63e4833b09 Fix a crash on normal messages, and add colors to information messages 2011-03-31 00:36:15 +02:00
Florent Le Coz
eac38e0316 Fix the generated xhtml: span was closed too often at the end 2011-03-30 04:48:02 +02:00
Florent Le Coz
92e63829a6 Finish colors support with xhtml (clean the elinks dump, handle the input etc) 2011-03-30 04:34:45 +02:00
Florent Le Coz
51cebe7bdc Remove the xhtml-im that was inserted for debug, add the start of a method to enter attributes in Inputs, convert \n to <br /> in xhtml_im bodies and put that body in a <p> element 2011-03-29 21:07:53 +02:00
Florent Le Coz
42f4d55512 poezio_colors to_html 2011-03-29 20:56:11 +02:00
Florent Le Coz
ba02b51554 Convert html markup received in xhtml_im elements to poezio colors
and use that as the body
2011-03-29 20:36:02 +02:00
Florent Le Coz
a0248d4324 Change the highlight color of the default theme 2011-03-29 16:48:25 +02:00
Florent Le Coz
a799e5c16f Fix some colors, again... 2011-03-29 16:43:33 +02:00
Florent Le Coz
5e3381f6d4 Add files for xhtml containing xhtml->shell colors and shell colors->poezio colors 2011-03-29 16:11:37 +02:00
Florent Le Coz
8108b703a8 Fix the color in join message 2011-03-29 14:48:27 +02:00
Florent Le Coz
25162f0a06 Messages in text_buffer should not be colored when they
have no nickname
2011-03-29 14:39:51 +02:00
Florent Le Coz
38cffe43b6 Message and complete words can now be colored even if the
take more than one line to be displayed.
2011-03-29 14:35:59 +02:00
Florent Le Coz
8b032a6ece Fix the highlight (now the nick is colored, not the message itself) 2011-03-29 14:27:30 +02:00
Florent Le Coz
c2cb61da06 Cleanup some code not used anymore 2011-03-29 14:15:02 +02:00
Florent Le Coz
dcd29c636f Change how colors are handled. With \x19x etc
Should work like before and be a little lighter on the RA
2011-03-29 12:44:19 +02:00
Florent Le Coz
a2abc116e5 Jump the space on /message JID blabla command 2011-03-27 14:40:29 +02:00
Florent Le Coz
e4f2828347 comment + fix an except 2011-03-25 01:00:37 +01:00
Florent Le Coz
1916eedcde 2011-03-21 21:25:51 +01:00
Florent Le Coz
3ad429f00b Hix a crash on last word completion 2011-03-21 21:24:39 +01:00
Florent Le Coz
dca88cadbd Use namedtuples instead of dict, this should GREATELY lower the memory footprint 2011-03-21 03:18:12 +01:00
Florent Le Coz
2d81b7407b Alt+J 2011-03-20 03:32:48 +01:00
Florent Le Coz
356dd4b5ec Case insensitive HL 2011-03-20 03:05:52 +01:00
Florent Le Coz
902cfd9056 Little mistake 2011-03-20 02:44:51 +01:00
Florent Le Coz
56cbdaacb6 Alt+x where x is a number 2011-03-20 02:42:29 +01:00
Florent Le Coz
cba3adcced Command connect, to reconnect if needed. Fixed #1149 2011-03-20 01:46:44 +01:00
Florent Le Coz
6e14fce61f /version <jid> command 2011-03-15 23:40:54 +01:00
Florent Le Coz
e06b8baa52 Remove the avail command, since /ava[TAB] is even shorter than that. 2011-03-13 14:22:20 +01:00
Florent Le Coz
49f3f0af2c Text in TextWins not is cut one row before the end of line.
Thus fixing a strange display bug, and making it easier to
copy a text without the "|" at the end of line
2011-03-13 14:12:45 +01:00
Emmanuel Gil Peyrot
e178924c1f Remove the /show command and map /away, /avail, etc. to /status. 2011-03-11 22:10:37 +01:00
Florent Le Coz
8ab4af1082 Send chatstate composing if we are starting our message with // 2011-03-11 01:18:35 +01:00
Florent Le Coz
59969d2f6e Fix a dataforms traceback due to the new resize method. 2011-03-10 14:08:31 +01:00
Florent Le Coz
e835bd2d20 Fix the search (the enter key opens the conversation BEFORE restoring the roster list) 2011-03-10 05:11:12 +01:00
Florent Le Coz
36eed51b90 use config.get() only once instead of doing it at each iteration 2011-03-10 04:57:26 +01:00
Florent Le Coz
a519b90cba Avoid stupid traceback on normal message 2011-03-09 18:15:01 +01:00
Florent Le Coz
769b6ec33b little fixes and (very little) optimization 2011-03-09 05:27:10 +01:00
Florent Le Coz
a516e78bcf Some optimizations in build_new_message. Also cleaned up. Added an optimized way to do "wcswidth(string) > n": wcsislonger. And should use less memory because the dict replacing Message and Lines object stores ONLY the needed attributes. 2011-03-09 04:56:53 +01:00
Florent Le Coz
1a2252b3e5 Have a single TextWin in common for each tab, reducing the needed memory, and simplifying its resize (F7 and F8 stuff) 2011-03-08 04:20:46 +01:00
Florent Le Coz
8f48c5ede7 Inputs are garbage collected, making MucListTab collectable.
Memory improvement issues.
2011-03-07 21:41:13 +01:00
Florent Le Coz
a769babf0a Typo 2011-03-07 20:58:12 +01:00
Florent Le Coz
b6a5ed7286 very little cleanup 2011-03-07 20:11:47 +01:00
Florent Le Coz
d6d566e39b pylint 2011-03-07 19:57:55 +01:00
Florent Le Coz
6b469dbde9 Fix data forms to work properly with the previous changes in windows.py 2011-03-06 05:09:45 +01:00
Florent Le Coz
8d8b13fb7a Remove a useless "locale" change 2011-03-06 02:55:35 +01:00
Florent Le Coz
83fbf8dae1 Move a lot of muc-only-related stuff insid the MucTab class
instead of core.
May break some stuff, maybe
2011-03-05 22:39:35 +01:00
Florent Le Coz
fb40ac54fc Kind of big cleanup.
Core and Connection classes are now used as singletons, we do not need to pass them to each Tab and Win. This remove a lot of arguments to varius methods.
2011-03-05 21:42:56 +01:00
Florent Le Coz
9c291d1368 fixed #2117 Fix tracebacks: remove traceback handler. 2011-03-03 03:43:48 +01:00
Florent Le Coz
40426cb715 Avoid a blink at startup with a stupid hack… 2011-03-03 03:24:04 +01:00
Florent Le Coz
5a90c70568 Send chatstates to MUC only if the room is joined 2011-02-26 14:19:15 +01:00
Florent Le Coz
8be400792a Fix a tb when receiving the first private message of a conversation 2011-02-25 00:38:34 +01:00
Florent Le Coz
001a20c91a Display chatstates in the user list in MucTabs 2011-02-24 21:56:16 +01:00
Florent Le Coz
cccbad13d5 end and handle chatstates in privateconversations 2011-02-24 21:39:49 +01:00
Florent Le Coz
e4b96eb752 Send chat states in muc and private conversations.
Also, do not send active/inactive states if we switch tab
while we are composing a message
2011-02-24 21:03:30 +01:00
Florent Le Coz
1d94e80da7 Send active/inactive if we are focused on the tab or not. And send
"gone" when we close the tab
2011-02-24 20:50:21 +01:00
Florent Le Coz
3084a9cff7 Do not send chat states if send_chat_states = false in config 2011-02-24 20:41:52 +01:00
Florent Le Coz
3f41cc8967 Refresh the tab when we receive a chat state 2011-02-24 20:31:34 +01:00
Florent Le Coz
d0b1349cf4 Better handle the 'not composing, just typing a command',
the user cannot trick the system by doing (e.g), "w, ←, /, ENTER"
2011-02-24 20:27:53 +01:00
Florent Le Coz
1d2bb35f3b Pass the message too 2011-02-24 20:16:35 +01:00
Florent Le Coz
6f87306a7e Do not send the composing chatstate if we are typing a command 2011-02-24 20:13:45 +01:00
Florent Le Coz
138b17cdb3 In normal conversations: Send composing and active chat states
and display the state of the remote contact
2011-02-24 20:02:18 +01:00
Florent Le Coz
cc74576c9f Avoid crash when write to log file fails 2011-02-21 21:00:23 +01:00
Florent Le Coz
0d6ec6c5d3 Properly take into account the length of the characters, fixing
some display issues (for example the cursor position
when entering stranges characters likes 癔)
2011-02-18 00:47:44 +01:00
Florent Le Coz
2f864c9fc1 Re-add the /configure command 2011-02-17 19:00:40 +01:00
Florent Le Coz
8aede04f5b Fix the info_win of the InfoTab (anon mode) 2011-02-16 02:54:02 +01:00
Florent Le Coz
fd05c7d707 Change the timer to avoid split of big pastes 2011-02-15 22:16:45 +01:00
Florent Le Coz
32d8a5281d Line ^M are now converted to ^J if we are pasting
from the clipboard, making it possible to paste huge multi-lines
texts in only one message
2011-02-15 21:03:24 +01:00
Florent Le Coz
d184c55580 ^J now inserts a line break in the input.
It is now possible to send multi-lines messages
2011-02-15 20:55:31 +01:00
Florent Le Coz
adf5a977a9 Remove ^J from the shortcuts triggering the Enter event, because
we’ll use it to add a (real) \n into the input’s text.
Also remove "\n" because it’s useless
2011-02-15 20:49:54 +01:00
Florent Le Coz
b707696b46 Ctrl+Shift+left and right switch to the previous/next tab 2011-02-15 20:44:31 +01:00
Florent Le Coz
7103a102bb Ctrl+up and down go to the next/previous group in the roster 2011-02-15 20:34:50 +01:00
Florent Le Coz
3302c730af Ctrl+left and right jump a word in the input 2011-02-15 20:33:00 +01:00
Florent Le Coz
36094c15cf Keyboard can now read all shortcuts with Ctrl (e.g Ctrl+left)
Any unicode character is accepted after the meta key
The meta key can be concatened until a non-meta key is pressed
(e.g M-M-M-M-M-M-M-M-e)
2011-02-15 20:25:32 +01:00
Florent Le Coz
690d449560 PgUp and PgDown scroll one page in the roster
M-u, M-y Moves to the next/previous roster group
2011-02-15 17:24:35 +01:00
Florent Le Coz
5a6f9f92cb Scroll user list by "height-1" lines, instead of 4 2011-02-15 16:36:16 +01:00
Florent Le Coz
83e52d55f2 /message command. Fixed #2106 2011-02-15 16:22:25 +01:00
Florent Le Coz
68c468b1a9 Remove the resize timer etc, because the resize process
is waaaaaay faster now.
2011-02-15 15:27:30 +01:00
Florent Le Coz
68f784e5c2 Make the resize faster by resizing each tab
only at its next refresh
2011-02-15 15:20:34 +01:00
Florent Le Coz
85d645b7d2 Automated merge with http://hg.louiz.org/poezio 2011-02-14 14:54:56 +01:00
Florent Le Coz
4b31e5acf1 Make the number of lines and messages kept in memory configurable
and lower (a lot) the number of lines kept in the info_win buffers
This lower the memory usage.
2011-02-14 14:54:26 +01:00
Florent Le Coz
3e550f4ae7 Properly remove the info_win from the list of the
global information_buffer to make it Garbage Collected
when we close the tab
2011-02-14 14:37:36 +01:00
Florent Le Coz
ac99467965 Make the tab collectable by remove self references when closing
them.
2011-02-13 22:28:35 +01:00
Florent Le Coz
8d0ebdfc12 Automated merge with http://hg.louiz.org/poezio 2011-02-13 22:26:23 +01:00
Florent Le Coz
1a058c3579 Make it possible to define bold in the theme files 2011-02-13 22:26:05 +01:00
Florent Le Coz
6ed087a65c Fix /list completion (complete the servers only) 2011-02-10 16:18:17 +01:00
Florent Le Coz
30f9f2b055 Fix the /help command with commands of the current tab 2011-02-10 16:15:33 +01:00
Florent Le Coz
ffcf65ec43 /help completion 2011-02-10 16:13:28 +01:00
Florent Le Coz
ad7e9b749d /win completion and fix the return values of other completions 2011-02-10 16:08:17 +01:00
Florent Le Coz
23fa745629 /show completion 2011-02-10 13:05:37 +01:00
Florent Le Coz
e7418bb867 /unignore completion 2011-02-10 12:54:51 +01:00
Florent Le Coz
bd1733355b Topic completion 2011-02-10 12:49:11 +01:00
Florent Le Coz
3dbb6590d3 Make the shell split do a normal split if the syntax is wrong 2011-02-10 12:39:15 +01:00
Florent Le Coz
538c843ec7 Remove a useless UnicodeError check 2011-02-10 11:49:25 +01:00
Florent Le Coz
d31f1390ad update version to 0.7.5-dev and remove some debug 2011-02-09 20:42:57 +01:00
Florent Le Coz
7598a9eff9 Update to 0.7.1 2011-02-02 01:48:46 +01:00
Florent Le Coz
5da23e07d1 euh ok 2011-02-02 01:39:57 +01:00
Florent Le Coz
b737c09c4e Disable /configure while it's broken with sleekxmpp 2011-02-02 01:39:05 +01:00
mathieui
01f3409505 fixed #2115 2011-02-02 00:51:34 +01:00
Florent Le Coz
89f337a457 Avoid crash if info_win_size is over the window height. fixed #2114 2011-01-31 15:15:16 +01:00
Florent Le Coz
399434c1ae get_tab_by_name is safer now, by passing the type of the tab we want.
This avoid confusion between various tabs having an identical name (which
should not happen anyway…)
2011-01-26 23:43:07 +01:00
Florent Le Coz
b89a10bd05 Fix a traceback occuring when an (unknown) tab has a name corresponding to an existant MucTab. 2011-01-26 23:32:41 +01:00
Florent Le Coz
41e29926eb Properly consider the size of the window on data-form tab 2011-01-26 05:01:16 +01:00
Florent Le Coz
8b6c0c5a2e data-forms: an help message 2011-01-25 21:38:31 +01:00
Florent Le Coz
6a0346a12a Fix a little issue on the default values of text-multi 2011-01-25 21:17:11 +01:00
Florent Le Coz
cc0449f73b data-forms: text-multi and jid-multi support 2011-01-25 21:15:46 +01:00
Florent Le Coz
716b8be04f data-forms: temporary text-multi support 2011-01-25 18:09:40 +01:00
Florent Le Coz
90c003f975 data-forms: list-multi support 2011-01-25 18:07:47 +01:00
Florent Le Coz
f9cf0ac76d /status also changes your presence in MUCs 2011-01-24 17:02:46 +01:00
Florent Le Coz
33421513c9 fixed #2109. HUGE DIFF OMG 2011-01-23 23:08:44 +01:00
Florent Le Coz
4a84691228 Handle correctly the banning of a muc participant
Fixed #2112
2011-01-23 23:01:53 +01:00
Florent Le Coz
333b80b5df /status command. fixed #2110 2011-01-23 22:49:58 +01:00
Florent Le Coz
28460d2f6f Fix a crash on unknown role 2011-01-23 18:38:49 +01:00