Hi guys, hope you all doing fine.
I'm trying to make an operator in evil that does the following:
1. takes a motion for object to keep
2. takes another motion to delete
so for example if i have a string with | as the cursor `"testing |with a string"` and i use the operator in it with `iw` then `i"` this would leave the string as `"with"` .
the problem here is that I have some motion keys that are not standard evil motion keys those functions when used with this operator they produce this error **evil-extract-count: Key sequence contains no complete binding.**
an example of the motion functions is:
(evil-define-motion my-backward-sexp-or-pyblock ( count args)
:jump nil
:type 'word
(if (eq major-mode 'python-mode)
(if (python-info-end-of-block-p)
(python-nav-backward-sexp count t t)
(python-nav-backward-sexp count t)
)
(sp-backward-sexp count)
)
)
any ideas on how to solve this problem?