Currently only ::method is matched, but there is also ::Class::method, and e.g. test_pytest_param_example.py::test_eval[1+7-8].
As for matching the ::Class I think using the normal command / instead of search() might work - using two patterns (/^\s*class Class;/\s*def method).
Currently s:setpos only supports calling a function though - are you up for changing this?
(I do not think that we can assume execute() to be available)
Would an internal method wrapping :normal make sense - maybe using execute() if it is available?
As for the parametrized suffix: this should get matched, but ignored - it all goes to the same method.
Currently only
::method
is matched, but there is also::Class::method
, and e.g.test_pytest_param_example.py::test_eval[1+7-8]
.As for matching the
::Class
I think using the normal command/
instead ofsearch()
might work - using two patterns (/^\s*class Class;/\s*def method
). Currentlys:setpos
only supports calling a function though - are you up for changing this? (I do not think that we can assumeexecute()
to be available) Would an internal method wrapping:normal
make sense - maybe usingexecute()
if it is available?As for the parametrized suffix: this should get matched, but ignored - it all goes to the same method.