diff options
Diffstat (limited to 'acme/edit')
| -rw-r--r-- | acme/edit/a.dis | bin | 0 -> 4287 bytes | |||
| -rw-r--r-- | acme/edit/c.dis | bin | 0 -> 4481 bytes | |||
| -rw-r--r-- | acme/edit/d.dis | bin | 0 -> 314 bytes | |||
| -rw-r--r-- | acme/edit/e.dis | bin | 0 -> 3986 bytes | |||
| -rw-r--r-- | acme/edit/g.dis | bin | 0 -> 4625 bytes | |||
| -rw-r--r-- | acme/edit/guide | 4 | ||||
| -rw-r--r-- | acme/edit/i.dis | bin | 0 -> 4286 bytes | |||
| -rw-r--r-- | acme/edit/p.dis | bin | 0 -> 4731 bytes | |||
| -rw-r--r-- | acme/edit/pipe.dis | bin | 0 -> 6305 bytes | |||
| -rw-r--r-- | acme/edit/readme | 31 | ||||
| -rw-r--r-- | acme/edit/x.dis | bin | 0 -> 5052 bytes |
11 files changed, 35 insertions, 0 deletions
diff --git a/acme/edit/a.dis b/acme/edit/a.dis Binary files differnew file mode 100644 index 00000000..992f7caf --- /dev/null +++ b/acme/edit/a.dis diff --git a/acme/edit/c.dis b/acme/edit/c.dis Binary files differnew file mode 100644 index 00000000..48a7ef3b --- /dev/null +++ b/acme/edit/c.dis diff --git a/acme/edit/d.dis b/acme/edit/d.dis Binary files differnew file mode 100644 index 00000000..9c77295a --- /dev/null +++ b/acme/edit/d.dis diff --git a/acme/edit/e.dis b/acme/edit/e.dis Binary files differnew file mode 100644 index 00000000..8faa3808 --- /dev/null +++ b/acme/edit/e.dis diff --git a/acme/edit/g.dis b/acme/edit/g.dis Binary files differnew file mode 100644 index 00000000..15bb20ce --- /dev/null +++ b/acme/edit/g.dis diff --git a/acme/edit/guide b/acme/edit/guide new file mode 100644 index 00000000..5beced2e --- /dev/null +++ b/acme/edit/guide @@ -0,0 +1,4 @@ +e file | x '/regexp/' | c 'replacement' +e 'file:0,$' | x '/.*word.*\n/' | p -n +e file | pipe command args ... +New /absolute/file/name diff --git a/acme/edit/i.dis b/acme/edit/i.dis Binary files differnew file mode 100644 index 00000000..4b44420a --- /dev/null +++ b/acme/edit/i.dis diff --git a/acme/edit/p.dis b/acme/edit/p.dis Binary files differnew file mode 100644 index 00000000..70202e9b --- /dev/null +++ b/acme/edit/p.dis diff --git a/acme/edit/pipe.dis b/acme/edit/pipe.dis Binary files differnew file mode 100644 index 00000000..2e6fc9b1 --- /dev/null +++ b/acme/edit/pipe.dis diff --git a/acme/edit/readme b/acme/edit/readme new file mode 100644 index 00000000..e4d29579 --- /dev/null +++ b/acme/edit/readme @@ -0,0 +1,31 @@ +The programs collected in /acme/edit offer a sam-like command interface +to acme windows. The guide file + /acme/edit/guide +holds templates for several editing operations implemented +by external programs. These programs, composed in +a pipeline, refine the sections of a file to be modified. +Thus in sam when one says + x/.*\n/ g/foo/ p +in /acme/edit one runs + x '/.*\n/' | g '/foo/' | p +The e command, unrelated to e in sam, disambiguates file names, collects +lists of names, etc., and produces input suitable for the other tools. +For example: + e '/usr/rob/acme:0,$' | x /oldname/ | c /newname/ +changes oldname to newname in all the files loaded in acme whose names match +the literal text /usr/rob/acme. + +The commands in /acme/edit are + e + x + g + c + d + p + pipe (like sam's | , which can't be used for syntactic reasons) + +p takes a -n flag analogous to grep's -n. There is no s command. +e has a -l flag to produce line numbers instead of the default character numbers. +Its implementation is poor but sufficient for the mundane job of recreating +the occasional line number for tools like acid; its use with the other commands +in this directory is discouraged. diff --git a/acme/edit/x.dis b/acme/edit/x.dis Binary files differnew file mode 100644 index 00000000..2d488e83 --- /dev/null +++ b/acme/edit/x.dis |
