Kate on 5: The Future of KTextEditor and Kate Part

Monday, 11 November 2013 | Dominik Haumann | Tags:  planet  python
Recently, there was a dot story about Frameworks 5: Started in spring of 2011, the KDE software stack is undergoing a heavy split. The idea is to modularize the KDE libraries into lots of rather small units. Each unit has well-defined dependencies, depending on whether it’s in the tier 1, tier 2, or tier 3 layer, and depending on whether it provides plain functionality, integration, or a solution. If you haven’t yet, please read the article on the dot for a better understanding. Read More

Kate in 4.11

Monday, 9 September 2013 | Dominik Haumann | Tags:  planet  python  vi input mode
Another release cycle gone, and the KDE Software Compilation 4.11 is out in the open (well, for quite some time already), and with that it is time to talk about what changed in Kate the last half year since the 4.10 release. Besides the usual bug fixing (~50 bugs since 4.10), the following sections present some major improvements and features of Kate in 4.11. Python Plugins Since KDE 4.10, Kate features the Python »Pâté« plugin. Read More

A rich python console and more in Kate editor

Friday, 31 May 2013 | Pablo Martin | Tags:  django  planet  python
I have done some improvements in the plugins: python_console_ipython, python_autocomplete, python_utils, js_utils, xml_pretty and django_utils. These plugins I added a month and a half ago (except python_console_ipython) to the kate repository. I have done two improvements and a new feature: Now they work with Python2 and Python3 (except python_autocomplete, this only works with Python2, due pysmell dependence) Now they have a configuration page (except python_autocomplete, this should not have configuration parameters) Page Config Plugins The new feature is the integration of the python_autocomplete and python_console_ipython plugins with the project plugin. Read More

New plugins to the Kate, utils to: Python, JavaScript, Django and XML

Monday, 18 February 2013 | Pablo Martin | Tags:  django  planet  python
The project plugin in kate.git master now has four new more plugins, with many features in each one: Python (autocomplete, smart snippets, parse checker, pep8 checker and pyflakes checker), Javascript (autocompletes, jquery snippet, pretty JSON, and jslint checker), Django (smart snippets and utils to Django template) and XML (pretty xml). There are also many generic functions and generic classes in these that will be useful to the new plugins developers. Read More

Python plugin gets support for Python3

Sunday, 2 December 2012 | shaheed | Tags:  python
Being vaguely aware that Python3 had some “interesting” differences compared to Python2, I had decided to not think about Python3 for now, but then one of our dear users piped up to say that even building it was broken! That seemed weird, so I started poking around only to find myself falling Alice-like into a Wonderland where strings were not always strings… Well, I’ve long been interested in i18n and l10n in all their forms, especially as they apply to Indic languages, so I was somewhat aware of the sorts of issues that Unicode can throw up. Read More

ID + etags > ID || etags

Wednesday, 21 November 2012 | shaheed | Tags:  python
ID files and TAGS files are generated by GNU idutils and etags respectively. They are often used in coding projects to facilitate looking up, for example, the name of a function, and then visiting where it is defined, etc. In large projects, ID files can be hundres of MB in size, and TAGS files several times that. That looking up is obviously nice to have integrated into your favourite editor… Read More

Python plugin developer guide, part 1

Sunday, 1 July 2012 | shaheed | Tags:  python
I’m a Python newbie, so if you are at least that good :-D, you should be able to dive in and write useful Python plugins for your favourite editor too! This is the first in what I hope will be a series of notes and tutorials to help you along the way. Where can I find examples to steal from inspire me? Any good developer knows that a good way to launch into a new area is to look at examples, so here is a list of places I’ve encountered. Read More

Python plugin user guide

Tuesday, 26 June 2012 | shaheed | Tags:  python
KDE 4.9 has branched, and so the Pâté plugin “host” for Python plugins has moved from Kate’s playground to be a mainstream plugin. Since a plugin-for-plugins might be a bit confusing, here is a quick tour of how it is managed and works, and especially a few rough edges it still has. NOTE If you’ve installed this from a package, hopefully your distro will have added under PyKDE4 as needed, but if you are building from source, see the notes at the end of this post. Read More

Extending Kate with Python

Monday, 25 June 2012 | shaheed | Tags:  python
So there I am, a confirmed Kate user, and now I need to find my way around a codebase of over 100,000 files using GNU ID utils. The rather crude answer for Kate 3 was to write a wrapper around the lid(1) utility and the DCOP scripting interface of Kate, all driven from the built-in Konsole. The result was clunky but somewhat usable. But Kate 3? In 2010? Because the version of KDE on our primary development environment is the venerable KDE 3. Read More