summaryrefslogtreecommitdiff
path: root/src/windows.py
AgeCommit message (Collapse)Author
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-27Fix weird behavior while using the input in the muclisttabmathieui
2014-04-24Fix a traceback when sorting a listwinmathieui
2014-04-23Fix #2450 (redraw top-scrolled tabs properly after resize)mathieui
2014-04-14Fix #2422 (traceback in input) (also #2431)mathieui
now the scroll is made with 1/3 of the input size every time instead of fixed offsets
2014-04-14Fix #2339 (put the more “important” users at the bottom in the userlist ↵mathieui
when configured) (one-line fix, and the others are for reformatting imports to be consistent)
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-04-06Always enable the cursor when we refresh an inputmathieui
fixes some bugs when closing tabs that disable it
2014-04-06Improve drastically the performance of the MucListTabmathieui
- avoid doing stringprep on every item, avoid at least one full copy - add the number of items to the infowin
2014-04-04Remove unused importsmathieui
(thanks eijebong)
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.
2014-03-23Fix formatting, some typos, and unused code, and add docstringsmathieui
- No idea why subclasses of ConversationTab were working before (info_header was overriden with None in __init__) - Or why the date parsing worked (“Exeception”) - Some more reformatting with pylint indications - Document each module in the tabs module
2014-02-17Fix a traceback in the commandinputmathieui
When the connection lags and the user presses tab, poezio will insert a tab inside the input, wich has now a specific formatting. This caused poezio to crash.
2014-02-03Fix #2418 (Wrong character count in input with copy/pasted tabulations)mathieui
- Replace tabulations in the input by highlighted “t”s - More readable, and less messy to deal with.
2014-02-03Fix #2208 (time_marker shows an useless timestamp)mathieui
2013-10-21Increase the number of chars to "jump" when the cursor goes out of the inputFlorent Le Coz
2013-10-20Improve the input a lotFlorent Le Coz
Noticeable changes: - The input "view" is smarter, it always move to a decent position so we can see enough text around the cursor. - The cursor goes at the end of the input when pasting some long text - The formatting chars (^C and o, b, a, 1, 2, 3 etc) are now visible in the input. This makes it a lot easier to know where these special characters are, to change them and efficiently edit our text (we just lose a little, on the cosmetic side, but who cares) - The code is actually a lot simpler in the functions to move the cursor, insert/delete chars: we do not have to deal with special cases where the formatting characters are actually composed of two chars. fixes #2183
2013-09-19Fix #2372 (traceback on space in roster after disconnect)Mathieu Pasquet
selected_row wasn’t reset
2013-08-16quote a completed word if it has \ in itmathieui
2013-08-04Add the same pluggable "information element" to the PrivateTabmathieui
2013-08-02Fix #2317 (/join completion is broken)mathieui
Also add an override parameter to new_completion so that the completion does not care if the list matches the previous input or not.
2013-08-01Fix #2049 (get the current completed argument)mathieui
A command argument can now be completed even if it isn’t the last one in the input. - Add a new method Input.new_completion Almost like the old auto_completion method, except taht it takes another argument: argument_position, which is the argument to be completed. - Methods using the old completion method still work - All completion methods in poezio now use the new one if necessary - Further details can be found in the docstring of new_completion
2013-07-31Fix #2306 (none, to, and from subscriptions should be more visible)mathieui
Added a configuration option and some theme variables.
2013-07-03Move backwards in the input the same way we move forward (ref #2183)mathieui
2013-06-30Fix #2329 (display the info buffer in the muclisttab)mathieui
also fix some typos in the comments, and a refresh issue with the input
2013-06-20Use a logical order of arguments in the poopt functions, nowFlorent Le Coz
2013-06-20Use cut_by_columns to properly cut nicks in the UserWin windowFlorent Le Coz
2013-06-19Remove the now useless (and fucking slow) wcwidth python implementationFlorent Le Coz
2013-06-19And actually use poopt.wcswidth to properly count the nicks' sizeFlorent Le Coz
see #2142
2013-06-19Consider the number of columns of each characters in the poopt moduleFlorent Le Coz
Some characters take 0 columns, others take 1 or 2 (full-width characters) fixes #2142
2013-06-13Improve the roster searchmathieui
- now case-insensitive - search in the bare jid instead of userpart only (and still in roster names) - do not display groups when searching - display offline contacts - do not expand resources if they were before the search
2013-06-10Fix addstr_colored with colors that start with a -1mathieui
2013-06-09Fix #1892 (keep the contact selected in the roster)mathieui
2013-06-09Fix #2183 (do not scroll one char at a time when you reach the end)mathieui
Now it scrolls horizontally of 1/4 the size of the input
2013-06-08Add a way to format background colors in a stringmathieui
(also add colors to the /info command in MUCs)
2013-06-07Accept NULL bytes in strings to be cut by the poopt moduleFlorent Le Coz
fix #2296
2013-05-16Fix #2307 (commandinput history)mathieui
2013-05-11Actually use it.mathieui
2013-05-11Handle the roster order cache as a real cachemathieui
When an external (or internal) event may cause the order of the cache to be modified, or new elements to be added, schedule it for a rebuild. Otherwise, don’t, and only rebuild it when refreshing (that should improve refresh speed a lot). Also, if the position in the roster is further than the total size of the roster, go back to the top instead of displaying an empty window with “+++”.
2013-05-10Fix #2131 (Input cursor when pasting text)mathieui
2013-05-01Make Alt+backspace work on my freebsdFlorent Le Coz
2013-04-04Add an option to choose between shared and separate input historymathieui
- separate_history, defaults to false
2013-04-04Fix #2255 (search in input history)mathieui
- The input is split in two parts: on the left is what the user enters, on the right is the first match (the right part has a different color) - Start and cancel a search with ^R - Validate a search with enter, then press another time enter to send - CommandInput and MessageInput now inherit from the HistoryInput class and share some methods
2013-03-13Fix #2265mathieui
also: - fix Message.__str__/repr - fix a traceback with user gaming
2013-03-12Implement user gaming (xep-0196)mathieui
- configuration options - theming options - /gaming
2013-03-11Fix #1839 (User mood/activity)mathieui
- Added as always new theming variables: CHAR_ROSTER_MOOD, CHAR_ROSTER_ACTIVITY (a SNOWMAN!) COLOR_ROSTER_MOOD, COLOR_ROSTER_ACTIVITY - Added two new notification types in Theme.INFO_COLORS (mood/activity) - Added new configuration options: display_mood/activity/tune_notifications (those can be set for a specific JID) enable_user_tune/nick/activity/mood - Added /activity and /mood commands, with completions - Moved the old /activity to /last_activity - Details are show in the ContactInfoWin if there is room, or with "i" on a contact in the roster.
2013-03-11Implement XEP-0118 (Fix #1840)mathieui
- Add new theming options - Show the tune in the roster (both in contact line and infowin) - add an option to show tunes as info messages
2013-03-10Fix #2122 (coloration of long messages)mathieui
- Add a “prepend” attribute to the Line tuple I’m not sure of the impact of this on performance (we parse the message yet another time)
2013-03-06Add a CHAR_NEW_TEXT_SEPARATOR theming optionmathieui