[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [StrongED] StrongEd v4.70a11 and Learn/Replay



Martin  wrote

> Does SE have any ability to 'record' a simple series of actions as they
> are performed (eg type 2 blanks, type 123, move 10 charatcers right,
> delete two characters, goto start of next line) and then 'replay' them at
> the press of a key?

Yes - shift-f9 ... do something ... shift-f9   f9 to playback

You might find the help for what the keys do useful.
From SED menu on icon bar >Help...  Key Bindings
This opens up the SED reference card.

> I am aware that SE has a 'scripts' facility

I use LUA (thanks Gavin)
The scripts can be simple or complex. here is a simple one to tidy up 
multiple spaces:

#! lua
-- multiple spaces to one space

for line in io.lines ( arg[1] ) do
  line = line:gsub("%s+"," ")     -- replace n spaces by space
  print (  line  )
end


John

-- 
John Rickman -  http://rickman.orpheusweb.co.uk/lynx
Nothing in this world is to be feared... only understood. Marie Curie

-- 
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxxxxx
List archives at http://www.Torrens.org.uk/RO/StrongED/index.html