diff options
author | louiz’ <louiz@louiz.org> | 2016-10-14 11:01:43 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-10-14 11:01:43 +0200 |
commit | abb41d5750c3a85f3f9c4baca73b1b145a8aa83c (patch) | |
tree | e5a8becde7fa84c28c32a4fa2e97204165d92066 | |
parent | 4b66b5191c61e52d346e5577de5e8d687f652d48 (diff) | |
download | poezio-abb41d5750c3a85f3f9c4baca73b1b145a8aa83c.tar.gz poezio-abb41d5750c3a85f3f9c4baca73b1b145a8aa83c.tar.bz2 poezio-abb41d5750c3a85f3f9c4baca73b1b145a8aa83c.tar.xz poezio-abb41d5750c3a85f3f9c4baca73b1b145a8aa83c.zip |
Rename /reset to /filter_reset in XML tab, for consistency
-rw-r--r-- | doc/source/commands.rst | 2 | ||||
-rw-r--r-- | poezio/tabs/xmltab.py | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/doc/source/commands.rst b/doc/source/commands.rst index 7eebdb43..83884a6a 100644 --- a/doc/source/commands.rst +++ b/doc/source/commands.rst @@ -625,7 +625,7 @@ XML tab commands Write the content of the XML buffer into a file. - /reset + /filter_reset Reset the stanza filters. /filter_id diff --git a/poezio/tabs/xmltab.py b/poezio/tabs/xmltab.py index 3fdaffc7..9ed7a77f 100644 --- a/poezio/tabs/xmltab.py +++ b/poezio/tabs/xmltab.py @@ -72,7 +72,7 @@ class XMLTab(Tab): shortdesc="Close this tab.") self.register_command('clear', self.command_clear, shortdesc='Clear the current buffer.') - self.register_command('reset', self.command_reset, + self.register_command('filter_reset', self.command_filter_reset, shortdesc='Reset the stanza filter.') self.register_command('filter_id', self.command_filter_id, usage='<id>', @@ -167,7 +167,7 @@ class XMLTab(Tab): self.refresh() except Exception as e: self.core.information('Invalid XML Mask: %s' % e, 'Error') - self.command_reset('') + self.command_filter_reset('') @command_args_parser.raw def command_filter_to(self, jid): @@ -216,11 +216,11 @@ class XMLTab(Tab): self.refresh() except: self.core.information('Invalid XML Path', 'Error') - self.command_reset('') + self.command_filter_reset('') @command_args_parser.ignored - def command_reset(self): - """/reset""" + def command_filter_reset(self): + """/filter_reset""" if self.filters: self.filters = [] self.filtered_buffer.del_window(self.text_win) |