Index Menus Panels Troubleshooting Key glossary Glossary Text rulers Language Text shortcuts Fonts Size and gadgets Colours
Commands can be defined for each text window mode. The
commands for Default setup are always available, and are assigned
function keys
The scrolling list in the top right corner of the panel shows the names of the commands in the order in which they will appear in the Edith menu. The order can be changed using the down and up buttons; use the separate button to put sets of external commands of a similar nature into groups.
The lower half of the panel shows the parameters for the command selected in the list. To replace a selected command entirely by a new definition, change the values and click replace. If either the name or the command line have been changed, but one of them remains the same, use Enter. Use Enter also to enter a new command that is not yet in the list.
The meaning of the parameters in the panel is best explained by looking at the commands that are automatically installed when you first use Edith.
Calls the nl program, that takes a number of
lines as its standard input, and produces on its standard output
the same lines prefixed with numbers. The switch takes
selection as input is selected, so when calling this command from
the Edith menu or by hitting nl
. Default scope is set
to text, so when there is no selection, the entire text will
be selected and sent to nl
. Cmd output: Substitute is
selected so that the output of nl
will be substituted for
the selection.
Definition is nearly identical to number lines, except that
default scope is now paragraph. The command itself is not a
simple UNIX command like nl, but an awk
(1) script, that prefixes its input lines with >
. On
Linux systems, check gawk (1).
Analogous to quote.
By default, this command swaps upper and lower case. However,
because ask confirmation of command and directory is selected,
a confirmation box will pop up when Transpose characters
is selected or `a-zA-Z' `A-Za-z'
passed to the tr
program
is selected. This preselection is specified in the external
commands panel by the use of the special variable %cursor
in the command's definition. %cursor
marks the cursor
position, or when used twice, the left and right end of the
selection in the confirmation box.
The transpose pattern consists of two sets of characters; characters in the first set will be replaced by those in the second. See tr (1) for details. Because the sets are preselected, you can change them immediately by typing two new sets. What you have typed to replace the preselected patterns will automatically pop up again the next time you call transpose characters, provided that you made changes only to the preselected text.
Following a good custom, the menu entry for this command ends
in an ellipsis (...
), to indicate that a panel will be
opened when the command is selected, requiring further information
from the user.
%col
, which is replaced with the current cursor
column. A variable %row
is also available.
(3 + 4) *
5
), and display it in a browser window. If there is no
selection, looks at one line.
Calls the program bc. New is the setting cmd output: to window, that instead of replacing the selection, sends the output of the command to a new (browser) window.
Following a less obviously good custom of the developer of Edith, the menu entry of this command also ends in an ellipsis, even though the window that pops up when the command is executed does not require user interaction. But the command definitely causes a new window to be opened, and that too deserves some form of indication.
Calls the ispell (1) command with the
option -l
, sorts the result and removes duplicate lines.
This is equivalent to ispell
's predecessor
spell (1); however, spell
is no longer
present on all UNIX systems (Linux slackware).
New is the use of Save file before command that causes the
text in the window from which this command is selected to be saved
before make
is executed.
make clean
.
.c
is replaced with .h
).
%cursor
, in which case modifications to the preselected part of
the command are stored.
%name
%name{.suffix}
%fullname
%cursor
%row
%col
%%
%
.
Index Menus Panels Troubleshooting Key glossary Glossary Text rulers Language Text shortcuts Fonts Size and gadgets Colours