Author Archives: swilmet

Thoughts on live previews in LaTeXila

Several years ago I talked about some principles for the user experience of LaTeXila, a GTK+ LaTeX editor for GNU/Linux. The conclusion: The idea of LaTeXila is to always deal directly with the LaTeX code, while simplifying as most as … Continue reading

Posted in LaTeXila, Thoughts | 8 Comments

Object-oriented design best practices

Here is another book review, this time about object-oriented design. Programming Best Practices We can learn by our own experience, we can use our common sense, we can learn by more experienced developers when contributing to an existing project. But … Continue reading

Posted in book reviews, Programming | 1 Comment

File loading and saving in GtkSourceView, finally

Last year GtkSourceView saw a new search and replace API. This year it’s the file loading and saving that has just landed! It is in the continuity of making the gedit source code more reusable for other text editors. In … Continue reading

Posted in finally, gedit, GtkSourceView | 1 Comment

Making the gedit source code more reusable

On IRC I see some developers working on other text editors based on GtkTextView/GtkSourceView. It is a good thing in my opinion to have specialized text editors. They are easier to use and configure. A specialized application has a potentially … Continue reading

Posted in gedit, GtkSourceView | Comments Off on Making the gedit source code more reusable

{specialized, general-purpose} × {text editors, IDEs}

Some thoughts about text editors, IDEs, specialized or general-purpose applications. Several languages Other tasks Plugins Specialized text editor No No ? General-purpose text editor Yes No Yes Specialized IDE No Yes ? General-purpose IDE Yes Yes Yes The above table … Continue reading

Posted in Programming, Thoughts | 14 Comments

Search and replace behavior for a text editor

The search and replace is one of those features that have a wide variety of different implementations and behaviors across applications. The nice thing with my work I did this summer on GtkSourceView, is that you can build whatever behavior … Continue reading

Posted in GtkSourceView, LaTeXila | 6 Comments

The GSoC on GtkSourceView/gedit comes to an end

A small update on my GSoC. The first part took a little longer than expected. But I’m happy with the results, the search and replace API is simple and flexible, there were not a lot of bugs to fix, and … Continue reading

Posted in gedit, GSoC, GtkSourceView | Comments Off on The GSoC on GtkSourceView/gedit comes to an end

Regex search in gedit and GtkSourceView, finally

Although regular expression searches were possible with plugins, it is now available by default in gedit. The search and replace works too, and you can use backreferences (\0, \1, …) in the replacement text. All this work has been merged … Continue reading

Posted in finally, gedit, GSoC, GtkSourceView | 7 Comments

Align parameters of a C function declaration, with lineup-parameters

Renaming a GObject class can involve a lot of manual work. Once the type is renamed, the parameters of the function declarations are no longer aligned. In the following example, GtkSourceSearch has been renamed as GtkSourceSearchContext: guint _gtk_source_search_replace_all (GtkSourceSearchContext *search, … Continue reading

Posted in Programming | 3 Comments

Search and replace in gedit and GtkSourceView

My GSoC on GtkSourceView/gedit/… is coming along nicely. Here is a screenshot of the new search in gedit: The visible new thing is the “298 of 703” in the search entry, that shows the position of the current search match, … Continue reading

Posted in gedit, GSoC, GtkSourceView | 7 Comments