-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Hi,
I've written a small package that ports vim's ci and ca functionality to Emacs; quoting from the readme, given a function like
function test() {
return "semantic| kill";
}
with | indicating the point:
-
change-inner "would kill the contents of the string, resulting infunction test() { return "|"; } -
change-inner-outer "would kill the entire string:function test() { return |; } -
change-inner {would kill the return-statement:function test() {|} -
change-inner-outer {would kill the entire block:function test() |
Originally based on magnars/change-inner.el, the package now uses puni instead of expand-region for selecting the appropriate region of text.
In slotThe/change-inner#1 I was asked why this was not included upstream, and the only answer I could come up with is that puni generally seems to favour very general structural editing functions, and this is rather specific functionality. However, of course I don't actually know, so this issue exists to clarify that :)