Bug 319396

Summary: Kate should ask for a session name upon clicking "Save session" in an unnamed session
Product: [Applications] kate Reporter: Shriramana Sharma <samjnaa>
Component: sessionsAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: bob.mt.wya, kde_bugs, michal.humpula, nate, oss
Priority: NOR    
Version: 3.10.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 19.04.0

Description Shriramana Sharma 2013-05-06 06:29:16 UTC
Steps to reproduce:
Open Kate to a fresh unnamed session.
Open a few files (or not).
Click Sessions > Save Session.

Observed:
Nothing happens. The current session is not saved since it is unnamed. (If we are in a named session it does work as expected.)

Desired:
In an unnamed session, clicking on Save Session should ask for a session name. IOW, it should behave the same as Save Session As. This is the same as doing Ctrl+S or File>Save when an unnamed document is open.
Comment 1 Gerald Senarclens de Grancy 2014-12-24 22:18:39 UTC
*** Bug 342057 has been marked as a duplicate of this bug. ***
Comment 2 Michal Humpula 2015-02-14 19:42:12 UTC
This get's a little bit tricky. There actualy is a functionality behind saving an unnamed session. It's currently the only way to configure plugins and view layouts for unnamed session.

But yeah, it's not clear from the first look. UX is not easy:)
Comment 3 Bob Wya 2016-07-07 19:25:50 UTC
*** Bug 362864 has been marked as a duplicate of this bug. ***
Comment 4 kde 2018-10-27 22:03:24 UTC
*** Bug 268913 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Cullmann 2019-03-02 15:13:51 UTC
Git commit dd54d50732158581aa97cce36fc170025b71be96 by Christoph Cullmann, on behalf of Ahmad Samir.
Committed on 02/03/2019 at 15:15.
Pushed by cullmann into branch 'master'.

Make "Save Session" action ask for a name for anonymous sessions

Summary:
When invoking "Save Session", kate should ask for a session name if
the session is anonymous, i.e. the same behaviour when using saving a
a new file/unnamed document.
FIXED-IN: 19.04.0

Test Plan:
Opening a kate instance with a new/anonymous session and invoking
"Save Session" should ask the user to enter a name for the session.

Reviewers: #kate, cullmann, dhaumann

Reviewed By: #kate, cullmann

Subscribers: ngraham, kwrite-devel, #kate

Tags: #kate

Differential Revision: https://phabricator.kde.org/D19017

M  +5    -1    kate/session/katesessionmanager.cpp

https://commits.kde.org/kate/dd54d50732158581aa97cce36fc170025b71be96