Add :version command

This commit is contained in:
Florian Bruhin 2014-02-21 20:00:02 +01:00
parent 257e6cd67d
commit 5d32df1d54
2 changed files with 8 additions and 0 deletions

View File

@ -376,6 +376,7 @@ class QuteBrowser(QApplication):
'paste': browser.paste,
'tabpaste': browser.tabpaste,
'crash': self.crash,
'version': lambda: browser.openurl('qute:version'),
'zoomin': browser.cur_zoom_in,
'zoomout': browser.cur_zoom_out,
}

View File

@ -302,3 +302,10 @@ class Crash(Command):
nargs = 0
hide = True
class Version(Command):
"""Show version information."""
nargs = 0