Planet
Akademy 2012 – See you in Tallinn ;)
One year more passed and the next Akademy will soon open its doors.
Was never before in Tallinn or Estonia, will be an interesting visit.
Hope to meet again a lot of old and new KDE people.
Didn’t code a lot at all since last years meeting, too busy to finalize my phd thesis.
Hope to get more time for Kate in the next months again ;) And at the meeting.
RFC: Exporting JavaScript API
Since quite some time, Kate Part has build-in scripting support through JavaScript. Our plan is to make this API public, so other applications like Kile, Kate App and KDevelop can use it. However, we are currently unsure how to best implement it, so this is a rfc to get feedback.
The bindings for a Kate Document are for instance located in part/script/katescriptdocument.h (header, implementation). As you can see, there are functions like
Read MoreCrash through D-Bus calls
On Removing an Element from a List
Recently, there was a very good blog about The Importance of Mentoring. It was mentioned that the 3200 slocs of the gsoc projects could be cut down to 500 slocs, doing exactly the same thing.
While hunting some crashes in the new code folding code from the last gsoc project, I obviously had a closer look on how things are implemented. The code folding uses a simple tree structure. Nodes can be added, removed or moved around. So I stumbled over the following code:
Read MoreAppend Newline at End of File
In KDE SC 4.9, Kate Part will have an option in the Open/Save config tab called
[ ] Append newline at end of file on save
By default (and Kate tradition), this option is off. You can also use the document variable (modeline) newline-at-eof [bool], either in the file itself, in a .kateconfig file, or in the “Modes & Filetypes” config page. If a newline was added, it is visible only after reloading the document. This finally fixes wish #256134.
Read MoreSome Kate Color Schemas
Default “Oxygen” Color Schema
Read More
Yet another update for the Colors tab
Now, the categories in the “Colors” tab are painted like in System Settings (top: new, bottom: old):
Thanks to Rafael Fernández López for relicensing the code of SystemSettings’ CategoryDrawer under LGPLv{2,3}.
Read MoreColor Settings
This week, Kate Part received an update of the “Colors” tab in the settings dialog, available in KDE 4.9. The major features include
- configurable colors: search highlight, replace highlight and modified line colors – finally :-)
- possibility to always use colors from the KDE color scheme.
- the implementation works in a way that at some point, the host application (KDevelop, Kile, …) can put items into this list.
Here are screenshots of the new (top) and the old (bottom) color tab:
Read MoreScripting in Kate
Since several releases, Kate Part has scripting support through javascript. So far, it seems it is not much used by users. Still, I stumbled over two extensions:
If you have more user defined scripts, it would be nice if you let us know! For KDE5, we plan to extend this, so applications like Kile or KDevelop can reuse Kate’s internal code.
Read More