From 5d32df1d5437153bec464f52fce6f669f561cfb5 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 21 Feb 2014 20:00:02 +0100 Subject: [PATCH] Add :version command --- qutebrowser/app.py | 1 + qutebrowser/commands/commands.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/qutebrowser/app.py b/qutebrowser/app.py index 37b9db7e9..89053ac25 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -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, } diff --git a/qutebrowser/commands/commands.py b/qutebrowser/commands/commands.py index fb1a34e7f..2d307c938 100644 --- a/qutebrowser/commands/commands.py +++ b/qutebrowser/commands/commands.py @@ -302,3 +302,10 @@ class Crash(Command): nargs = 0 hide = True + + +class Version(Command): + + """Show version information.""" + + nargs = 0