diff --git a/README.asciidoc b/README.asciidoc index 759c8a719..815955963 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -128,12 +128,12 @@ Contributors, sorted by the number of commits in descending order: * Claude * John ShaggyTwoDope Jenkins * rikn00 +* Joel Torstensson * Brian Jackson * Martin Zimmermann * Mathias Fussenegger * Larry Hynes * Johannes Altmanninger -* Joel Torstensson * Regina Hug * Peter Vilim * Helen Sherwood-Taylor diff --git a/doc/help/commands.asciidoc b/doc/help/commands.asciidoc index a1c5e9e45..ab08c1451 100644 --- a/doc/help/commands.asciidoc +++ b/doc/help/commands.asciidoc @@ -13,6 +13,7 @@ |<>|Download a given URL, given as string. |<>|Download the current page. |<>|Go forward in the history of the current tab. +|<>|Toggle fullscreen mode. |<>|Show help about a command or setting. |<>|Start hinting. |<>|Open main startpage in current tab. @@ -123,6 +124,10 @@ Go forward in the history of the current tab. ==== count How many pages to go forward. +[[fullscreen]] +=== fullscreen +Toggle fullscreen mode. + [[help]] === help Syntax: +:help [*--tab*] [*--bg*] [*--window*] ['topic']+ diff --git a/qutebrowser/config/configdata.py b/qutebrowser/config/configdata.py index c21d342e2..6d59c18df 100644 --- a/qutebrowser/config/configdata.py +++ b/qutebrowser/config/configdata.py @@ -951,6 +951,7 @@ KEY_DATA = collections.OrderedDict([ ('forward', ['L']), ('forward -t', ['tl']), ('forward -w', ['wl']), + ('fullscreen', ['']), ('hint', ['f']), ('hint all tab', ['F']), ('hint all window', ['wf']), diff --git a/qutebrowser/mainwindow/mainwindow.py b/qutebrowser/mainwindow/mainwindow.py index 379f7b80f..a3c3fa0e4 100644 --- a/qutebrowser/mainwindow/mainwindow.py +++ b/qutebrowser/mainwindow/mainwindow.py @@ -305,6 +305,14 @@ class MainWindow(QWidget): """ super().close() + @cmdutils.register(instance='main-window', scope='window') + def fullscreen(self): + """Toggle fullscreen mode.""" + if self.isFullScreen(): + self.showNormal() + else: + self.showFullScreen() + def resizeEvent(self, e): """Extend resizewindow's resizeEvent to adjust completion.