Bug 453970

Summary: Get filetype from vim:set ft=<type>
Product: [Applications] kate Reporter: Sam <thenerdiestguy>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: christoph, gl.ivanovsky
Priority: NOR    
Version First Reported In: 22.04.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sam 2022-05-18 07:00:14 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
***

Some files have a comment with `# vim:set ft=sh` or something else. If kate could also understand it then that would be nice.

OBSERVED RESULT
Kate does not care about it

EXPECTED RESULT
Kate should set the filetype accordingly

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Christoph Cullmann 2024-10-19 20:37:55 UTC
That is a nice idea but would require some mapping from vi types to our ones. I don't think we will have time to spend on that. We support our own modelines.