[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2022-02-25 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #24 from Piotr Mierzwinski  ---
Shame this behavior is linked with session only, and not with single file like
it happens in Notepad++. 
I hope that also Kwrite will get such feature.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2022-02-25 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #23 from Piotr Mierzwinski  ---
> Reopen kate using the same command: "kate -s new_session"

It works even I just open again Kate (I have checked option to open last
session)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2022-02-25 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #22 from Piotr Mierzwinski  ---
Created attachment 147122
  --> https://bugs.kde.org/attachment.cgi?id=147122=edit
Kate session

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2022-02-25 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #21 from Piotr Mierzwinski  ---
(In reply to Waqar Ahmed from comment #19)
> Do you have a session?
> 
> Try the following
> 
> - kate -s new_session
> - type something
> - hit X - close kate
> 
> Reopen kate using the same command: "kate -s new_session"

Yes. I had a session (check screenshot) . I opened: "Session -> Quick Open
session -> Anonymous"  and in next window I clicked "Discard"> After that view
of Kate window changed and ,magically my changes appeared. Seems something was
cached incorrectly. 

Your scenario works.

I wonder why when I  use "New session" from option "Session" I don't get any
question for new session name only is opened new document. I open new, modify,
try to close and Kate asks me for saving. So seems any (default) session wasn't
created. If this doesn't work, so I'm not I'm not able to create new session
from GUI. When I do the same using option "Manage Session -> New Session" I get
the same result. Please check this. I can raise bug for this if you confirm
that this is the bug.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2022-02-25 Thread Waqar Ahmed
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #20 from Waqar Ahmed  ---
The above works for me, haven't noticed any issues lately with that.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2022-02-25 Thread Waqar Ahmed
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #19 from Waqar Ahmed  ---
Do you have a session?

Try the following

- kate -s new_session
- type something
- hit X - close kate

Reopen kate using the same command: "kate -s new_session"

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2022-02-25 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #18 from Piotr Mierzwinski  ---
Simple test when I manually closed Kate and run it again (without logging out)
gave the same result - all changes gone.
Thanks that test I know that this is not the issue with restoring desktop
session.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2022-02-25 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #17 from Piotr Mierzwinski  ---
(In reply to Waqar Ahmed from comment #15)
> Created attachment 147104 [details]
> Screenshot of settings
> 
> Can you check if you have the settings in linked screenshot enabled?

Today update Neon just after 8pm. Opened Kate and found that I have checked
both right option (check attachment).
I made the same test, so modified file, logged out and logged in.  In result
nothing was restored, all changes gone.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2022-02-25 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #16 from Piotr Mierzwinski  ---
Created attachment 147121
  --> https://bugs.kde.org/attachment.cgi?id=147121=edit
Kate_Applicatio-Shutdown-behaviour

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2022-02-24 Thread Waqar Ahmed
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #15 from Waqar Ahmed  ---
Created attachment 147104
  --> https://bugs.kde.org/attachment.cgi?id=147104=edit
Screenshot of settings

Can you check if you have the settings in linked screenshot enabled?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2022-02-24 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #14 from Piotr Mierzwinski  ---
(In reply to Waqar Ahmed from comment #13)
> Dont reopen bugs that are fixed.
Sorry, but from my point of view isn't fixed, rather is fixed partially because
Kate doesn't complain about save when is closing with not saved document.
Nevertheless seems document isn't save as temporary, otherwise would be
reloaded properly after next start of Kate. I understand this like that. 

> Secondly, maybe your bugs is in plasma i.e., maybe it doesn't start kate
> correctly. Or maybe its already fixed as mentioned above.
What do you mean "doesn't start kate correctly"?
After next login, desktop session is restored and I can see opened Kate with
its session, but document changed previously, and not saved  it' not loaded.
How can I identify that Kate doesn't start correctly?
I don't see any error messages.

Did you test this issue with my settings, so I mean when desktop session is
restored?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2022-02-23 Thread Waqar Ahmed
https://bugs.kde.org/show_bug.cgi?id=385275

Waqar Ahmed  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--- Comment #13 from Waqar Ahmed  ---
Dont reopen bugs that are fixed.

Secondly, maybe your bugs is in plasma i.e., maybe it doesn't start kate
correctly. Or maybe its already fixed as mentioned above.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2022-02-23 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=385275

Piotr Mierzwinski  changed:

   What|Removed |Added

 Resolution|FIXED   |---
 Status|RESOLVED|REOPENED

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2022-02-23 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #12 from Piotr Mierzwinski  ---
(In reply to Waqar Ahmed from comment #11)
> > Anyway, as I described in post sent at 2021-07-26 22:01:06 CEST  feature 
> > doesn't work well for Kate. Nothing not saved back when the Plasma session 
> > is restored.
> 
> I don't understand what you mean by "Plasma session is restored". This is
> why I asked you for a new bug and detailed steps.
OK. Maybe I used misleading words. I meant "Desktop session".
I have checked following option in System Settings: Workspace -> Desktop
Session -> When logged in: Restore previous saved session", so after next log
in I get all recently opened windows (applications). Kate is run of course, but
all not saved changes in modified file, which i left before log off,
disappearing. So unsaved changes are not restored.


> We fixed a bug with restoration very recently (22.04) though, so maybe the
> issue you are facing is already gone.
I tested this in recent Neon, so I update it ~22:15 today. Kate version is
22.03.70, KFramework 5.92
Unfortunately it doesn't work at all.
Simple test I made was.
1. Run Kate with its saved session. 
2. Modified one file
3. After ~1min. I logged off
4. I logged in again
Checked Kate and found that all my changes gone.
Settings in Kate:
Swap file mode: Enabled, Save in Custom Directory
and here I have location where I can write.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2022-02-22 Thread Waqar Ahmed
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #11 from Waqar Ahmed  ---
> Anyway, as I described in post sent at 2021-07-26 22:01:06 CEST  feature 
> doesn't work well for Kate. Nothing not saved back when the Plasma session is 
> restored.

I don't understand what you mean by "Plasma session is restored". This is why I
asked you for a new bug and detailed steps.

We fixed a bug with restoration very recently (22.04) though, so maybe the
issue you are facing is already gone.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2022-02-22 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #10 from Piotr Mierzwinski  ---
> Second thing is that this (not asking for file save not saved file) works 
> only in Kate. When I tried to do the same with kwrite, it asked me for 
> saveing file. Please notice that I had the same setting in both.

>New bugs for new issues. The feature is implemented now (which this bug is 
>about) but we need to refine it more, so please open a new bug 
> with steps on how to reproduce the bug you are facing.

Yes you are right. Sorry I mixed the things.
Anyway, as I described in post sent at 2021-07-26 22:01:06 CEST  feature
doesn't work well for Kate. Nothing not saved back when the Plasma session is
restored.
Also would be nice to have this feature in KWrite also.
I will open new bug report for Kate and a wish for KWrite.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2022-02-22 Thread Waqar Ahmed
https://bugs.kde.org/show_bug.cgi?id=385275

Waqar Ahmed  changed:

   What|Removed |Added

 CC||waqar@gmail.com
 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--- Comment #9 from Waqar Ahmed  ---
> Only the problem is that after kate  starts with new session of Plasma then 
> changes made before closing are not restored, so nothing was swapped in 
> moment on kate was closed. 
Second thing is that this (not asking for file save not saved file) works only
in Kate. When I tried to do the same with kwrite, it asked me for saveing file.
Please notice that I had the same setting in both.

New bugs for new issues. The feature is implemented now (which this bug is
about) but we need to refine it more, so please open a new bug with steps on
how to reproduce the bug you are facing.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2021-07-26 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #8 from Piotr Mierzwinski  ---
I tested this also in Neon updated at Jul, 24th 2021 (details belwow) and
noticed that when I close kate with not saved file then it doesn't ask me for
saveing this file. The same is happen when I have in kate not saved file and
try to logoff or shutdown the system. Nice. Only the problem is that after kate
 starts with new session of Plasma then changes made before closing are not
restored, so nothing was swapped in moment on kate was closed. 
Second thing is that this (not asking for file save not saved file) works only
in Kate. When I tried to do the same with kwrite, it asked me for saveing file.
Please notice that I had the same setting in both.

Kate 21.11.70
Plasma 5.22.80
Framework 5.85
Qt-5.15.3
Graphics X11
Kernel 5.8.0

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2021-07-22 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #7 from Piotr Mierzwinski  ---
kio 5.84
kio-fuse 5.0.1
kdesdk-kioslaves 21.04.3

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2021-07-22 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=385275

Piotr Mierzwinski  changed:

   What|Removed |Added

Version|unspecified |21.04.3

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2021-07-19 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #6 from Piotr Mierzwinski  ---
Created attachment 140202
  --> https://bugs.kde.org/attachment.cgi?id=140202=edit
kwrite - File Opening & Saving-2

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2021-07-19 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=385275

Piotr Mierzwinski  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Ever confirmed|0   |1
 Resolution|DUPLICATE   |---

--- Comment #5 from Piotr Mierzwinski  ---
I'm not sure if bug which was linked with this one and fixed (at March), so Bug
353654 is actually related with this issue.
Anyway still I experience behaviour described below .  I mean every time kwrite
asks me for saving, not saved document, when I close application or when try to
log off or turn off my PC. 
Of course swap file option is turned on (check attached screen shot). I tested
with default location and selected one. 
I tested this on newly created user.

KWrite  21.04.3
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2  (with KDE patches)
Kernel Version: 5.12.15-arch1-1 (64-bit)
Graphics Platform: X11
Operating System: Antergos Linux

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2021-07-19 Thread Piotr Mierzwinski
https://bugs.kde.org/show_bug.cgi?id=385275

Piotr Mierzwinski  changed:

   What|Removed |Added

 CC||piotr.mierzwin...@gmail.com

--- Comment #4 from Piotr Mierzwinski  ---
Created attachment 140201
  --> https://bugs.kde.org/attachment.cgi?id=140201=edit
kwrite - File Opening & Saving

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2017-12-06 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=385275

--- Comment #3 from Nate Graham  ---


*** This bug has been marked as a duplicate of bug 353654 ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2017-12-06 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=385275

Nate Graham  changed:

   What|Removed |Added

 Resolution|--- |DUPLICATE
 Status|UNCONFIRMED |RESOLVED

--- Comment #2 from Nate Graham  ---


*** This bug has been marked as a duplicate of bug 352440 ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 385275] When exiting the application don't force user to save, unsaved document only save it as temporary

2017-10-01 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=385275

Nate Graham  changed:

   What|Removed |Added

 CC||pointedst...@zoho.com

--- Comment #1 from Nate Graham  ---
Apple's TextEdit does this, too.

-- 
You are receiving this mail because:
You are watching all bug changes.