• About Dominik

    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

    Extending Kate by Scripts

    by  • July 21, 2007 • Users

    We have seen how scripting basically works for indentation. It’s also possible to register commandline functions (The command line is bound to F7 by default, or invoke View > Switch to Command Line). We will consider a small example again: sort the selected text. /* kate-script * name: unused * author: foo bar * license: LGPL * version: 1 * kate-version: 3.0 * functions: sorter */ function sorter (){    if (view.hasSelection()) {        var start = view.startOfSelection().line;        var end = view.endOfSelection().line;         var text = document.textRange(start, 0, end, document.lineLength(end));         var lines = text.split(“\n”);        lines.sort();        text = lines.join(“\n”);         view.clearSelection();         document.editBegin();        document.removeText(start, 0, end, document.lineLength(end));        document.insertText(start, 0, text);        document.editEnd();    }} The header line functions:...

    Read more →

    Kate: More on Indentation Scripting

    by  • July 20, 2007 • Users

    My last blog was about the theory of how indentation works by using javascripts. Now we will look at a concrete example: a LISP-style indenter. (LISP indentation is easy, that’s why it’s a good example). The rules: comments starting with ;;; always have indentation 0 comments starting with ;; should be aligned with the...

    Read more →

    Kate Scripting: Indentation

    by  • July 18, 2007 • Developers, Users

    Kate Part in KDE4 supports the ECMAScript (JavaScript) language by using kjs. In KDE3 we had several hard-coded indenters in C++, the idea is to let scripts do all the indentation in KDE4. How does it work? It is similar to vim: You simply create a script in the directory $KDEDIR/share/apps/katepart/jscript. An indentation script...

    Read more →

    API documentation & refactored kdelibs/kdeui

    by  • December 28, 2006 • KDE

    During the last weeks/days the directory structure of especially kdelibs/kdeui got a major overhaul: in KDE 3 all files of a module were in the same directory which was more or less a mess as you did not know immediately which files belonged to the same category. kdelibs/kdeui in KDE4 has a rather clean...

    Read more →