Posts 

Kate: More on Indentation Scripting

Friday, 20 July 2007 | Dominik Haumann
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 next line comments starting with ; should only appear behind code, so they are simply ignored every ‘(‘ indents and every ‘)’ unindents lisp. Read More

Kate Scripting: Indentation

Wednesday, 18 July 2007 | Dominik Haumann
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 has to follow several rules: it must have a valid script header (the first line must include the string kate-script and indentation scripts must have the type: indentation) it must define some variables and functions Whenever the user types a character, the flow in Kate Part works like this Read More

API documentation & refactored kdelibs/kdeui

Wednesday, 27 December 2006 | Dominik Haumann
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 structure now (similar to the one in Qt) by using subfolders like actions dialogs widgets xmlgui several others… Compare this to KDE3’s kdelibs/kdeui structure. Read More

Share Kate Highlighting Files

Thursday, 12 October 2006 | Dominik Haumann
Thanks to Frank we have a dedicated section for Kate Highlighting files on kde-files.org now. We encourage everyone to publish their .xml files there. The Kate team agreed to add more highlighting files to the official Kate releases, though, as long as they are of general use. For KDE4 we plan to have a section for Kate Indentation scripts, too. But that’s content for another blog, which will follow later :)

Kate: More eye-candy

Friday, 29 September 2006 | Dominik Haumann
Two years ago we had the KDE conference in Ludwigsburg, Germany. At that time, Martijn Klingens committed a patch to show trailing spaces in Kate. I just change the visualization a bit, the change is in for KDE4 :) Tabs are marked with a ‘»’ character, and spaces with a dot. On the left you can see the old and on the right the new version; Here is a screenshot: Read More

The Wheel of Time Turns…

Saturday, 16 September 2006 | Dominik Haumann
…and this time it turns out that I am going to akademy. Dublin I’m coming, wheee! :)

Smart End

Wednesday, 9 August 2006 | Dominik Haumann
Since KDE 3.5.4 Kate Part supports “smart end“. Right now it behaves like this when pressing “end”: go to last non-space character go to the last character (i.e. hit end twice) I’m writing this blog to get feedback about what’s the right/expected behaviour. Is it as described above, or should we first go to the very last character, and to the last non-space only when hitting then end-key twice? Read More

Kate in KDE 3.5.4

Wednesday, 2 August 2006 | Dominik Haumann
Finally, KDE 3.5.4 is out! We were able to fix a lot of issues in Kate and the bug curves went noticeably down. Thanks to all contributors for the nice KDE release :)

Kate: Shortcomings of .kateconfig file

Sunday, 23 July 2006 | Dominik Haumann
Assume you have a .kateconfig file optimized for C++ code that replaces tabs on save. Now you open a Makefile that contains tabs (due to its strict syntax). If you save the Makefile in kate, the tabs then are replaced which results in a corrupted Makefile. In other words: The .kateconfig file applies to every file. It lacks mimetype/extension support and thus can lead to unwanted behaviours. So if you use a . Read More

Indentation and Coding Style

Sunday, 23 July 2006 | Dominik Haumann
kdelibs will have coding style conventions. In general. this is not a bad idea. Our 45528 slocs in KatePart all use a consistent indent-width of 2 spaces. Changing this does not really make sense – ok, if svn praise -w (sure, we never need svn blame in our code ;) finally works, we can discuss this again. In other words: How “consistent” will kdelibs get with this new conventions? The interesting part of Zack’s mail is Read More