summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-01doc/dev/slix: Fix Slixmpp titleMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-29Fix doc renderingpitchum
2019-06-22Update documentation for scrollback with the aliasMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-22Rename sb command 'scrollback' and make 'sb' an aliasMaxime “pep” Buquet
While this command exists in irssi and might be known by some already, 'sb' is not be the most obvious command name for newcomers. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-22Make function name clearerMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-22Merge remote-tracking branch 'origin/mr/31'Maxime “pep” Buquet
2019-06-22Rework priority handling for eventsMaxime “pep” Buquet
Introduce the concept of priority for event handlers, instead of the position parameter. The new `priority` parameter replacing `position` should be an integer between 0 and 100. It defaults to 50. The previous `position` parameter was only used to insert at a certain position in the list of handlers (for this particular event). No reference of it was kept, which means that it was not possible to ensure an event was called in the position is was supposed to be. I am now using per-event dicts, containing priority buckets (lists) of handlers. I am using OrderedDicts to make it easier to loop through all of the handlers, as insertion happens less often than reading. I was also suggested using bisect with a simple list of tuples (priority, handler) per event, but bisect tries to compare bound methods, which is obviously not possible. Maybe it would be interesting to find a way use this method instead of OrderedDict as that might be less resource consuming. This said, I don't think this part of poezio is a bottleneck at all, so maybe this is just fine as is. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-20Added few comments in the code and splitted a part of code into different ↵Madhur Garg
function.
2019-06-20Fixed some mistakes in coding styleMadhur Garg
2019-06-20Corrects the repeated refresh of the windowMadhur Garg
2019-06-20Updated usage of /sb in documentationMadhur Garg
2019-06-20Getting the line number of the message in the tab based on the searched ↵Madhur Garg
timestamp
2019-06-20Code work for /sb goto <+|-linecount>|<linenum>|<timestamp>Madhur Garg
2019-06-20Corrected code duplicationMadhur Garg
2019-06-20Corrected description of the scrollback commandMadhur Garg
2019-06-20Few imports for scrollback commandMadhur Garg
2019-06-20Documentation for scrollback command.Madhur Garg
2019-06-20Initial version of scrollbackMadhur Garg
2019-06-18Merge https://lab.louiz.org/poezio/poezioMadhur Garg
2019-06-17Merge remote-tracking branch 'origin/mr/35'Maxime “pep” Buquet
2019-06-17Updated copyright for lastlog pluginMadhur Garg
2019-06-14Corrected the search for lastlog messages and refresh of the window.Madhur Garg
Corrected the search for lastlog messages and refresh of the window. patch from Maxime Buquet Corrected the search for lastlog messages and refresh of the window.
2019-06-13Corrected the search for lastlog messages and refresh of the window.Madhur Garg
2019-06-13patch from Maxime BuquetMaxime Buquet
2019-06-12Corrected the search for lastlog messages and refresh of the window.Madhur Garg
2019-06-12initial version of a lastlog pluginMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-07plugins/figlet: error out when figlet doesn't existMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-05-28Also skip librsvg import on AttributeErrorEmmanuel Gil Peyrot
In the case python-gobject isn’t installed, but another package (such as libibus) provides overrides, the gi module will still get imported fine despite being empty, resulting in a traceback. To prevent this, we also catch AttributeError so that gi.require_version can fail.
2019-05-11plugins/ping: Import missing JID value (thanks madhur, and pylint)Maxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-05-07config: ensure tabname is not a JID objectMaxime “pep” Buquet
Tabnames should be treated as opaque strings. This specific fix prevents tabname (JID) to be compared with invalid stringly-typed JIDs. JID's __eq__ method used to (after poezio/slixmpp@47968963) try and convert anything into JIDs. This has been fixed and now properly returns NotImplemented. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-29ConversationTab: fix undefined reference, missing selfMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-28plugins: Update use of tab.name to tab.jid where appropriateMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-28MucTab: Replace tab.name with tab.jid where appropriateMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27Replace tab.name with tab.jidMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27multiuserchat: type change_show methodMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27core/commands: Use jid parameter instead of name where appropriateMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27core/completions: Use tab.jid where appropriateMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27CommandCore: remove None check on MucTab.jidMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27PrivateTab: Use jid parameter instead of name where appropriateMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27*ConversationTab: Use jid parameter instead of name where appropriateMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27OneToOneTab: Remove default value for jid parameterMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27ChatTab: Remove None checks on `ChatTab.jid`Maxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27ChatTab: Change ChatTab.name meaningMaxime “pep” Buquet
`ChatTab.name` is now its own property. It only mirrors `ChatTab.jid` when it is None for compat reasons. If code tries to set `ChatTab.name` and it is a valid JID, `ChatTab.jid` is set instead for compat reasons and `ChatTab.name` stays with its previous value. To have `ChatTab.name` mirror `ChatTab.jid` again, set it to None. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-27ChatTab: now accepts only Jids with a domainMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-24Merge remote-tracking branch 'origin/mr/29'Maxime “pep” Buquet
2019-04-21doc: Fix scroll_to_separator description.Emmanuel Gil Peyrot
2019-04-21doc: Rename keys into keyboard shortcuts, to be more easily discoverableEmmanuel Gil Peyrot
2019-04-19Refresh tab when information element is added or removedMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-18doc/commands: fix `versionadded` block indentationMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-17save_order, save: config option is not always a stringMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>