Look what you have done^W^Wdo!

You are using Kate or KDevelop and often editing directly the sources of Markdown files, Qt UI files, SVG files, Dot graph files and whatever else formats which are based on plain text files?

And you are having to use a workflow to check the current state which is saving the file and (re)loading it in a separate viewer application?

Could be better, right? Perhaps like this:

Nice mock-up. Or is it? Seems not! So, KParts-based preview plugin for Kate & KDevelop coming soon near you to a well-stocked package repository? Read the whole story where things are heading.

And a Markdown kpart? Never seen before. Because it is new. Actually seems the week of Markdown in the KDE community, there is also a patch on review to add Markdown support for Okular. Sadly Markdown support in Okular with the Okular kpart would not yet replace that separate Markdown kpart, because Okular does not support webview-style display (single “reactive” page), misses support for data streaming without touching the filesystem, and has too much chrome in the kpart for simple usage. Hope is on the future and somebody (you?) improving that. I am doing my share of improving things with this preview plugin, so I am out 🙂

Advertisements

15 thoughts on “Look what you have done^W^Wdo!

  1. Cool thing Friedrich. One thing I regret re Markdown is that we still have no native previewer for such a simple format while we have previewer for ODF or DOCX…. Web view based code is too easy approach…

    Thanks anyway, one day going to fork kmarkdownwebview.git until it’s supported by distros (might by years).

    • Yes, I feel dirty 🙂 But the Okular markdown plugin could show the way, happy to see that.

      kmarkdownwebview currently moving into kdereview, so first release planned for begin of September.

    • If there was a kpart which takes tex files as input and internally processes them and displays the resulting document, e.g. the dvi blob, that would work with this. The preview plugin itself just delegates support for individual formats, i.e. loading a kpart and streaming the data of the current document to it.
      I only know of kparts being able to display the dvi files themselves, so those would be of not help here.

      Also, right now the design of this first version of the preview plugin assumes single-source-single-product, means it gets fed the text of the one file for which the preview is done. With tex files one usually has multiple of them to help with document structure, and any include commands would fail to work as the data is not passed from the normal filesystem.

      In theory this could be one day extended to also work for multi-source-single/multi-product formats, like html, tex or even software source code. But that needs quite some planning and work, and no-one has been seen to work on that.

      So the use of dedicated solutions like Kile or KDevelop will stay your (only) choice.

      • didnt even knew about Kile, thanks for the info, having a integrated Tex editor is pretty useful for my workflow.

  2. […] The KMarkdownWebView software provides a KParts plugin for rendered display of Markdown files, using web technologies (webpage with JavaScript library which creates HTML from the plaintext handed in). This enables KParts-using applications (like the archiving tool Ark or the file manager Krusader) to show Markdown files in the target format. It is also prepared for the upcoming “Live Preview” plugin for KTextEditor-based applications like the editors/IDEs Kate & KDevelop (see introduction). […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s