Article View: bit.listserv.xedit-l
Article #735Re: Various XEDITs (Column Editing Mode)
From: Mark D. H. Miller
Date: Sun, 25 Jul 1993 17:49
Date: Sun, 25 Jul 1993 17:49
231 lines
10719 bytes
10719 bytes
On Fri, 23 Jul 1993 16:10:38 GMT Edward T Spire said:
>F. Scott Ophof (Ophof@CS.UWINDSOR.CA) wrote:
>: On Wed, 21 Jul 1993 14:47:01 GMT Edward T Spire said on extensions:
>
>: Would btw the accounting world (and/or SAS users) be interested in
>: column selection modes, ie. the vertical version of line and stream
>: modes? Would it make designing spreadsheets easier?
>: (Reminds me of a discussion on UREXX-L some time ago...)
>
>This would amount to a fourth mode.
>
FYI, "column editing" is available for VM/CMS XEDIT via the
COLEDIT macros developed at Penn State and retrievable from
LISTSERV@PSUVM as COLEDIT PACKAGE.
Refer to PSUTOOLS FILELIST from LISTSERV@PSUVM.
I have used the package regularly for several years. It is quite
useful but isn't all that different from "block-mode" editing
on KEDIT. I like them both for different problems.
I've included the HELP file below.
*------------------------------------------------------*
Mark D. H. Miller <mdmiller@syr.edu>
Faculty Computing Services Tel: (315) 443-2143
105 Archbold Fax: (315) 443-1865
Syracuse University Syracuse, NY 13244
*------------------------------------------------------*
%%%include ( COLEDIT HELPXEDI A1 )
.cm ********************************************************************
.cm
.cm FILE: COLEDIT HELPXEDI
.cm
.cm FOR: COLEDIT XEDIT
.cm
.cm PACKAGE: Xedit Tool
.cm
.cm REFERENCED BY:
.cm
.cm AUTHOR: Linda Littleton <LRL@PSUVM> 08/30/88
.cm
.cm REVISIONS:
.cm
.cm ********************************************************************
.FO OFF
.CS 1 on
�|COLEDIT and PRECOL�%
Allows manipulation of columns in a file from XEDIT.
.CS 1 off
.CS 2 on
�|FORMAT:�%
------------------------------------------------------------------------
| | |
| COLEDIT | target |
| | |
------------------------------------------------------------------------
or when the following is issued in your PROFILE XEDIT:
'SET PREFIX SYNONYM COL PRECOL'
then the following commands are valid in the prefix area:
COL3 to 'COLEDIT' the next 3 lines
COL* to 'COLEDIT' through the end of the file
COL on two separate lines to 'COLEDIT' the lines between
.CS 2 off
.CS 3 on
target : is a normal XEDIT target as explained in HELP XEDIT
LOCATE. The target marks the range within which COLEDIT
will execute. COLEDIT starts at the current line and ends
(not including) on the target line. If no target is
specified the default target is '1' (operate on the
current line). See the NOTES below to define another
default target.
COLEDIT creates a horizontal "prefix area" that can be used to perform
vertical operations. This prefix area consists of the character '.'.
The commands described below can be entered by overtyping the '.' on
this line.
To leave the COLEDIT environment, press Enter without entering a
command.
Following commands are available:
D(nn) Deletes nn columns starting at the column where the "D" is
positioned. If nn is omitted, 1 column is deleted.
DDDDDDD Deletes a block of columns starting at the position of
the first "D" up to the last "D". Only the first two and
last two "D"s are required.
C(nn) Copies nn columns starting at the position of the character
"C" to the column position marked by EITHER the F or P
command.
CCCCCC Copies the block of columns starting at the position of the
first "C" up to the position of the last "C" to the column
position marked by either the F or P command. Only the
first two and last two "C"s need to be specified.
M(nn) Moves nn columns starting at the position of the character
"M" to the column position marked by EITHER the F or P
command.
MMMMMM Moves the block of columns starting at the position of the
first "M" up to the position of the last "M" to the column
position marked by either the F or P command. Only the
first two and last two "M"s need to be specified.
F Specifies that columns to be copied or moved should be
INSERTED FOLLOWING the column where the "F" is positioned.
May be also used to specify the insert column for the
A or I command.
P Specifies that columns to be copied or moved should be
INSERTED PRECEDING the column where the "P" is positioned.
May be also used to specify the insert column for the
A or I command. Useful for inserting text before the
first column.
I text Inserts the given text after the column where the "I"
is positioned or at the position marked with a previous
F or P command. All text following the "I" is inserted, so
do not specify other commands to the right of the "I" or
they will be treated as text. The text may contain blanks.
R text Replaces the characters after the column where the "R"
is positioned with the specified text. All text following
the "R" is used, so do not specify other commands to the
right of the "R" or they will be treated as text.
O text Overlays the characters after the column where the "O"
is positioned with the specified text. All text following
the "O" is used, so do not specify other commands to the
right of the "O" or they will be treated as text. When the
text contains blanks, the corresponding character position
will NOT be overlayed. To overlay a column with blanks use
the character "_".
B(nn) Adds nn blank columns after the column where the "B" is
positioned or at the position marked with an F or P.
If nn is omitted 1 blank column is added.
"(nn) Duplicates the column where the '"' is positioned nn times.
""""""(nn) Duplicates the block of columns starting at the first '"'
up to the last '"' nn times. Only the first two and last
two '"' need to be specified.
>(nn) Sort file up to 'target' in ascending order of characters
starting at the column position of the > and width nn.
>>>>>> Sort file up to 'target' in ascending order of characters
starting at the position of the first > up to the position
of the last >.
<(nn) Sort file up to 'target' in descending order of characters
starting at the column position of the < and width nn.
<<<<<< Sort file up to 'target' in descending order of characters
starting at the position of the first < up to the position
of the last <.
U(nn) Converts nn columns to uppercase starting at the column
where the "U" is positioned. If nn is omitted, 1 column
is converted.
UUUUUUU Converts a block of columns to uppercase, starting at the
position of the first "U" up to the last "U". Only the
first two and last two "U"s are required.
L(nn) Converts nn columns to lowercase starting at the column
where the "L" is positioned. If nn is omitted, 1 column
is converted.
LLLLLLL Converts a block of columns to lowercase, starting at the
position of the first "L" up to the last "L". Only the
first two and last two "L"s are required.
AL Aligns lines to the position of the "A", moving unaligned
lines to the left.
AR Aligns lines to the position of the "A", moving unaligned
lines to the right.
V V Does the VERIFY setting to the columns at the position
of the "V" characters. Can be used with "H" command.
H H Does the VERIFY HEX setting to the columns at the position
of the "H" characters. Can be used with "V" command.
Z Z Does the ZONE setting to the columns at the position
of the "Z" characters.
; Does the TABS setting to the columns at the position of
the ";" character.
.CS 3 off
.CS 5 on
�|Usage Notes:
1. All normal XEDIT commands (e.g. scrolling) are available while in
COLEDIT.
2. To insert data in column one, use insert (I) in combination with
preceding (P). For example, 'PIabc' entered starting at column
one, will insert 'abc' at the first column.
3. To insert dots (.), end the string of dots with a blank, for
example, 'I... '. Then delete the extra blank.
4. A Move or Copy command is not executed until the target column
is defined with a F or P command. That means you can first
define the source area, then press enter (no change up to now) and
now define your target column and press enter (change takes place).
5. COLEDIT commands can be entered only within the XEDIT ZONE and VERIFY
settings. (See HELP XEDIT ZONE and HELP XEDIT VERIFY).
.CS 5 off
Technical Details
Message-ID:
<930725.174926.LCL.METRMDHM@SUVM.SYR.EDU>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!darwin.sura.net!news-feed-2.peachnet.edu!ukma!cunyvm!psuvm!auvm!SUVM.SYR.EDU!METRMDHMShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10c92b,c033acaca3b1acd0,start X-Google-Attributes: gid10c92b,public X-Google-ArrivalTime: 1993-07-25 22:51:38 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!darwin.sura.net!news-feed-2.peachnet.edu!ukma!cunyvm!psuvm!auvm!SUVM.SYR.EDU!METRMDHM Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU Newsgroups: bit.listserv.xedit-l Return-Path: <@AUVM.AMERICAN.EDU,@UGA.CC.UGA.EDU:owner-xedit-l@UGA.CC.UGA.EDU> Return-Path: <@UGA.CC.UGA.EDU:METRMDHM@SUVM.SYR.EDU> X-Acknowledge-To: <METRMDHM@SUVM.SYR.EDU> Message-ID: <930725.174926.LCL.METRMDHM@SUVM.SYR.EDU> Date: Sun, 25 Jul 1993 17:49:26 LCL Sender: VM System Editor List <XEDIT-L@UGA.BITNET> From: "Mark D. H. Miller" <METRMDHM@SUVM.SYR.EDU> Organization: SYRACUSE UNIVERSITY FACULTY COMPUTING SERVICES Subject: Re: Various XEDITs (Column Editing Mode) In-Reply-To: Message of Fri, 23 Jul 1993 16:10:38 GMT from <ets@WRKGRP.COM> Lines: 230