TEXTEDIT_FILTERS(1) — USER COMMANDS
NAME
textedit_filters, align_equals, capitalize, insert_brackets, shift_lines − filters provided with textedit(1)
SYNOPSIS
align_equals
capitalize
insert_brackets l r
shift_lines n
DESCRIPTION
Each of these filters can be mapped to function keys in your .textswrc file, and applied to the current selection. See SunView 1 Beginner’s Guide for details. When one is as a command (perhaps in a pipeline), it is applied to the standard input.
align_equals lines up the ‘=’ (equal signs) in C assignment statements. Some programmers feel that this makes for improved readability. It aligns all equal signs with the rightmost equal sign in the selection (or the standard input), by padding with spaces between the sign and the previous nonwhite character; it replaces the selection with the aligned text (or writes this text to the standard output).
For instance:
big_long_expression = z;
abc = x;
medium_expression = y;
z += 1;
becomes:
big_long_expression = z;
abc = x;
medium_expression = y;
z += 1;
capitalize changes the capitalization of the selection (or the standard input) and replaces it (or writes to the standard output). If the text is all capitals, it is converted to all lowercase.
If the text is all lowercase or of mixed cases and contains no white space (such as a NEWLINE, SPACE, or TAB), it is converted to all capitals. If there is white space, then the case of the first character in each word is inverted.
insert_brackets surrounds the selection (or the standard input) with brackets. l and r are left- and right-bracket characters, respectively.
shift_lines adjusts indention of the the selection (or the standard input) by n spaces, and replaces the selection with the adjusted text (or writes to the standard output). shift_lines adjusts to the left when n is negative.
FILES
/tmp/Cap.pid
/tmp/Ins.pid
SEE ALSO
SunView 1 Beginner’s Guide
Sun Release 4.0 — Last change: 22 December 1987