Bug 499085

Summary: new autosave feature is a bit quirky
Product: [Applications] kate Reporter: Vadym Krevs <vkrevs>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: vkrevs, waqar.17a
Priority: NOR    
Version First Reported In: 24.12.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Vadym Krevs 2025-01-24 09:49:53 UTC
SUMMARY

Make sure Enable Autosave is on in Settings->Configure Kate->Open/Save , with autosave interval of 2 seconds, with autosave on losing focus.

1. Click File->New. A new tab opens and is called "Untitled (NN)". Enter a couple of lines of text and wait for the autosave to kick in - and the title of tab changes to "Document (NN)". This is very confusing, especially compared to how autosave is done in other similar editors such as Notepad++.

2.  Under the tab names we see the full path to the temp file created by auto-save. Should it really be displayed? Again, Notepad++ doesn't.

3. With the last tab being the "Document (NN)" created in step 1, click File->New again and repeat step 1. Now you have another "Document (NN)" tab. With that last tab being active, click on Save As. 

4. File Save dialog opens prompting me to save the file in the temp location where all these "Document(NN)" temp files had been saved.  Which is probably not what you want ...

Before autosave, hitting Save As would always open the File Save dialog in the directory of the nearest (to the left of the current tab) saved file - which was far more logical and useful when one is working on a group of related files.



SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 15.6
KDE Plasma Version: 6.2.90
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Graphics Platform: X11
Graphics Processor: NVIDIA GeForce RTX 4060 Ti
Comment 1 Waqar Ahmed 2025-01-24 09:54:23 UTC
Yeah,, I don't think what you are seeing has anything to do with autosave at all.

Its session auto saving thats doing this (a different thing) because most likely you are using "Automatically save & restore newly created files" setting.
Comment 2 Waqar Ahmed 2025-01-24 09:55:57 UTC

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