Bug 406617

Summary: Use .editorconfig and .kateconfig at the same time
Product: [Applications] kate Reporter: sniperrifle2004
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WAITINGFORINFO    
Severity: wishlist CC: gszymaszek, nate, tcanabrava
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Unspecified   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description sniperrifle2004 2019-04-17 04:39:08 UTC
I am currently moving from atom to kate and have some difficulty getting the combination of settings I want for a project. The project uses a .editorconfig for consistent indentation and other general settings and this works fine. Unfortunately this does not support connecting a file type to a glob, which means syntax highlighting does not always work properly (In particular with templating languages or files with extensions that are otherwise not directly mappable to their syntax).

So I decided to use a personal .kateconfig file with document variables to set the syntax. However after that the editorconfig settings were no longer applied. I did read that KatePart prioritizes .kateconfig files, but I did not expect the editorconfig to be ignored completely.

So I would like kate to read them both, so I can leverage kate-wildcard document variables for stuff that editorconfig doesn't handle. I suggest reading configuration like this (Altered from https://docs.kde.org/stable5/en/applications/katepart/config-variables.html):

 - The global configuration.
 - Optional session data.
 - The "Filetype" configuration.
 > - Properties in .editorconfig. <
 - Document variables in .kateconfig.
 - Document variables in the document itself.
 - Settings made during editing from menu or command line.

NOTE: From a project "I want consistent settings" perspective it would make more sense to prioritize editorconfig, but from the editor perspective prioritizing the editor specific configuration makes more sense. It's tricky because both configurations work at the same logical level.
Comment 1 Christoph Cullmann 2023-04-16 16:41:47 UTC
Dear user, this wish list item is now closed, as it wasn't touched in the last two years and no contributor stepped up to implement it.

The Kate/KTextEditor team is small and we can just try to keep up with fixing bugs.

Therefore wishes that show no activity for a years or more will be closed from now on to keep at least a bit overview about 'current' wishs of the users.
If you want your feature to be implemented, please step up to provide some patch for it.

If you think it is really needed, you can reopen your request, but keep in mind,
if no new good arguments are made and no people get attracted to help out to implement it,
it will expire in a year again.

We have a nice website https://kate-editor.org that provides all the information needed to contribute, please make use of it.

e.g. see the information at https://kate-editor.org/join-us/ for details

Greetings
Christoph Cullmann