Use -p for :save-session --with-private

This commit is contained in:
Florian Bruhin 2017-05-16 06:28:21 +02:00
parent e13a5c0f17
commit adb924a758
2 changed files with 2 additions and 1 deletions

View File

@ -759,7 +759,7 @@ Save a session.
* +*-q*+, +*--quiet*+: Don't show confirmation message.
* +*-f*+, +*--force*+: Force saving internal sessions (starting with an underline).
* +*-o*+, +*--only-active-window*+: Saves only tabs of the currently active window.
* +*-w*+, +*--with-private*+: Include private windows.
* +*-p*+, +*--with-private*+: Include private windows.
[[set]]
=== set

View File

@ -451,6 +451,7 @@ class SessionManager(QObject):
@cmdutils.register(name=['session-save', 'w'], instance='session-manager')
@cmdutils.argument('name', completion=usertypes.Completion.sessions)
@cmdutils.argument('win_id', win_id=True)
@cmdutils.argument('with_private', flag='p')
def session_save(self, name: str = default, current=False, quiet=False,
force=False, only_active_window=False, with_private=False,
win_id=None):