Bug 447788 - Auto-complete file-type suffix on file save
Summary: Auto-complete file-type suffix on file save
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 21.12.0
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-01 17:09 UTC by DaCoEx
Modified: 2025-03-01 17:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.