Commit graph

1111 commits

Author SHA1 Message Date
mathieui
f1a637f24b Add a new /bookmark_local command (that acts like the old one)
And modify the /bookmark command to send bookmarks online
2011-11-26 23:28:42 +01:00
mathieui
d2726c8892 Adapt the startup to the new bookmarks system 2011-11-26 23:27:42 +01:00
mathieui
4ce8721c3d Default to privatexml instead of pep for bookmarks storage
(since private xml sadly has a better support)
2011-11-26 23:26:15 +01:00
mathieui
97aaeb1d13 Load the XEP-0048 plugin on startup 2011-11-26 23:09:51 +01:00
mathieui
2ff8e40c22 Add stanza generators for the <storage/> element 2011-11-26 23:09:03 +01:00
mathieui
68c0ddeb29 Add save() methods to save bookmarks in every way 2011-11-26 23:08:41 +01:00
mathieui
1d5b331663 Add get_ methods to retrieve bookmarks locally/w/pubsub/privatexml 2011-11-26 23:07:31 +01:00
mathieui
2f5ecf24b7 Add a parser from xml Element to Bookmark 2011-11-26 23:06:11 +01:00
mathieui
64b8970d25 Enhance the Bookmark class 2011-11-26 23:05:09 +01:00
mathieui
2eaa540589 Add a Bookmark class 2011-11-26 15:47:41 +01:00
Florent Le Coz
bab0a143a3 Fix an error on data_forms tab 2011-11-25 22:13:20 +01:00
Florent Le Coz
67419b4a7f Fix split of args for /groupadd 2011-11-25 21:54:40 +01:00
Florent Le Coz
bbda0b7481 Fix /me in history messages in a better way. 2011-11-25 12:07:22 +01:00
Florent Le Coz
587bd44f9b Fix something with /me etc. 2011-11-25 12:02:03 +01:00
Florent Le Coz
b7f05a8aaf /recolor now reloads OWN_NICK_COLOR from the theme, and also add an
option to make /recolor choose random colors for others’ nicks.
2011-11-25 11:54:15 +01:00
Florent Le Coz
06156c3b77 Use the nick color for the “*” char in /me messages. 2011-11-25 11:42:50 +01:00
Florent Le Coz
bb22b39d55 /me now works in all chatabs
fixes #2302
2011-11-25 11:42:50 +01:00
Florent Le Coz
72c634aaea fixes #2270 2011-11-25 11:42:50 +01:00
Florent Le Coz
ac2b71e1ed Add the F4 key to toggle the left panel. 2011-11-25 11:42:50 +01:00
mathieui
42e9e29845 Add a /decline command 2011-11-24 23:03:43 +01:00
mathieui
77b386d0f1 Handle invitations (and do not show them as a message) 2011-11-24 23:03:43 +01:00
mathieui
cd9684043f Add a /invite command 2011-11-24 23:03:43 +01:00
mathieui
5e05ede948 Increase the size of the information buffer (20 is not enough) 2011-11-24 20:34:12 +01:00
mathieui
aa342ca341 Add a way to scroll up and down the information buffer 2011-11-24 20:33:52 +01:00
mathieui
a360588fa0 Fixes #2301 2011-11-24 14:28:34 +01:00
mathieui
c48e9ff582 Fixes #2299 2011-11-24 13:36:54 +01:00
mathieui
0206920a10 Fixes #2298 2011-11-24 13:30:48 +01:00
Florent Le Coz
8918163609 Nick completion doesn’t add a space after 2011-11-23 19:48:19 +01:00
Florent Le Coz
52fd54d2ff Remove this usell ++-- from poopt 2011-11-23 19:48:12 +01:00
Florent Le Coz
592d4fa300 Plugin API: add a method to put text in the input. 2011-11-23 09:09:15 +01:00
Florent Le Coz
fa9ea5d168 Use almost all available 256 colors for nick colors
(only colors that look too much like white or black are not used)
2011-11-23 09:08:02 +01:00
Florent Le Coz
97f7877ddb May improve some performance, but should be unnoticeable. 2011-11-20 00:42:13 +01:00
Florent Le Coz
f895d4a2f9 Restaure try: except: on derwin 2011-11-19 18:23:58 +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
Florent Le Coz
2d4d8e3f1c Restaure the enter key on contacts in the roster.
Don’t know why I broke that…
2011-11-18 20:03:16 +01:00
Florent Le Coz
abcd05d74b Restaure Ctrl+Enter -> \n 2011-11-18 19:34:38 +01:00
Florent Le Coz
7dd8691f8c Pasting text is now handled has one single big key.
This avoids looping over each char we are pasting, making it
a lot faster (actually, should be instant).
2011-11-18 19:14:07 +01:00
Florent Le Coz
18dbc880e1 Do not try to interpret keys as key shortcuts when pasting text.
Avoiding, for example, nickname completions when pasting a text containing
the \t char. Also, pasting is a little because it doesn’t search an associated
command for each pasted char. AWESOME.
2011-11-18 18:28:07 +01:00
Florent Le Coz
27e587118b Merge branch 'master' of http://git.louiz.org/poezio 2011-11-16 20:43:17 +01:00
Florent Le Coz
b2c84055df Add a vertical separator between the vertical tab list and the rest 2011-11-16 20:42:33 +01:00
mathieui
24ba3b6ed9 Add CHAR_CHATSTATE_* to the available theme options 2011-11-16 11:25:20 +01:00
mathieui
75f7d71080 Use os.path.expanduser to interpret '~' for _dir config options 2011-11-16 09:46:09 +01:00
mathieui
f40f5cb6c2 Add a wrapper for RawConfigParser.options() in PluginConfig 2011-11-16 09:44:07 +01:00
Florent Le Coz
c5b15c8119 Disable horizontal tab list when vertical one is enabled. 2011-11-16 03:10:37 +01:00
Florent Le Coz
a40199d8ef Add an option to display vertical tabs from bottom to top. 2011-11-16 02:23:40 +01:00
Florent Le Coz
1777d7414d Document the two new options. 2011-11-16 02:09:30 +01:00
Florent Le Coz
d67ec3278a Add an optional vertical tab list. 2011-11-16 02:09:30 +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
5c47b735b3 Should avoir connecting on port -1.
Fixes #2289
2011-11-15 19:41:49 +01:00
mathieui
c7ba8fd5b6 Fixes #2264 2011-11-15 19:37:59 +01:00
mathieui
e8837e252f Fixes #2292 2011-11-15 19:15:06 +01:00
mathieui
68aa832a49 Use Theme.CHAR_STATUS whenever it is possible
Fixes #2293
2011-11-15 19:07:57 +01:00
mathieui
0fe7061eb5 Fixes #2294 2011-11-15 18:48:09 +01:00
mathieui
4208920f42 Fixes #2279 2011-11-15 01:42:24 +01:00
mathieui
6e35dcf612 Fix PluginConfig.set 2011-11-14 20:45:59 +01:00
mathieui
e4634b9095 Completion for /version 2011-11-14 20:05:41 +01:00
mathieui
e4dccc8d8f Fix priority for command completion
(tab command > core command)
2011-11-14 20:05:13 +01:00
mathieui
a5f115a6e2 Fix Plugin.config.get to use the right section instead of Poezio 2011-11-14 00:45:15 +01:00
mathieui
338a4b5717 Add a way for a plugin to add a keybind only for a type of tab 2011-11-13 20:17:33 +01:00
mathieui
39fcd9a4f6 Allow a plugin to add a keybinding 2011-11-13 19:43:31 +01:00
mathieui
ba7ee1d76c Tweak auto_completion in order to add quotes only when needed 2011-11-13 18:45:44 +01:00
mathieui
587a74df6e Fix the completion with space-separated items
Fixes #2261
2011-11-13 18:37:17 +01:00
mathieui
34511797a9 Completion for /nick 2011-11-13 17:36:16 +01:00
mathieui
6af593f44b Completion for /info 2011-11-13 16:31:03 +01:00
mathieui
ed53ab4edf Completion for /query (re-uses /ignore) 2011-11-13 16:29:36 +01:00
mathieui
552c504559 Completion for /affiliation 2011-11-13 16:28:11 +01:00
mathieui
3ddbac5e47 Completion for /role 2011-11-13 16:25:11 +01:00
mathieui
23f5ee5e11 Fix /kick with nicks with spaces in it 2011-11-13 16:21:27 +01:00
mathieui
33f8efd772 Completion for /kick 2011-11-13 16:21:15 +01:00
mathieui
283b258d4e Completion for /ignore 2011-11-13 16:15:34 +01:00
mathieui
8f826388f0 Completion for /export and /import 2011-11-13 16:11:39 +01:00
mathieui
1fd21bc783 Completion for /server_cycle 2011-11-13 15:43:40 +01:00
mathieui
9d575afbf8 Completion for /message (re-uses the completion for /version) 2011-11-13 15:38:32 +01:00
mathieui
48679cb703 Completion for /theme 2011-11-13 15:33:17 +01:00
mathieui
97ac583aac Completion for /set_plugin 2011-11-13 15:27:21 +01:00
mathieui
23a9d88ce2 Completion for /set 2011-11-13 15:20:11 +01:00
mathieui
8cf237680b Completion for /bookmark 2011-11-13 15:12:52 +01:00
mathieui
98c342c1d4 Completion for /version 2011-11-13 14:34:45 +01:00
mathieui
30b9827a27 Move /clear to the chattab instead of the muctab 2011-11-13 14:31:11 +01:00
mathieui
6dfc2ef9b5 Completion for /presence 2011-11-13 14:28:25 +01:00
mathieui
1efdfcd566 Fix some incoherences and possible bugs with PluginConfig objects 2011-11-13 00:58:16 +01:00
mathieui
aac980cd4c Add a /set_plugin command 2011-11-13 00:57:54 +01:00
mathieui
4b02b1a812 Fix add_tab_command (and remove) 2011-11-13 00:25:30 +01:00
Florent Le Coz
e677a5bec1 When we receive a message, open a tab with the concerned FULL jid. 2011-11-12 06:09:22 +01:00
Florent Le Coz
a1096281e0 Fix an tb because the get_jid method was changed. 2011-11-12 06:02:05 +01:00
Florent Le Coz
9e8706a2e8 a plugin can now add informations in ConversationTab’s InfoWin. And the GPG plugin does that. 2011-11-12 05:48:29 +01:00
Florent Le Coz
744af2459d Add three new events to modify a message JUST before we send it. It is NOT safe, and the doc says that pretty clearly. It is used to encrypt messages just before sending them (this way we can remove ALL potential in-clear bodies). 2011-11-12 03:42:07 +01:00
Florent Le Coz
3dda32ea5b Do not ignore presence coming from a JID not in our roster. 2011-11-12 02:46:44 +01:00
Florent Le Coz
0c7674efb1 New event: send_normal_presence 2011-11-12 02:40:24 +01:00
mathieui
4d5e2d21a4 /xhtml command, Fixes #2237 2011-11-12 00:00:17 +01:00
mathieui
632175b79f Fix the xhtml parser (do not add wrong colors) 2011-11-11 23:55:31 +01:00
mathieui
1cca4b8a1f /rawxml command 2011-11-11 22:58:48 +01:00
mathieui
101b20724f Fix a refresh issue in the ConversationTab on status change 2011-11-11 22:45:44 +01:00
mathieui
b13f8786cf Modify /presence 2011-11-11 22:36:43 +01:00
mathieui
e53446a7b2 Add a /presence command for directed presences 2011-11-11 22:15:04 +01:00
mathieui
0cfe87a9a6 Fix a (possible) traceback on /remove 2011-11-11 22:13:51 +01:00
mathieui
ea5692544a Fixes presence handhake 2011-11-11 21:49:27 +01:00
mathieui
0cb9a5a61f Fixes #2271 2011-11-10 21:12:33 +01:00
mathieui
fde8a8a1c9 Fixes #2231 2011-11-10 20:59:55 +01:00
mathieui
80edd248ec Make custom_host and custom_port work better 2011-11-10 17:20:25 +01:00
mathieui
bd2d1caa0a Autoload plugins in session_start instead of core.__init__ 2011-11-10 17:06:28 +01:00
mathieui
eaced10c16 Also, do not crash when receiving a message from someone who is not a
contact
2011-11-10 15:26:34 +01:00
mathieui
5c12216392 Also in the DataFormTab 2011-11-10 15:17:30 +01:00
mathieui
628ff3b0d9 Add per_tab_type commands for the plugins 2011-11-10 14:39:19 +01:00
mathieui
953dc36c47 typo 2011-11-10 11:45:23 +01:00
mathieui
138a0b78cd Forgotten changes 2011-11-10 11:29:36 +01:00
mathieui
e467020e29 Add messages on plugin load/unload 2011-11-09 23:28:01 +01:00
mathieui
4e0c1b0820 New events in the plugins API 2011-11-09 23:17:00 +01:00
mathieui
f55a0c92f2 Do not send chatstates when the contact is offline 2011-11-09 22:34:16 +01:00
mathieui
1f5d104834 -get -set +@property +@property.setter 2011-11-09 22:00:38 +01:00
mathieui
e6663c317c Do not display an empty message when only a chatstate is received
(again).
2011-11-09 21:02:37 +01:00
mathieui
a7ed473437 What. 2011-11-09 18:39:33 +01:00
mathieui
e8e4b0bb4c Plugin docstrings 2011-11-09 18:38:56 +01:00
mathieui
0e10c04cce Fixed a display bug (the info buffer popped even in the RosterInfoTab) 2011-11-09 17:55:43 +01:00
mathieui
aee7baab24 Same as previous commit, but with _say 2011-11-09 14:29:13 +01:00
mathieui
5e840e6437 Give the concerned tab to the _msg handlers 2011-11-09 14:23:38 +01:00
mathieui
cc7f010aed Do not create a private tab when receiving only a chatstate 2011-11-09 14:07:10 +01:00
mathieui
98b9506983 Remove poezio_event_handler to keep only event_handler 2011-11-09 14:02:17 +01:00
Florent Le Coz
cfb074c178 Set version to 0.7.5 and update the changelog 2011-11-09 01:35:27 +01:00
Florent Le Coz
4a961c0dc6 Merge branch 'releases' 2011-11-09 01:34:48 +01:00
Florent Le Coz
23d81901e7 Merge remote-tracking branch 'origin/master' 2011-11-09 01:24:56 +01:00
Florent Le Coz
d3d7b397d0 Remove useless commands 2011-11-09 01:24:45 +01:00
Florent Le Coz
ad0b3b41ec Merge branch 'plugins'
Conflicts:
	README
	src/core.py
	src/tabs.py
2011-11-09 01:23:35 +01:00
mathieui
33b3c7e31a Correct the firstrun message 2011-11-09 00:13:54 +01:00
Florent Le Coz
8fad2f464a Update version to 0.7.2 2011-11-08 23:48:32 +01:00
mathieui
e61f496d29 Edited the help messages of the commands for clarity/consistency 2011-11-08 23:28:29 +01:00
mathieui
08349495af Fix /kick with the optional message 2011-11-08 22:03:33 +01:00
mathieui
95dcaa7fec Forgot those hardcoded values… 2011-11-08 20:51:48 +01:00
Florent Le Coz
d28b70ccd4 Some documentation improvements. 2011-11-08 19:39:52 +01:00
Florent Le Coz
d2c02174c8 /theme takes an optional argument to change the theme directly. 2011-11-08 19:56:46 +01:00
Florent Le Coz
cd0b2681e0 Fix new messages separator when it is a the top of the text window 2011-11-08 02:41:19 +01:00
Florent Le Coz
b3072bd261 Merge branch 'master' into plugins
Conflicts:
	src/tabs.py
	src/xhtml.py
2011-11-08 02:15:57 +01:00
Florent Le Coz
d83eda6fd4 escape <, > and & in xhtml-im bodies. 2011-11-08 02:07:40 +01:00
Florent Le Coz
1ccfd09552 poopt now handles correctly the size of the chars by jumping
the color attributes properly and ignoring their length.
2011-11-08 01:52:39 +01:00
Florent Le Coz
b8b54735c7 Merge remote-tracking branch 'origin/plugins' into plugins 2011-11-08 00:53:31 +01:00
mathieui
c2798ba8de Display actual status message on contact connection instead of
unreadable status type
2011-11-08 00:47:56 +01:00
mathieui
1b06a7d48b Add a warning in case of theme not found, and now unsetting 'theme',
setting it to 'default' or a number of spaces has the same effect
2011-11-08 00:47:56 +01:00
mathieui
9c688795d1 Removed "WARNING" debug messages, because they are irrelevant 2011-11-08 00:47:56 +01:00
mathieui
f2b228e692 Refresh the RosterInfoTab on got_offline and got_online 2011-11-08 00:47:56 +01:00
mathieui
1f0ffa9253 Fix subscriptions (/add → /accept instead of /add → /accept → /accept) 2011-11-08 00:47:56 +01:00
mathieui
b3b5d0229e Move a space (for perfectionnists) 2011-11-08 00:47:56 +01:00
mathieui
8c231287bd Make private join/parts work properly 2011-11-08 00:47:56 +01:00
mathieui
51364f7bea Code cleanup (unused import, variables, undefined names, etc…) 2011-11-08 00:47:56 +01:00
Florent Le Coz
9c5cab09d4 fix the last errors that are in another commit that I don’t want
to cherry-pick.
2011-11-08 00:41:32 +01:00
Florent Le Coz
52599f9b8c use only full color mode when sending messages. Simple color mode should never
be used in any part of the code except inside the input.
(cherry picked from commit 17e5411d8f)

Conflicts:

	src/tabs.py
2011-11-08 00:31:11 +01:00
mathieui
7d6c92ffc6 Add a command /clear_infos 2011-11-08 00:30:53 +01:00
Florent Le Coz
4610a1d6e3 trigger events *_say BEFORE generating the xhtml, making it possible to add colors in the hook
Conflicts:

	src/tabs.py
2011-11-08 00:19:31 +01:00