Re: Enclose in improvements

From: mitchell <mforal.n....at.gmail.com>
Date: Fri, 30 Oct 2009 09:33:36 -0700 (PDT)

Hi,

> Was there any particular reason for requiring Alt+C to trigger the
> "enclose" function from textadept.editing? I just stick this line in my
> key_commands.lua and I'm liking it much better due to the smaller number
> of keystrokes.
>
> keys['s('] = {function() if buffer.get_sel_text() == '' then return
> false else m_editing.enclose("parens") end end}

I think I had this at some point in time, but there was a complaint
that normally selecting text and typing should overwrite that text,
not modify it. The extra 'backspace' was a hassle I guess.
Received on Fri 30 Oct 2009 - 12:33:36 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:38:45 EST