Bug 467033 - Make the KATE preview plugin support additional mimetypes by external programs
Summary: Make the KATE preview plugin support additional mimetypes by external programs
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: plugin-preview (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-07 22:02 UTC by Valentin Petzel
Modified: 2024-11-02 17:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Valentin Petzel 2023-03-07 22:02:28 UTC
The preview plugin currently relies on the current document having a KPart able to view the current file. This strongly limits the use of the plugin. Often we are working with non preview-able files that are compiled to a preview-able file. Examples might be a TeX documents or Lilypond scores, which are turned into .pdf files using an external program.

I think it would increase the use cases for the preview plugin significantly if we could get it to handle such cases. One thing that could be done for example is to allow specification of output files for certain Mimetype, e.g. to have a configuration telling the preview plugin that e.g. on a file file.tex it should attempt to locate file.pdf for preview. Maybe this could even include an optional call to an external program so that updating the preview automatically renders the document using the given program (although this is not particularly important, as one can already configure such actions e.g. on save).
Comment 1 Christoph Cullmann 2024-11-02 17:39:54 UTC
One can add callbacks for that via the external tools plugin.