/usr/share/doc/xviewg/examples/textswrc is in xview-examples 3.2p1.4-28.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | /* @(#)textswrc 15.3 90/06/21 SMI */
KEY_RIGHT(1) FILTER
insert_brackets "\\fI" "\\fP"
/*
* insert_brackets inserts the indicated characters around the selected text.
* If the text is already bracketed with these characters, it removes them.
* At some point in the future, the remove option will be invoked by holding
* down SHIFT key while hitting function key.
*/
KEY_RIGHT(2) FILTER
insert_brackets "\\fB" "\\fP"
KEY_RIGHT(3) FILTER
insert_brackets "\\fL" "\\fP"
KEY_RIGHT(4) FILTER
capitalize
/*
* capitalize/uncapitalize selected material as follows: If there are no
* lower case characters, convert everything to lower case.
* Example: EDIT TOOL => edit tool.
* If there are any lower case letters, convert everything to uppercase.
* Example: adjust_pending_delete => ADJUST_PENDING_DELETE
*
* If characters consist of several words separated by whitespace, then for each
* word, capitalize the first letter it if it isn't, lower case if it is.
* Example: now is the time => Now Is The Time, and vice versa.
*/
KEY_RIGHT(5) FILTER
insert_brackets \( \)
KEY_RIGHT(6) FILTER
insert_brackets \" \"
KEY_RIGHT(7) FILTER
insert_brackets "\\s-2" "\\s0"
/*
* NOTE: Keys R8, R10, R12 and R14 are the arrow keys.
* By default these emit cursor motion escape sequences (used e.g. by vi)
* so their key mappings will not have any effect unless you
* set Arrow_Keys in the Input category of defaults to "No"
* or run 'setkeys reset'.
*/
KEY_RIGHT(10) FILTER
shift_lines -t -1
/*
* Shifts selected lines left the indicated number of tab stops, with tab
* stops computed the following way: if any spaces are seen on the first line,
* tab stops = 4. Otherwise, look in .indent.pro for corresponding value
* (you can use indent_defaults to set up your .indent.pro). If no .indent.pro,
* assume 8. Note this means that the user can specify 8 in his .indent.pro,
* but still have shift_lines do the right thing for those files that he has
* explicitly formatted using 4 space indentation, provided that the first
* line given to shift_lines contains some spaces.
*/
KEY_RIGHT(11) FILTER
indent -st
/* invoke indent on the selected material, using the options specified in
* .indent.pro
*/
KEY_RIGHT(12) FILTER
shift_lines -t 1
/* shifts selected lines right the indicated number of spaces */
KEY_RIGHT(13) FILTER
fmt
/* pass the selected material through fmt */
|