english

Wish: Options for Kate’s Indenting Scripts

At the start of Kate’s indenting script for C/C++, the following options are available:

// BEGIN USER CONFIGURATION var cfgIndentCase = true; // indent ‘case’ and ‘default’ in a switch? var cfgIndentNamespace = true; // indent after ‘namespace’? var cfgAutoInsertStar = false; // auto insert ‘*’ in C-comments var cfgSnapSlash = false; // snap ‘/’ to ‘*/’ in C-comments var cfgAutoInsertSlashes = false; // auto insert ‘//’ after C++-comments // END USER CONFIGURATION

To set these options one would first have to actually find the indenting scripts under /usr/share, then copy it to one’s home directory to be able to modify it, More >

Kate’s Vi Input Mode — What will KDE 4.4 bring?

Dear “Katevim” users.  Kate’s Vi Mode is steadily improving and I want to take a moment to tell what’s on the horizon for KDE 4.4. There has been quite a few bugs fixed since 4.3, but some major new features have also been introduced:

The Comma Text Object

This is something that I have been missing in Vim. The comma text object makes it easy to modify parameter lists in C-like languages and other comma separated lists. It is basically the area between two commas or between a comma and a bracket. In the line below, the three ranges this text More >

How Kate got X-rated

(Ok, not really.)

Kate’s maintainer, Christoph Cullmann, shared a funny story over a beer one of the first days here at GCDS.

In ye olden days, what is now Kate and Kwrite was one application called “KWrite – KDE’s Advanced Text Editor”. However, the author of Kwrite mysteriously disappeared. Christoph forked Kwrite and continued working on it and after some time it greatly surpassed Kwrite’s capabilities and was becoming more of a power tool. A name change was long overdue. Being a good German, Christoph decided to name it after the philosopher Immanuel Kant, so in KDE 2.1 the editor “Kant” was More >

Google Calendar Plasmoid, Take Two

After the positive feedback on my quick 27 line python hack, I decided to make a slightly improved version. This fixes the two major problems with the old one: you can now use your Google Apps for your Domain email and you can use kwallet to remember your login.

It’s not a simple, 27 line python script any more, but now it’s much more usable. (unless there are some stupid bugs I have overlooked. )

As suggested I uploaded it to KDE Look: http://www.kde-look.org/content/show.php?content=104182, so you can install it from the “Add widgets…” dialogue or download it and install it with plasmapkg More >

Google Calendar Plasmoid

Update: A new, better version can be found here:

http://hamberg.no/erlend/2009/05/07/google-calendar-plasmoid-take-two/

In case anyone is interested:

I made a simple Plasmoid for viewing coming events from Google Calendar. It’s simply a webview showing the iPhone version of Google Calendar. It’s written in Python and took 10 minutes to write (27 lines of code) by following the excellent tutorial on techbase.

You can download it here: http://hamberg.no/erlend/files/gcal.zip. If you improve it or make another Google Calendar plasmoid: let me know!

Oh, btw. To install it run plasmapkg -i gcal.zip.

P.S: openSuse users: I had to install python-dev to actually run a python plasmoid. Don’t know why.

More >

Lost and found

Found in Cambodia in 2007, rediscovered today

Tourists in front of Angkor Wat.

Wikibooks, now also for us who like physical books

In “just” 19 days I’ll have completed my last exam for this semester and I can travel home for a nice, quiet Christmas with my family. As usual, I’ll travel by train, which takes 16-17 hours each way. Partly because it’s cheap (25 EUR), but most of all because it’s very comfortable and is a nice way to “stress down” after an intense exam period. As usual I’ll pack plenty of books and an iPhone with all the podcast episodes I have postponed listening to.

Among the new books I’ll bring there will also be at least one wikibook. Yes, a More >

The Vi input mode for Kate is “done”

I just marked the Vi input mode (“V.I.M.”? ) for the Kate kpart as done in the feature plan for KDE 4.2. It feels a bit weird to mark it as done, though, as there are tonnes of things I want to implement after KDE 4.2.

As you may know this started as a Google Summer of Code project and I’m quite happy with the way things have turned out. Since we are in feature freeze I would like to present the features that will be in the Vi input mode for the Kate part in KDE 4.2.

Kate Vi Input Mode in More >

GSoC is over: The state of Kate’s Vi input mode

The Google summer of code programme’s coding part officially ended this Monday. That won’t be the last you will hear from me, though. Kate’s vi input mode has turned out to be quite nice, and there are lots of improvements I want to do in the coming months. The biggest news are a visual mode + visual line wise mode. Visual mode is one of those things that really make vim stand out from all of the vi clones, and having support for it makes Kate’s vi input mode it much more usable for me. (more…)

GSoC 2008: Vi input mode for the Kate kpart

I’m one of the lucky students doing a Google Summer of Code project for KDE, and I would like to introduce my project. I’m making a vi-like, modal editing mode for the Kate kpart. I’m doing this because many people—me included—find using a vi-like editor much more efficient and pleasant than using a non-modal editor. Especially for editing code. This will of course be an optional mode, and if you don’t want to use it, you will never notice it. This should be obvious, but I want to mention it because I have already gotten a reaction from a Kate More >