-
-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add surrounding function name delete/change #118
base: master
Are you sure you want to change the base?
Conversation
The mentioned regex
Python identifiers can be defined as:
from https://docs.python.org/2/reference/lexical_analysis.html#identifiers A working regex for python is: |
A working vim regex would be: |
I was about to open the same PR but found this one from a while back. Is there anything left to do here that I can help with to get it merged? |
Since this PR seems pretty abandoned, I just want to let you know that a similar plugin has support for deleting surrounding functions, see https://github.com/machakann/vim-sandwich/wiki/Magic-characters#function-surroundings. |
Candidly, Surround just doesn't make the cut for things I have time to work on these days. Years of experience have taught me that blindly clicking the merge button on PRs I don't have time to audit just creates a giant mess. I'll leave this open in case my priorities shift, but until then, Surround is essentially in a feature freeze. Sandwich has been on my radar for a while and does seem cool, even if the default |
Thanks for the update! No worries, this is totally understandable. We owe you a lot for creating all these immensely useful and influential plugins in the first place. 🙌 Take care! |
I just made vim-surround-funk to do that. You can also then 'grip' some text object with the function call. So |
Adds
f
/F
support tos:dosurround
, to allow changing/deleting the name of a surrounding function call. As witht
,f
preserves whitespace whileF
removes it. For example,