[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[StrongED] Re: Manual - Shortcuts
In article <4bb8c20f57.fjgraute@xxxxxxxxx>,
Fred Graute <fjgraute@xxxxxxxxx> wrote:
> The markers for the cursor position (\@) can be followed by a number.
> This number refers to a previous cursor position. When the cursor
> reaches this numbered field the text from the position it refers to is
> copied.
> If we have this shortcut: ``f function \@()\n-- end of \@0
> After typing ``f and filling in the function name we might have:
> function Foobar()
> -- end of
> The cursor will just after Foobar. If we now hit return the cursor will
> be moved to after 'end of ' and the text from cursor position 0 will be
> copied here, in this case 'Foobar', so that we end up with:
> function Foobar()
> -- end of Foobar
Neat! Done. I have expanded it a bit and put in another example from html.
If I'd done Shortcuts first I woud have saved a lot of typing!
The main problem with Shortcuts is remembering what you have made!
http://stronged.torrens.org/man/modes/syntaxmodefile.html#Shortcuts
It's amazing how many goodies there are hidden in StrongED!
--
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!
--
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxx
List archives and instructions at
http://stronged.torrens.org/index.html