Commit graph

62 commits

Author SHA1 Message Date
mathieui
186803d9a9 Fix formatting, some typos, and unused code, and add docstrings
- 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-03-23 00:15:01 +01:00
mathieui
109b4aa1f4 Parse message timezones correctly 2014-02-23 20:30:55 +01:00
mathieui
1a92c51ddf Fix an issue with shlex
(well, sort of fix)
2013-08-16 16:21:54 +02:00
mathieui
7820f98568 Move shlex to poezio_shlex to avoid conflicts with the stdlib 2013-08-15 01:07:47 +02:00
mathieui
406454fdd0 Fix common.shell_split with empty strings 2013-08-05 19:45:08 +02:00
mathieui
bb59771d99 Fix #2049 (get the current completed argument)
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-08-01 20:17:12 +02:00
Florent Le Coz
3356cac9ce Fix a stupid traceback (common.datetime_tuple) 2013-05-24 21:52:12 +02:00
mathieui
e8fae6f24c Fix #2275, ref #2229
- 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-31 16:33:10 +02:00
mathieui
d797b1fd65 Implement user gaming (xep-0196)
- configuration options
- theming options
- /gaming
2013-03-12 16:12:47 +01:00
mathieui
71c35eb279 Implement XEP-0118 (Fix #1840)
- 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-11 02:04:20 +01:00
mathieui
dbde08a526 Document with sphinx timed_events, common, and add methods to PluginAPI
- add methods related to timed events to the PluginAPI
- remove parse_command_args_to_alias because str.format does that, and
  better
→ update the alias plugin
2013-03-08 19:39:34 +01:00
mathieui
1e9e2112f7 Fix #2126 (per-server configuration sections)
(also move replace_key_with_bound() to core.py, to prevent having
common.py depending of config.py)
2013-03-04 00:23:58 +01:00
mathieui
0bd55a27f2 Fix TBs when the system is not in utf-8 by default
(force every file opening to be with the utf-8 encoding)
2012-09-13 09:50:48 +02:00
mathieui
7a485ef4d0 Add a common.safeJID function, and use it everywhere 2012-08-06 15:38:09 +02:00
mathieui
3897d131c1 Implement XEP-0012 (last activity) ; Fixes #1870
- Add a /activity command
- Load xep_0012 on start
- Add a 'l' shortcut in the roster to get the last activity
- Using "/activity" in a direct conversation will add a message in the
  conversation, and not in the info buffer.
2012-08-02 16:24:10 +02:00
mathieui
88d32a7bc4 Add an autorejoin_delay option
- document it
- works in per-tab config too
2012-07-30 19:05:20 +02:00
mathieui
ec7dd75012 /bind with only one argument now resets the binding 2012-07-29 19:45:46 +02:00
mathieui
88f7e690bd Fix the alias plugin 2012-01-26 10:05:36 +01:00
mathieui
9361b12ce2 Add a simple args parser for commands in common.py 2011-11-18 23:35:11 +01:00
mathieui
6ef488ae80 Add some __doc__ to the parse from/to str/secs methods 2011-11-18 23:34:38 +01:00
mathieui
9a32229d0b Add the 's' modifier (allow a string to be "50s1d1d4m1s") 2011-11-15 21:37:04 +01:00
mathieui
d6ceb78c82 Also parse strings with only seconds properly 2011-11-15 21:25:28 +01:00
mathieui
50b4b4989a Some utility functions to go from/to seconds/strings 2011-11-15 21:21:01 +01:00
mathieui
4208920f42 Fixes #2279 2011-11-15 01:42:24 +01:00
mathieui
c3c67b5e0a Code cleanup (unused import, variables, undefined names, etc…) 2011-11-06 21:10:09 +01:00
Florent Le Coz
700b11e42d Handles 256 colors, easier theming and more flexible way to define colors
Doesn’t run yet if term doesn’t support 256 colors, I know
(thus the branch "256")
2011-09-21 00:52:03 +02:00
Florent Le Coz
96794a4e49 Change license to zlib (MIT sucks :() 2011-09-11 17:10:05 +02:00
Florent Le Coz
d41634d4ea Change license to MIT 2011-09-06 02:45:53 +02:00
Florent Le Coz
a99257ad9a Key bindings \o/ 2011-07-03 02:06:40 +02:00
Florent Le Coz
5aff41b69b Fix the argument split issues 2011-05-19 20:38:12 +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
b6a5ed7286 very little cleanup 2011-03-07 20:11:47 +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
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
a84769890b fix get_output_of_command. fixed #2018 2011-01-22 15:03:54 +01:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
cfc3309009 restaure software version and local time 2011-01-09 00:09:51 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
d712d2e1c9 update copyright date 2011-01-01 13:27:07 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
62427ff401 (link mauve) fixed #2041 use JID class everywhere 2010-12-07 16:31:30 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
7fd6153720 fix some little issues. Rename gui to core, use logging lib instead of the custom debug option. Add a -d option 2010-11-09 20:37:39 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
2863eebda4 New and better keyboard shortcuts 2010-10-27 23:11:35 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
d4e3e51c1f update e-mail address and README 2010-10-04 01:45:16 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
390e952829 Basic implementation of the roster and one to one conversations 2010-09-26 18:01:38 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
29e5250904 don't crash on dev version (with debug()s), by writting debug in /tmp/ 2010-09-12 16:57:46 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
17eb99eea7 python 3 only. Fixes all EncodingError bugs :)))) 2010-09-03 18:01:43 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
e84b23d1ad Switch to Sleekxmpp. fixed #1768 2010-08-31 23:11:02 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
20b1f68764 Fix a little bug on completion due to the separating line 2010-08-14 08:58:31 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
94153c490b fixes the sys.excepthook thread bug, and fix the traceback on joining a room with non-ascii chars 2010-08-04 23:54:02 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
ba08dd43da fix ctrl+x, automatic-completion. Add auto-rejoin (fixed #1662) 2010-08-04 00:17:53 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
bee3b7c75c Support old and deprecated XEP 0091 because it's still used on buggy servers like @conference.codingteam.net. Fixed #1677 2010-07-26 00:51:07 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
bb92c63a2c fix backspace key, error messages not displayed, and other stuff 2010-07-20 17:25:41 +00:00