Re: [dev] another text user interface for sam

From: Greg Reagle <greg.reagle_AT_umbc.edu>
Date: Fri, 26 Feb 2016 12:11:22 -0500

On 02/26/2016 11:29 AM, Raphaël Proust wrote:
> I find the supposed
> “transparency” of changes in a group is often buggy. I.e., when using
> something like
> ,x/<some-reg-exp/{i/\\texttt\{
> a/\}
> }
> it often messes up and I end up using the less elegant
> `,x/<some-reg-exp/s/.*/\\texttt\{&\}/`

I got it to work for me:
cat test | ssam ',x/start/ { i/\\texttt{/
a/}/
}'

Apparently there is no need to backslash-escape the braces since they
are arguments to add or insert. Also, the forward slashes at the end of
the insert and add commands which I put in seem to be optional,
presumably since the newline ends the commands.
Received on Fri Feb 26 2016 - 18:11:22 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 26 2016 - 18:12:10 CET