I use text objects with evil like "i(" for the contents of the brackets. I would quite like "magic code aware text objects"?
This textobject would:
- return the entire function if I was at a function
- return the entire class if I was at a class
- return the switch if I was at an "if/elif" block
etc.
Is there a way to do this task that does not consist of completely implementing it myself?