Next: , Previous: EraseBegOfLine, Up: Alphabetical List


Execute

Key: Shift+Alt+E
Menu: Other > Execute

Run an external command. The command can contain a number of variables:

%f copy the current filename to the command, using a relative path
%F copy the current filename to the command, using the absolute path
%p prompt for a parameter for the command
%w copy the current word to the command
%W copy the current string to the command

The filename will be automatically quoted if it contains a space or any of the characters `+;,=%' and there is no quote (`"' or `'') before it; insert an equal sign after the percent symbol to prevent that (`%=f'). The function will fail if either `%f' or `%F' is used and the current file is a scratch window. If the cursor is not on a word or string, it will prompt for one.

There are also a few options:

Capture output capture the output of the command (stderr first, followed by stdout) into a new window (or replace the current output) and make it the current window; there is never a pause
No echo don't output the command
No pause return immediately, don't wait for a key
Original files don't save the files in the editor, use the originals still on disk
Reload files reload modified files without prompting

A blank command will run the shell, always with no echo and no pause, but unlike Shell, files can be saved and automatically reloaded.