• Kate in KDE 4.8

    by  • December 21, 2011 • KDE, Users • 19 Comments

    About half a year ago, Kate 3.7 was released as part of KDE 4.7. Now that KDE 4.8 is about to be released, let’s have a look at what Kate brings in KDE 4.8.

    Bug Fixes

    According to KDE’s bug tracker, about 190 issues were solved. Taking a closer look, lots of small issues were fixed, amongst them:

    Heavily Reworked Code Folding

    As part of the Google Summer of Code (GSoC) 2011, the code folding code was improved. The main goal was to eliminate wrong folding behavior and fix all crashes while making the code more maintainable. We are quite happy with the results: Given the robust behavior, it now was possible to remember code folding state past sessions and during document reload. So folded regions are not lost anymore.

    Additionally, the visual appearance was changed to be rather decent.

    Improved Vi Mode

    Also as part of the GSoC 2011, Kate’s vi input mode was heavily improved.

    Search & Replace in Files

    The “Find in Files” plugin is now replaced with the new “Search and Replace” plugin: It basically contains all the features of “Find in Files,” but additionally has the following features:

    • either search in files-on-disk, or in all the opened documents
    • all search matches are highlighted
    • replace support: matches can be (selectively) replaced with other text

    Line Modification Indicators

    Kate has a shiny new line modification system. Read all about it in this dedicated article. Mandatory screenshot:

    Document Variable (Modeline) Editor

    Kate (and thus all applications use Kate Part) can be configured by using document variables, also known as modelines. Since it’s hard to remember all the available keys and values, a dialog helps out in the config dialog. You can read about all the details in this dedicated post (screenshots).

    Documentation Updates

    T.C. Hollingworth put a huge amount of work into the Kate and KWrite handbook. Thus, the documentation is much more up-to-date and we hope it helps to learn using Kate effectively more quickly. The official version is available on docs.kde.org.

    Current State & The Road Ahead

    Apart from the upcoming KDE 4.8 release, Kate turned 10 years old this summer. All in all, we can proudly say that Kate has a solid code base in its current state. The smart ranges were replaced by the moving ranges. Code folding is more clean with less bugs. Our plugins got a lot of updates. The documentation has improved. Of course, more help is always welcome. So if you are interested in Kate development, you are welcome to build Kate from sources and join our team by sending patches.

    Thanks to everyone contributing to this great release :)

    About

    Dominik is a PhD student at the Control Theory and Robotics Lab, TU Darmstadt, as part of the Research Training Group GKMM (GRK1362). My research focuses on state estimation in distributed systems. As hobby, I contribute to the KDE project and work on the Kate application and editor component.

    http://www.kate-editor.org

    19 Responses to Kate in KDE 4.8

    1. December 21, 2011 at 06:21

      It looks much nicer, thanks :-) .

      The last line of a file does not have syntax highlight for me.
      Is this a known bug?

      • December 21, 2011 at 15:51

        I can reproduce this as well.

      • SciK
        January 17, 2012 at 23:44

        Source code files should end with an empty line anyway.

    2. uniq
      December 21, 2011 at 07:48

      Kate is one of my favorite KDE programs, I use it every day. Thanks a lot for improving it even further. Kate devs, you rock!

    3. Silver
      December 21, 2011 at 08:53

      I’ve used Kate in 4.8 beta and it really seems much better: code folding has not been broken any more and there are nice status colors for changed and saved/not-saved lines.

      Very cool, thanks!

    4. telighul
      December 21, 2011 at 23:56

      Any chance of true column edit – it already has block mode selection so perhaps it’s relatively easy?

    5. Andrej
      December 21, 2011 at 23:59

      I can’t even imagine how to do all the web development without this particular piece of awesome software!

    6. Tranq
      December 22, 2011 at 09:19

      Probably the greatest text editor of all time.

    7. December 22, 2011 at 14:20

      The new search UI seems really nice ! The last one was good, but that one will help us all be more efficient.
      I also see that the syntax highlighting has been updated and expanded, is there any means to use that work to add new language to the symbol viewer plugin (http://is.gd/8zWfa9) ? It’s a helpful plugin, but with to few languages support.

      Cheers

    8. December 23, 2011 at 05:43

      I have used notepad++ in windows for 3 years. Now I switched to linux and kate for about a month. And really I regret why I am so late for linux. Everything here is free and unexpectedly super useful, easy, user friendly and perfect. Thanks for such awful program to creators and contributors.

    9. December 28, 2011 at 06:21

      I use kate for years,
      never found a software that is good as kate where it comes to edit for web development.
      I like the approach of kate, that it isn’t have too many unuseful features, aand oon the other hand everything i need.

      THANK YOU GUYS!

    10. January 31, 2012 at 17:43

      How do I turn off the line modification indicators?

    11. Gabriel
      January 31, 2012 at 18:59

      ^ I just asked the same question in the dedicated article (http://kate-editor.org/2011/09/06/line-modification-system/): is there a way to turn off the line modification indicators?
      Thanks.

      • February 7, 2012 at 23:01

        No, but it will be added, maybe only for KDE 4.9.

    12. February 7, 2012 at 20:46

      Here’s the real test – do you code Kate from within Kate? q;o)

    13. March 28, 2012 at 06:02

      I /love/ the new code folding, leagues better than the 4.7 version. One (probable) bug though: Kate 4.8 still refuses to tile properly. (see http://forum.kde.org/viewtopic.php?f=22&t=92304&p=217861 )

      • March 28, 2012 at 08:47

        What’s so nice about the new one in contrast to the old one, if I may ask?

        with respect to window tiling: did you try Settings > Configure Kate > Sessions > disable [ ] Include Window Configuration?

        • April 1, 2012 at 12:10

          The main thing I like about 4.8 folding is that it /works/. ;) 4.7′ would often end folds at grossly inplausible locations, sometimes mid-token. Almost like it gave up before finding the actual closing token…. :-\

          I did, and the problem remains. If it’s relevant, I made a Window Rule to help kwin tile properly: all Normal, Dialog, and Unmanaged windows are forced to not maximize, and forced to tile. Kate seems to obey this rule on startup(flashing in the correct position), then immediately maximize and untile itself.