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

From: Mitchell <>
Date: Sat, 27 May 2017 00:08:42 -0400 (EDT)


On Sun, 7 May 2017, cryo shock wrote:

>>> Generally, if you try to break the snippet system, you will succeed. I
>> don't know how to make it work all the time. It was designed for inserting
>> placeholders in order, and allowing most use-cases of nested snippets. I
>> don't think yours is a common use case. Sorry if I'm misunderstanding
>> though.
>> 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.
> Like I said. I know how to circumvent it now, so I will get over it. I just
> thought, you might want to know, as might want other users who stumble upon
> this. ;)

I've committed a fix[1] to avoid deleting that first character.



You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Sat 27 May 2017 - 00:08:42 EDT

This archive was generated by hypermail 2.2.0 : Sat 27 May 2017 - 06:31:53 EDT