https://bugs.kde.org/show_bug.cgi?id=384449

            Bug ID: 384449
           Summary: New documents (without storage url) have mimetype
                    guessed without respecting selected mode/highlighting
           Product: frameworks-ktexteditor
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: kosse...@kde.org
  Target Milestone: ---

When creating a new text document in Kate (or KDevelop), estimation of the
mimetype of the document in KTextEditor::DocumentPrivate::mimeType() is only
done based on content, which in many cases will fail due to missing
intelligence by the mime database (e.g. Markdown content).
The user though has the chance to manually select a filetype mode (from
Tools/Mode menu) in case the detection fails (and I surely are not the only one
to do that). And usually they select a matching mode.
So in the case that there is only one mimetype covered by a filetype mode, it
would be helpful to have the mimetype of the document being overruled by the
filetype mode setting. And in other cases some further control by the user of
the mimetype is needed.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to