Re: how to enclose text

From: Brian Schott <briancsch....at.gmail.com>
Date: Mon, 31 May 2010 20:09:33 -0700

My point there was that by placing the cursors on both ends of the
previously selected text, you can type anything that you want. This will
enclose the text in what you type.

On Mon, May 31, 2010 at 8:56 AM, morchel <morc....at.hotmail.com> wrote:

> > function encloseIn()
> > buffer:begin_undo_action()
> > local start = buffer.selection_start
> > local end = buffer.selection_end
> > buffer:set_selection(end, end)
> > buffer:add_selection(start, start)
> > buffer:end_undo_action()
> > end
>
> Sorry Brian, I don't get it.
>
> Finally you have two selections at the ends of the previous
> selected text, which appear as two cursors? And then what?
>
> Regards,
> Martin
>
> --
> You received this message because you are subscribed to the Google Groups
> "textadept" group.
> To post to this group, send email to textadept.at.googlegroups.com.
> To unsubscribe from this group, send email to
> textadept+unsubscribe.at.googlegroups.com<textadept%2Bunsubscribe.at.googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/textadept?hl=en.
>
>
Received on Mon 31 May 2010 - 23:09:33 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:46:33 EST