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

            Bug ID: 384971
           Summary: No preview for new documents
           Product: kate
           Version: Git
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: plugin-preview
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: kosse...@kde.org
                CC: kosse...@kde.org
        Depends on: 384448, 384449
  Target Milestone: ---

When creating a new document in Kate or KDevelop and entering some data, e.g. a
Markdown text, the preview plugin does not show any preview. Even not when
selecting a Mode or after saving the document to a file.

Reason is that the plugin relies on the MIME type reported for the document.
Right now KTextEditor only estimates that MIME type on request instead of
maintaining this property itself and notifying clients about any changes (see
bugs this report depends on). 

Workaround:
Best ensure the new document is saved at least once (for MIME types only
detected by file suffix). Then either close & open again the file or switch the
preview plugin shortly to preview another open document.


Referenced Bugs:

https://bugs.kde.org/show_bug.cgi?id=384448
[Bug 384448] No KTextEditor::Document::mimeTypeChanged signal available
https://bugs.kde.org/show_bug.cgi?id=384449
[Bug 384449] New documents (without storage url) have mimetype guessed without
respecting selected mode/highlighting
-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to