KTextEditorPreviewPlugin 0.2.1 has been released.
The plugin enables a live preview of the currently edited text document in the final format, in the sidebar (Kate) or as tool view (KDevelop). So when editing e.g. a Markdown text or an SVG image, the result is instantly visible next to the source text. For the display the plugin uses that KParts plugin which is currently selected as the preferred one for the MIME type of the document. If there is no KParts plugin for that type, no preview is possible.
Signed with my new PGP key
E191 FD5B E6F4 6870 F09E 82B2 024E 7FB4 3D01 5474
Friedrich W. H. Kossebau
Change since 0.2.0
- Translations improved and added for new languages (es, pl, ru)
This is the last stand-alone release of this plugin. It has been merged post-release as planned into the Kate repository, so will see its future releases as part of Kate, with the first being the ones as part of KDE Applications 17.12.
Developers: Improve your favourite KParts plugin
While a usual KParts plugin works out of the box, for a perfect experience with the Automatic Updating option some further improvements might be needed:
- Keeping the current view state if reloading from the same URL (e.g. scrolling offset, zoom)
- Implementing the KParts::ReadOnlyPart streaming API, to by-pass and thus preserve the filesystem/storage hardware:
A few KParts plugins have already seen such adaptions, like the SVGPart and the KUIViewerPart (see also blog post), adaptions to be released with KDE Applications 17.12.
Another KParts plugin has been written with that in mind from the start, the KMarkdownWebViewPart (see also blog post), which already has been released.
You might want to take some guidance by the respective commit “Support loading by stream and restoring state on reload” to the SVGPart repository.