Commit graph

1607 commits

Author SHA1 Message Date
Mathieu Pasquet
7e4a565517 Fix a traceback when opening an empty log file 2014-01-29 16:44:43 +01:00
Mathieu Pasquet
8a44d31e85 Add a logging option to the OTR plugin
It is tab-specific and off by default.
2014-01-29 16:41:57 +01:00
Mathieu Pasquet
2ac24d6883 Provide a more standardized fingerprint representation
(also includes silent modification of the hash already
in the config)
2014-01-28 18:54:46 +01:00
mathieui
f9e70fa656 Previous commit with get/set 2013-12-28 17:16:35 +01:00
mathieui
83b44c863e Fix #2281 (display iq results when sent with /rawxml) 2013-12-28 16:57:36 +01:00
mathieui
91392c721f Fix #2414 (don’t use /tmp/dummy in the logging config) 2013-12-28 16:31:42 +01:00
Mathieu Pasquet
c0e010e2cd Write the config to a tmp file before a final copy
(should prevent some conditions leading to config
corruption happenning when poezio cannot write anymore)
2013-12-04 01:14:28 +01:00
Mathieu Pasquet
4a7e18cd03 Handle signals differently than /quit
- do not save the config (only for roster and stuff)
- do not except that resetting the curses state will work everytime
2013-12-04 00:11:44 +01:00
Mathieu Pasquet
0ad9712d0c refactor the texts in core to be more readable and fix some typos 2013-11-26 18:37:06 +01:00
Mathieu Pasquet
66d6c34f41 Fix a tb 2013-11-14 21:31:57 +01:00
Mathieu Pasquet
ff9478259d Add a /password command in the RosterTab
Thanks to Florob for the initial input
2013-11-14 21:26:19 +01:00
Florent Le Coz
0c507859fb On kick, get the actor 'nick', before trying the 'jid'
'nick' attribute has been introduced recently in the XEP. We still try the
'jid' attribute for backward compatibility. And also we don’t traceback
anymore if any of these fields is not present.
2013-11-13 00:42:08 +01:00
Florent Le Coz
e02f93a8ef Increase the number of chars to "jump" when the cursor goes out of the input 2013-10-21 00:41:50 +02:00
Florent Le Coz
32308646de And I forgot to scp this file :x 2013-10-21 00:22:39 +02:00
Florent Le Coz
b12a6b3ba9 Improve the input a lot
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-10-20 23:42:13 +02:00
Mathieu Pasquet
dd4f8661a9 Fix #2358 (/correct is broken in private conversations) 2013-10-06 22:45:38 +02:00
Mathieu Pasquet
0124ac1b06 Give help about tab-specific command first in /help
(the tab-specific commands were executed first, but their help wasn’t
given first)
2013-10-06 19:52:57 +02:00
Mathieu Pasquet
08ce5c6d00 , 2013-10-06 18:55:16 +02:00
Mathieu Pasquet
030d4b4b2a Fix #2361 (extract the PEP list directly from the XEPs) 2013-10-06 18:44:41 +02:00
Mathieu Pasquet
11c93a12a3 Fix a refresh issue in the roster 2013-10-06 18:09:33 +02:00
Mathieu Pasquet
8e63ad3a08 Fix #2373 (/message creates duplicate tabs) 2013-10-06 18:03:38 +02:00
Mathieu Pasquet
9c775da5f7 Fix #2369 (black nick color) 2013-09-19 00:28:11 +02:00
Mathieu Pasquet
40af34ad7c Fix #2372 (traceback on space in roster after disconnect)
selected_row wasn’t reset
2013-09-19 00:19:42 +02:00
Mathieu Pasquet
b245ff6e2d Fix /export 2013-09-16 13:08:28 +02:00
Florent Le Coz
099d1d1c2c TIL splitlines() 2013-09-06 17:35:50 +02:00
Florent Le Coz
4b662ffa67 Much more efficient and clean way to get the last n messages from history 2013-09-06 14:24:05 +02:00
mathieui
cb8884bae4 quote a completed word if it has \ in it 2013-08-16 17:49:05 +02: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
6f2cca61d4 Remove debug 2013-08-13 07:39:12 +02:00
mathieui
a724be0e72 Typo 2013-08-10 23:24:35 +02:00
mathieui
74de91e2bf Fix potential issues with import paths 2013-08-10 15:51:35 +02:00
mathieui
518f933fb8 Fix #2343 2013-08-10 01:50:03 +02:00
mathieui
64c1a09023 Fix #2337 (search the themes the same way than plugins)
- Load the themes from:
    1 - The sources found in the directory ../data/themes/ (if it
    exists)
    2 - The user-defined dir (or ~/.local/blah)
    3 - The poezio_themes package if found

- Also fix some potential issues with the plugins importer
2013-08-10 00:24:27 +02:00
mathieui
2fe84a1188 Fix a crash for python < 3.3 2013-08-06 22:23:47 +02:00
mathieui
3e7353758e Fix the folder creation for roster changes 2013-08-06 19:07:44 +02:00
mathieui
e40a3d72f5 Add a specific /invite command for the MucTab 2013-08-05 23:29:36 +02:00
mathieui
406454fdd0 Fix common.shell_split with empty strings 2013-08-05 19:45:08 +02:00
mathieui
feb101f158 Fix some refresh quirks 2013-08-04 15:29:43 +02:00
mathieui
416ceddbe4 Add the same pluggable "information element" to the PrivateTab 2013-08-04 15:28:35 +02:00
mathieui
d01f6208d6 If plugins removed the message body in a callback, don’t send it 2013-08-04 14:50:58 +02:00
mathieui
1496876136 Add the name of the plugin when loading it fails 2013-08-04 14:50:58 +02:00
mathieui
e5e63d4725 Prevent messages with typ=0 from being logged
(new typ value)
2013-08-04 14:50:57 +02:00
mathieui
7538093a07 Do not load logs if use_logs is false 2013-08-04 11:21:28 +02:00
mathieui
135ef1b364 Fix a traceback on get_logs 2013-08-04 11:06:05 +02:00
mathieui
decb2bb27e Remove test code added by accident 2013-08-03 19:30:09 +02:00
mathieui
31c2e23c4c Logs errors by default, in a dedicated file
- log_errors option, true by default
- errors go in log_dir/errors.log (so $XDG_DATA_HOME/errors.log
    by default)

This should help a lot for debugging, and provide a way for people
to easily give debug traces without useless or personal infos.
2013-08-03 19:27:25 +02:00
mathieui
6fbb2f8593 Fix #2317 (/join completion is broken)
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-02 22:00:53 +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
mathieui
2744234d52 Move /clear_infos to /clear for consistency 2013-08-01 12:38:46 +02:00