Kate

From Torben's Wiki
Revision as of 21:14, 30 January 2013 by Torben (talk | contribs) (→‎KDE 4: via Build Plugin)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

KDE 4: via Build Plugin

This can be used to execute the current file (if file permissions are set to executable and Shebang in first line is present)

Enable via

Settings -> Configure Kate -> Plugins -> Build Plugin

In the "Build Output" window, at the bottom of Kate, enter the following minimal settings:

Working directory = %d
Quick compile = %f

You might want to define a shortcut for this using Settings->Configure Shortcuts->Quick compile

KDE 3: via Plugin External Tools

This can be used to execute the current file (if executable)

Label:        Run (tm)
Script:       konsole -e bash -c 'cd "%directory"; "./%filename" ; read -p "Enter to close" '
Executeable:  konsole
Save:         Current Document

You might want to define a shortcut for this using Settings->Configure Shortcuts->External Tools