Re: [code] Feature request: snippet._insert should allow replacing the selection

From: Pedro Andres Aranda Gutierrez <paaguti.att.gmail.com>
Date: Sat, 27 May 2017 11:29:08 +0200

Cool... Will check & report back

El 27 may. 2017 6:11 a. m., "Mitchell" <m.att.foicica.com> escribió:

> Hi,
>
> On Tue, 9 May 2017, Mitchell wrote:
>
> Hi Robert,
>>
>> On Sun, 7 May 2017, Robert Gieseke wrote:
>>
>> Am 07/05/17 um 14:42 schrieb Mitchell:
>>>
>>>> You might be very right about this. But imagine a user who inserts a
>>>>> snippet and deletes it right-away because he's had another idea or he
>>>>> pasted the wrong snippet for example. I think this could be pretty
>>>>> common,
>>>>> If you delete the whole snippet, then again TA will jump to the first
>>>>> line
>>>>> and delete the first symbol.
>>>>>
>>>>
>>>> I understand, and that is what "Tools -> Snippets -> Cancel Snippet"
>>>> (Ctrl+Shift+K) is for. I will make a note to look into this though. I
>>>> appreciate the details of your report.
>>>>
>>>
>>> Maybe it would be possible to have the shortcut as `Esc` and even
>>> indicate that one is in "Snipper-Insert" mode (in the status bar or by
>>> changing the color of a margin or something)?
>>>
>>
>> That is an interesting idea, at least with the "Esc" key. I will look
>> into this. Thanks for the suggestion.
>>
>
> I've committed a change[1] that binds the "Esc" key to "Cancel Snippet"
> when a snippet is active. (If a snippet is not active, the usual Esc
> behavior occurs.) I think snippet placeholders are indication enough that a
> snippet is active. I don't think there is a need to update the statusbar or
> change a margin color.
>
> Cheers,
> Mitchell
>
> [1]: http://foicica.com/hg/textadept/rev/aba084a8520d
> --
> You are subscribed to code.att.foicica.com.
> To change subscription settings, send an e-mail to code+help.att.foicica.com.
> To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
>
>

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sat 27 May 2017 - 05:29:08 EDT

This archive was generated by hypermail 2.2.0 : Sat 27 May 2017 - 06:32:01 EDT