Bug 447788

Summary: Auto-complete file-type suffix on file save
Product: [Applications] kate Reporter: DaCoEx <dacoex>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: christoph
Priority: NOR    
Version First Reported In: 21.12.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description DaCoEx 2022-01-01 17:09:29 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

On saving, Kate could have a list of file-types.


STEPS TO REPRODUCE
1. Start a new file in Kate
2. Save file
3. dialogue only offers: file name & filter


OBSERVED RESULT
Save without adding a ".txt" after file name does not have a file ending / suffix

EXPECTED RESULT
* if no code is detected, the save dialog shall suggest or automatically append ".txt" to the entered file name
* if the highlighting detects other languages, it may suggest the corresponding ending such as ".sh", ".html", ".css", ".py", ".php", etc.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.10
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Kernel Version: 5.13.0-22-generic (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Comment 1 DaCoEx 2022-01-01 17:11:48 UTC
In addition:

EXPECTED RESULT

Below the field "filter" in the file save dialogue there should be selection field for the most common file types.
Comment 2 Christoph Cullmann 2022-01-09 11:44:16 UTC
That is a valid improvement wish.
But somebody must step up to work on this.
Comment 3 Christoph Cullmann 2025-03-01 17:51:52 UTC
Nobody had time for that, it is not even totally clear how to do it without annoying people.

If somebody provides a merge request for that, we can reconsider, see

https://kate-editor.org/join-us/

how to help out.