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

            Bug ID: 384973
           Summary: No preview for initially loaded document in Kate
           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: ---

The first document loaded into Kate does not get any preview. Both if loaded
via commandline argument or when selecting a file via the Open dialog.

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).
Kate reuses the initially shown empty document for loading the initial file
(unless the document was edited). So the preview plugin, which only updates on
new document objects currently, misses to learn about a new file being loaded.

Workaround:
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