https://github.com/FichteFoll/AAAPackag ... ib/edit.py
I changed it a bit:
- Added some documentation.
- Removed sel method, because I have no idea what it is supposed to do.
- Removed FutureEdit stuff that you added recently and instead check if a parameter is "callable". Reduced the required amount of code.
- Added classmethod `Edit.call(func)` which is basically `with Edit(edit) as edit: edit.callback(func)`. With this you just need to write a function like TextCommand.run and pass it.