<div>Hi Tim,</div><div><br></div><div>Nice to see you here. I was using your &quot;vimpulse-surround&quot; every day while on Vimpulse and have been missing it since switched to Evil. I almost wanted to send you an email telling you how wonderful Evil looks like and hopped that you would be implementing the &quot;surround&quot; in Evil soon. Now we got you. :-)</div>
<div><br></div><div>York</div><div><br></div><div><br></div><div>On Fri, Aug 12, 2011 at 1:50 PM, Timothy Harper &lt;<a href="mailto:timcharper@gmail.com">timcharper@gmail.com</a>&gt; wrote:</div><div>Just wanted to post that I switched out vimpulse for evil, and I am digging it! Great work guys! �It feels more responsive, and less buggy.</div>
<div><br></div><div>I&#39;ve started to extend evil to implement surround. So far I have surround region implemented, that was easy. evil-define-key works brilliantly. �Change surround / delete surround is going to be a little more tricky though.</div>
<div><br></div><div>Previously, my approach was to implement custom text objects that were flagged as surrounding text objects. Then I implemented vimpulse-delete-surround-or-delete, vimpulse-change-surround-or-change, bound then to &#39;d&#39; and &#39;c&#39; respectively, and prompted for a text object. If the returned text object was flagged as a surround text object, I acted accordingly, otherwise forwarded on to vimpulse-delete / vimpulse-change.</div>
<div><br></div><div>I think a better approach, this time, would be to implement evil-change-maybe-surround. It would prompt for the next keystroke. �If &#39;s&#39;, then prompt for a text object and perform the operation. Otherwise, stick the key back into unread-command-events and forward to evil-change.</div>
<div><br></div><div>Does a better extension mechanism exist, or is that approach a good one in your eyes (Vegard?)</div><div><br></div><div>Thanks so much for bringing evil to my emacs! :)</div><div><br></div><div>Tim</div>
<div>_______________________________________________</div><div>implementations-list mailing list</div><div><a href="mailto:implementations-list@lists.ourproject.org">implementations-list@lists.ourproject.org</a></div><div>
<a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list">https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list</a></div><div><br></div>