Revert :quit to previous behavior, remove -all, alias :q to :close

This commit is contained in:
Aaron Gorodetzky
2018-07-12 05:53:01 -04:00
parent 49b9144cf0
commit 6ffd3edb5d
2 changed files with 4 additions and 9 deletions

View File

@@ -679,18 +679,13 @@ class Quitter:
@cmdutils.register(instance='quitter', name='quit')
@cmdutils.argument('session', completion=miscmodels.session)
def quit(self, all=False, save=False, session=None):
def quit(self, save=False, session=None):
"""Quit qutebrowser.
Args:
all: When given, closes all windows and kills the current instance
save: When given, save the open windows even if auto_save.session
is turned off.
session: The name of the session to save.
"""
if not all:
window = QApplication.activeWindow()
window.close()
return
if session is not None and not save:
raise cmdexc.CommandError("Session name given without --save!")
if save:

View File

@@ -3,9 +3,9 @@
aliases:
default:
w: session-save
q: quit
qa: quit --all
wqa: quit --all --save
q: close
qa: quit
wqa: quit --save
type:
name: Dict
keytype: