summaryrefslogtreecommitdiff
path: root/src/core.py
AgeCommit message (Collapse)Author
2012-11-30Force a resize of the interface whenever we /set something.Florent Le Coz
This avoid some garbage on the screen when we set an option that changes the behaviour of the UI.
2012-11-23Fix the timedelta for python 3.1mathieui
2012-11-17Changes to the plugin_dir option are now taken into account on runtimemathieui
2012-11-17Fix the history numbers when re-joining a roommathieui
the <history/> element had a xmlns="" instead of the proper namespace.
2012-11-05Fix a traceback when opening a conversation with a resource from the rostermathieui
2012-10-22Make the Executor class reliable.Florent Le Coz
Plugins do not need to escape the command arguments or remove the line breaks and care about how the will get parsed anymore, they just need to pass a list of args. Do not spawn an additional shell, for more clarity, simplicity and possibly security.
2012-10-15Fixes #2368 (/join /nick not working)mathieui
2012-10-15Put back the “truc@chose.com is now online” messagesmathieui
2012-10-14Fix a traceback on completion_versionmathieui
2012-10-14Rename /connect to /reconnect and make it rostertab-onlymathieui
2012-10-14Do not display "None" in the /self commandmathieui
2012-10-14Add decorators to handle refreshs more easilymathieui
(and fix one more issue with the refresh in the roster)
2012-10-14Do not quotify the status in /status command.Florent Le Coz
2012-10-13Fixes #2376 (Only open one XMLTab)mathieui
- Also make Core.focus_tab_named take an optional type, and return a boolean
2012-10-13Add a “debug” attribute to Coremathieui
2012-10-13Fixes #2380 (traceback on /invite)mathieui
2012-10-12When a message is corrected, display it correctly in place of the previous one.Emmanuel Gil Peyrot
2012-10-09Transform a char (\xf1) into what we meant (Ctrl+/, apparently).Florent Le Coz
If we try to send that, we get disconnected…
2012-10-09Send a real \t when pasting a text containing tabs.Florent Le Coz
2012-10-09Refresh less often when entering text.Florent Le Coz
2012-10-09Separate special keys from normal chars when receving a batch of chars.Florent Le Coz
In case of lags or paste of text, the input can yield a list of chars instead of just one char. In case of lags, keyboard special keys (KEY_BACKSPACE, ^W, etc) are mixed with other “normal” chars ('a', 'b', 'D', ' ' etc). Instead of handling that whole batch in one go (which requires us to ignore all the special keys, otherwise they would be displayed in the input, which are both bad ways to handle that), we separate special keys from the normal ones, and we handle that big batch as one or more smaller batches. This should make the input behave correctly in case of lag AND in case of paste of huge text (only one refresh per batch, respond instantly, no key lost or ignored, etc) fixed #2365
2012-09-27Prevent special keys to appear in the input when laggingmathieui
2012-09-27Fix the bug of Alt-e (go to important room)mathieui
2012-09-26Add a /move_tab commandmathieui
And break it down into understandable functions
2012-09-26Rewrite the tab number handlingmathieui
- Now the tab number is computed instead of assigned and fixed - Added tabs.GapTab to keep the old behaviour - Added a create_gaps option, defaults to true (may change in the future) - If there are gaps before using /set to change the option to false, they will be removed. (this is a preparation for the move_tab command)
2012-09-13Make the toggle left pane permanentmathieui
previously, the change wasn’t saved
2012-09-02An history_length of 0 was ignored (and the default length would be received)Florent Le Coz
2012-09-02added muc_history_length supportJohannes Krude
2012-08-08Fix yet another bunch of potential tracebacksmathieui
(notably, the /message one) All JID calls in poezio’s code were already covered, but sleekxmpp does that, too, so each jid given to sleek must be validated, otherwise an unwanted exception may occur.
2012-08-07Take care of the race condition "node@groupchat_server is now online/offline"mathieui
- get rid of the ugly blacklist thing that didn’t work sometimes
2012-08-06Add a common.safeJID function, and use it everywheremathieui
2012-08-05Should fix most tracebacks due to the new sleek versionmathieui
(sleekxmpp added JID validation, which means that JID(something) now raises an exception if the jid is invalid, instead of failing silently and having JID('') as a default)
2012-08-05Add a filter_info_messages optionmathieui
- This option takes a list of words separated by colons - All the messages containing those words will not be shown
2012-08-03Do not set last activity when sending a stanza because it makes no sensemathieui
2012-08-02Implement XEP-0012 (last activity) ; Fixes #1870mathieui
- 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-07-29/bind with only one argument now resets the bindingmathieui
2012-07-27Fix get_conversation_by_jid when a string is passed.Florent Le Coz
2012-07-26Add a /self commandmathieui
2012-07-26Add a /runkey commandmathieui
This allows the user to run the action defined on a key without having to press that key. The completion completes all the available keys that will have an effect.
2012-07-26Change how scrolling is donemathieui
- All functions involved return a boolean, and the core function use that value to determine if a refresh is needed or not. (avoids useless refreshs) - Scrolling with PGUP/DOWN on the roster now only does _one_ action, an not a range corresponding to the screen size (should be way faster)
2012-07-26Remove the duplicate function get_tab_of_conversation_with_jidmathieui
- get_conversation_by_jid() now behaves like the removed name
2012-07-26Refactor core.py to have meaningful sectionsmathieui
- Put the commands and the related completions together - Put the xmpp handlers together - Put the curses-using functions together
2012-07-26Small non-impacting modificationsmathieui
- Write the config with “option = value” instead of “option= value” - Docstring for sighup_handler - Optimize a join() in the main loop - Rename the verbose get_error_message_from_error_stanza() with get_error_message() - Remove the unused Tab.just_before_refresh() which is litterally used nowhere in poezio
2012-07-17Fix /version to find a fulljid when availablemathieui
And improve the completion in the roster (go to the resources)
2012-07-04Use no_auth instead of failed_auth eventmathieui
With failed_auth, poezio was showing an error message for each authentication mechanism tried (3, usually). This commit fixes that.
2012-07-03Do not reload plugins on reconnectionmathieui
If the plugins_autoload list was not empty, it caused the plugins to be reloaded upon each reconnection (with /connect or not). Now it does not.
2012-07-03Make /status comply with the command args rulemathieui
- if there are more args than handled, no message will be set - fix the 'status' plugin accordingly
2012-07-03Improve the simple_notify plugin and the daemon to execute a command to ↵Florent Le Coz
clean the notification and to execute the remote commands through sh -c, letting us use pipes and redirections. Also adds the highlight event for plugin, and make the simple_notify plugin use it as well.
2012-05-29Move ^D to ^Xmathieui
2012-05-22Remove the unused “port” option.mathieui
custom_port is already used instead.