Gedittools – a new version

First of all: Thanks to all folks using my Gedittools plug-in for Gedit! All the mails and comments and download stats show that I was not the only guy looking for missing functionality in Gedit. During the past week or so I found some time to improve the XML-highlighting mechanism for Gedittool:

In fact, I re-designed and implemented the algorithm to find and highlight XML-tags from scratch. It is now much faster in searching and highlighting.

All other features like

– counting search results
– highlighting marked words throughout the document
– integrating a meld-interface to compare / diff opened files

remain as they are. Feel free to download the plug-in at Github.

Gedittools - a plug-in for gedit

Plug-ins for gedit: count results or compare files.

Well, after I could count words in a gedit document based on a selection I made, I decided to add another missing feature:

I needed a diff tool to compare two files that are currently opened in gedit. Unfortunately, gedit doesn’t come along with these kind of features. So, another plug-in was needed.


What it does? It simply starts the open source diff & merge tool Meld using two documents opened in gedit. That’s why I called it meldlauncher. Therefore, if you want to use meldlauncher, you will need to have Meld installed. On Ubuntu do something like this:

sudo apt-get install meld

If there are only two documents opened in gedit, meldlauncher will launch Meld and pass those two files to it. If there are more than two documents opened, meldlauncher will open a selection dialog from which you can easily choose the document to compare the current document with.

I moved both the counter plug-in and the meldlauncher plug-in to Github. Feel free to grab it from there:

Count search results in gedit.

Update September 21:
After all, I found some time to reimplement the algorithm for highlighting XML. It is now triggered by a new button in the toolbar. As it now does not run automatically, this will be another improvement to overall speed. Feel free to download the new version at the provided download link below or at github!

Update May 5:
Count results are now being displayed in the Status Bar instead of an alert window. Also, there were a couple of bug fixes. Feel free to download the new version at the provided download link below or at github!

Lately I was looking for a small but missing feature in gedit: I needed to be able to count all occurrances of a selected word. This is a standard feature in many other editors such as Notepad++ in the Windows world, for example. However, I didn’t come across a solution on the net, so I decided to write a little plug-in myself.

What it does: After marking a word the plug-in counts all occurrances of the selection in the current document. It adds a new button to the toolbar and an entry to the menu right in the “Search” section. On top of that you may trigger counting the selection by hitting “CTRL+SHIFT+F”. A small pop-up window will appear and show the results of the search. The results will be displayed in the status bar of the window.

How to use it: Simply mark a word, and have a look at the statusbar: The number of search results will be displayed there.

If you find it useful, feel free to download the plug-in here:

Donwload at github:

git clone
cp -r mmuell23/gedittools/* ~/.gnome2/gedit/plugins

Dell, Ubuntu und Skype.

Skype und Linux ist so eine Sache: Nachdem seit einigen Releases nun auch Video verfügbar ist, gibt es immer wieder Probleme mit dem Pulseaudio Sound Server. Zumindest auf meinem Dell Studio 1537 Notebook. Bald gibts nen Mac. Baaald….

Bis dahin: Mein Kampf mit Pulse ging heute in eine zweite Runde. Ubuntu 9.10 wollte nach einem Upgrade von 9.04 mein Mikrophon nicht mehr. Dass mein internes Mikrophon nicht geht mit Pulse, hab ich fast schon geschluckt. Aber mein externes hätte ich schon gerne. Diesmal habe ich mit (technischem) K.O. gewonnen. Technisch deshalb, weil immerhin mein externes Mikrophon nun wieder funktioniert, das interne aber immernoch nicht. Nun ja, sei es drum. Vielleicht hat einer von Euch ja die Lösung.

Hier nun die minimale Einstellung, die man treffen muss, um das Mikrophone zum Laufen zu bringen.

In einer Konsole den alsamixer starten.


Kurz noch “F4” gedrückt, um in die Capture Einstellungen zu gelangen. Was bei mir gefehlt hat, war die Einstellung “Capture” im Mic Mixer. Diese lässt sich mit Space toggeln. Selbiges muss für eine (oder beide) der Capture Items gemacht werden und schon klappts auch mit Skype.


Skype selbst muss sowohl für die Einstellungen des Microphone als auch Speakers auf PulseAudio gestellt sein. Schnell noch ein Testanruf zur netten Dame von Skype und, juhu, es geht.


Creating PDFs under Wine.

This morning I needed to create a PDF file under wine on my Ubuntu machine. Nothing easier than that: You will need to install cups-pdf.

sudo apt-get install cups-pdf

This will automatically install a “virtual” printer which is selectable in the print dialog of all windows applications installed under wine. After printing, the PDF may be found in a folder PDF directly under your home directory.

Ubuntu 9.10 64bit vs. Broadcom

Well, I actually didn’t think about my WIFI-chipset when I bought my Dell Studio notebook: If Dell offers Ubuntu as an operating system along their products anyway, there should not be a driver problem when manually installing Ubuntu. After installing 8.04 and later 8.10 and 9.04 (32bit by accident), it worked out of the box: The Broadcom driver for the BCM4312 chipset was proprietary and I didn’t have a single problem.

Yesterday I decided to get rid of the 32 bit 9.04 version and install the Ubuntu 9.10 beta version. Installation worked fine, but after rebooting the system I saw that there was no wireless network connection at all. Running lsmod told me that the b43 module is running. However, it didn’t work: no network connection was shown, not even that it recognized my WIFI card.

After reading through several blogs and forums I finally got it running. This installation guideline might help you, too. Maybe the driver will be included / fixed in the final 9.10 version, but just in case it’s not, this might be a solution for you:

1. Compile Broadcom driver

Download the driver from the official Broadcom website and follow the installation instructions in the README.txt.

After compiling the module and adding it via “modprobe” as described in the README.txt file, it already worked fine for me: The system connected to my local WIFI access point.

2. Load driver on startup

What didn’t work was the automatic disabling of the ssb module by adding it to the blacklist. The command lsmod still showed that the module was loaded even though it was added to the /etc/modprobe.d/blacklist.conf. Therefore, after a reboot of the system I still had no connection at all and had to manually modprobe wl again. Adding “wl” to the list in /etc/modules showed no effect.

Here is the solution I found on another forum (don’t find the URL anymore):

Add these 3 lines to /etc/rc.local:

rmmod ssb
modprobe -r ssb
modprobe wl

After a reboot, the network service now automatically took the newly installed driver.