talon_community
talon_community copied to clipboard
`define function`
define function in python should create the following text:
def {{{cursor here}}}( ):
{{{two spaces here}}}
return "success"
It would be nice if it can also recognise words like returning and arguments at the end-of-paragraph and ( , , , ).
i currently use quinn in combination with atom snippets to achieve exactly this: quinn define function. Though it might be nice to have something built into talon instead for cross editor standardization.
Interesting suggestion, but 2 spaces are not a python standard, neither is return "success".
I suggest to add an empty docstring instead. A missing docstring is an error with some python linters (e.g. pylint).