summaryrefslogtreecommitdiff
path: root/src/text_buffer.py
AgeCommit message (Collapse)Author
2015-07-16Add a missing nick size bound, which caused text to overflowmathieui
for nicks with length > 10 and messages longer than one line, it would overflow on the line below everytime.
2015-05-08Remove an accidentally added debug logmathieui
2015-04-13Display error messages inside a conversationmathieui
if the error has the same id as a sent message, it will be displayed with a cross where there is usually a checkmark (ack), and the received error will be appended to the message, in red. if it does not have a know id, it will be added as another message to the conversation, without a nick, and in red.
2014-12-30Only graphically ack a message if it was sent by usmathieui
2014-10-20Remove the (sometimes wrong) default values in the config.get() callsmathieui
2014-04-27Fix #2106 (implement message delivery receipts)mathieui
- two options request/ack_message_receipts - two new theme parameters : CHAR_ACK_RECEIVED and COLOR_CHAR_ACK - if a message has a receipt, the character is displayed between the timestamp and the nick, using the color
2014-04-2280-columns wrapping and some docstringsmathieui
also bump version, and add some gettext wraps
2014-04-07Fix #2354 (logs are badly colored with xhtml history)mathieui
- now it should work properly - add a COLOR_LOG_MSG theming option, used both for local and remote history
2014-04-06Code cleanupmathieui
fixes whitespace issues, some builtin overrides, and some enormous lines might make poezio run nanoseconds faster!
2014-03-24Use RawConfigParser.get{int,bool,float} whenever possiblemathieui
config.get('option', 'value').lower() == 'value' is just ugly and stupid, especially for bool. One if in basetabs:556 was also missing a comparison, leading to True whenever the option was set.
2013-10-06Fix #2358 (/correct is broken in private conversations)Mathieu Pasquet
2013-07-01Fix the repr() of messages for loggingmathieui
2013-05-15Fix #2229 (prevent correction if the 2 fulljid differ)mathieui
(Except in MUC, where we check the User object for that)
2013-03-31Fix #2275, ref #2229mathieui
- Refactor the message handlers to be more readable - Add a group_corrections tab-specific option (#2229) - Fix issues with /correct in private tabs and conversation tabs
2013-03-13Fix #2265mathieui
also: - fix Message.__str__/repr - fix a traceback with user gaming
2013-02-27Improve XEP-0308 supportmathieui
- Prevent correction of delayed messages - Prevent correction of messages by someone else in a MUC (and in a private tab) - Messages with unauthorized corrections (above) or wrong message id will be displayed as normal messages TODO: restrict the corrections to the same fullJID (only in direct "normal" conversations, because we can know in private an muc tabs, via the User object)
2013-01-02Prevent a RuntimeError when there are too many revisions on a messagemathieui
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-02Iterate over the messages from the end, not from the startmathieui
(the corrected message is way more likely to be recent)
2012-12-30Do not rebuild everything in order to modify a messagemathieui
(should fix the “leak” on /correct, and make it faster)
2012-12-29Display the number of revisions of a corrected message.Emmanuel Gil Peyrot
2012-12-29Fix /correct and /me highlights, and handle /correct a bit better.Emmanuel Gil Peyrot
2012-12-15Introduce a special "reverse" value for the COLOR_HIGHLIGHT_NICK theme option.Florent Le Coz
If COLOR_HIGHLIGHT_NICK = "reverse", the highlight nick will be in reverse mode. fix #2165
2012-12-07Add a new show_timestamps option to hide/show timestamps in text buffers.Florent Le Coz
2012-11-17Fix the history numbers when re-joining a roommathieui
the <history/> element had a xmlns="" instead of the proper namespace.
2012-11-11Preload history into discussion windows (à la mcabber)mathieui
- New option load_log defaulting to 200 to indicate the number of lines to be loaded - It’s still very raw, and the format of the message does not match the format of the normal room history, for example - Works in the Private chat, MUC, and Conversation tabs Thanks to labedz <github@labedz.org> for the original code
2012-10-12When a message is corrected, display it correctly in place of the previous one.Emmanuel Gil Peyrot
2012-05-17Use a different theme variable for the /me messagemathieui
2012-05-17Add a way to review room highlights - Fixes #1673mathieui
This new features is available with M-p and M-n (previous/next). It saves the last highlight viewed, meaning that if you scroll in the buffer, M-n or M-p will take you to the next or previous hl compared to the one before you started scrolling. For convenience, going to the previous highlight of the first highlight will take you to the bottom of the buffer, and going to the next highlight of the last highlight will do *the same*. If there are several highlights in one message, only the first line will be considered a highlight.
2012-01-26Make the color for information messages themableFlorent Le Coz
2012-01-26Display colors for /me messages in a better way.Florent Le Coz
2011-11-25Fix something with /me etc.Florent Le Coz
2011-11-25Use the nick color for the “*” char in /me messages.Florent Le Coz
2011-11-25/me now works in all chatabsFlorent Le Coz
fixes #2302
2011-11-06Fix a remaining crash from the Room class deletion.Florent Le Coz
2011-11-06Remove the Room class. fixes #2122Florent Le Coz
2011-09-21Handles 256 colors, easier theming and more flexible way to define colorsFlorent Le Coz
Doesn’t run yet if term doesn’t support 256 colors, I know (thus the branch "256")
2011-09-11Fix an issue that breaks the message display if it contains \tFlorent Le Coz
2011-09-11Change license to zlib (MIT sucks :()Florent Le Coz
2011-09-09Make it work. MAY segfault. Need intensive testing.Florent Le Coz
Should be A. LOT. FASTER. though.
2011-09-08c code that doesn’t workFlorent Le Coz
2011-06-25Fixed a stupid crash caused by mathieui. Shame on him.Florent Le Coz
2011-04-16Make the information messages "pop" the information buffer temporarlyFlorent Le Coz
2011-03-31Fix a crash on normal messages, and add colors to information messagesFlorent Le Coz
2011-03-29Messages in text_buffer should not be colored when theyFlorent Le Coz
have no nickname
2011-03-29Message and complete words can now be colored even if theFlorent Le Coz
take more than one line to be displayed.
2011-03-29Change how colors are handled. With \x19x etcFlorent Le Coz
Should work like before and be a little lighter on the RA
2011-03-21Use namedtuples instead of dict, this should GREATELY lower the memory footprintFlorent Le Coz
2011-03-09Avoid stupid traceback on normal messageFlorent Le Coz
2011-03-09Some optimizations in build_new_message. Also cleaned up. Added an optimized ↵Florent Le Coz
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-02-14Make the number of lines and messages kept in memory configurableFlorent Le Coz
and lower (a lot) the number of lines kept in the info_win buffers This lower the memory usage.