Insert Command

Anders Lund <anders@alweb.dk>

Revision 1.00.00 (2001-05-15)

The “Insert Command” plugin allows you to insert shell command output into a document open in Kate.

The “Insert Command” plugin allows you to insert shell command output into a document open in Kate.

Onscreen Fundamentals

To use the plugin, select Insert Command from the Edit menu, which will present you with a small dialog for entering the command, choosing a working folder and selecting whether to include errors (STDERR output) in the inserted text. You can also have the command string printed above the output.


The Insert Command Dialog

The plugin can remember a number of commands as chosen in the configuration page. These are used for autocompletion, and can be selected from a list in the command entry.

By default, the command will be run in the working folder of the kate process, which is usually your home folder. This can be changed in the configuration page for the plugin.

Note that any shell command that requires user input (for example passwd) or uses a ncurses interface or something similar (for example top) will fail to produce the expected output.