Python Pâté Plugins

The Pâté Python Plugin host makes available many plugins written in the Python programming language.

To enable Pâté plugins, you must first enable the Python Plugins plugin in the Plugins page of Kate's configuration dialog. You may then enable, disable, and configure them in the Python Plugins page of the configuration dialog. For more information about configuring Pâté plugins, see the section called “Configuring Pâté”.

Available Plugins

cmake_utils

CMake helper plugin

python_autocomplete

Python Autocompletion (beta, only for Python 2)

python_console_classic

Configuration widget for this plugin.

python_utils

Python Utilities: Parse Checker, PEP8 Checker, Pyflakes Checker, Snippets

commentar

Move an inlined comment before the current line with the same indentation level

format

Plugins to work with C++ code formatting

django_utils

Django utilities: Snippets, and template utilities

python_console_ipython

IPython console for hacking Kate and doing science

gdb

Use gdb, the GNU debugger, from Kate

gid

Browse the tokens in a GNU idutils ID file, and use it to navigate within a codebase.

The necessary parts of the ID file are held in memory to allow sufficient performance for token completion, when looking up the usage of a token, or jumping to the definition. etags(1) is used to locate the definition.

expand

User-defined text expansions.

Each text expansion is a simple function which must return a string. This string will be inserted into a document by the expandAtCursor action. For example if you have a function foo in the all.expand file which is defined as:

def foo:
  return 'Hello from foo!'

after typing foo, the action will replace foo with Hello from foo!. The expansion function may have parameters as well. For example, the text_x-c++src.expand file contains the cl function which creates a class (or class template). This will expand cl(test) into:

/**
 * \\brief Class \c test
 */
class test
{
public:
    /// Default constructor
    explicit test()
    {
    }
    /// Destructor
    virtual ~test()
    {
    }
};

but cl(test, T1, T2, T3) will expand to:

/**
 * \\brief Class \c test
 */
template <typename T1, typename T2, typename T3>
class test
{
public:
    /// Default constructor
    explicit test()
    {
    }
    /// Destructor
    virtual ~test()
    {
    }
};
xml_pretty

A simple XML pretty printer. It formats XML with good indentation.

color_tools

Class encapsuling the ability to show color swatches (colored tooltips)

block

Plugins to help code editing

js_utils

JavaScript utilities: Autocomplete, Autocomplete jQuery, Checker JSLint, Pretty JSON, Snippets

Configuring Pâté

The Manager Tab

This tab contains a list of Pâté plugins. To enable or disable them, simply select or unselect the checkbox to the left of the plugin name.

To refresh the list of plugins, reload any currently running plugins, or start any newly selected plugins, select the Reload Plugins button at the bottom of the window.

Warning

Reloading a plugin may have unpredictable effects. Consider saving your work before using this command.

The Documentation Tab

The Documentation tab contains information about the actions, menu items, keyboard shortcuts, and configuration pages offered by Pâté plugins, as well as a reference for programmers using the functionality of the plugins.

The following tabs are available:

Actions

Lists all the actions offered by the plugin, including the menu item, icon, and keyboard shortcut that will invoke the action.

Configuration Pages

Lists all the configuration pages offered by the plugin, including their titles and icons.

Programmer's Reference

Includes information about all the modules, classes, and functions offered by a plugin, as generated by pydoc.