Re: Duplicate line

From: Ryan Pusztai <rpusz....at.gmail.com>
Date: Sat, 1 May 2010 12:19:05 -0400

On Sat, May 1, 2010 at 5:43 AM, morchel <morc....at.hotmail.com> wrote:

> I prefer to have the caret in the copied line so
> I use the following function to duplicate it:
>
> ---
> -- Duplicates the current line and moves the caret to the new line
> function duplicate_line()
> local buffer = buffer
> buffer:line_duplicate() -- Duplicate the current line
> buffer:line_down()
> end
>
> keys.cd = { duplicate_line }

Thanks. This is exactly what I wanted. I am really enjoying TA and how Lua
extends it is amazing.

-- 
Regards,
Ryan
-- 
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.
For more options, visit this group at http://groups.google.com/group/textadept?hl=en.
Received on Sat 01 May 2010 - 12:19:05 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:44:26 EST