From: revrari@mweb.co.za
To: 9fans <9fans@9fans.net>
Subject: [9fans] Script to apply Edit commands in acme
Date: Sun, 15 Jan 2023 22:49:37 -0500 [thread overview]
Message-ID: <16738409770.1dB0AB2c.445654@composer.9fans.topicbox.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 730 bytes --]
In sam I can create a script file consisting of a list of edit commands to apply to the document. I then invoke *,| ssam -f my_script *to apply it.
I would like to do something similar in acme.
For example, create a script with these two commands to cleanup whitespace:
Edit ,x/^ +/d
Edit ,x/ +$/d
I would like to know if such a script would require the regular #!/bin/rc heading, and how it would be invoked from within acme. I tried to do something in my scripts folder, but it did not work.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Taf408751bc6fb344-M3eb35eb0b706b85667532f19
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 1334 bytes --]
next reply other threads:[~2023-01-16 3:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-16 3:49 revrari [this message]
2023-01-16 8:17 ` sirjofri
2023-01-16 9:06 ` revrari
2023-01-18 16:44 ` Henri Ducrocq
2023-01-18 16:54 ` Paul Lalonde
2023-01-19 9:33 ` revrari
2023-01-20 5:25 ` Ben Hancock
2023-01-20 7:23 ` igor
2023-01-20 14:24 ` Ben Hancock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16738409770.1dB0AB2c.445654@composer.9fans.topicbox.com \
--to=revrari@mweb.co.za \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).