Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.
This repository has been archived by the owner on May 28, 2022. It is now read-only.

define function #133

Open
isomorphisms opened this issue Mar 19, 2019 · 2 comments
Open

define function #133

isomorphisms opened this issue Mar 19, 2019 · 2 comments

Comments

@isomorphisms
Copy link
Collaborator

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 ( , , , ).

@dwiel
Copy link
Owner

dwiel commented Mar 20, 2019

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.

@iacopy
Copy link

iacopy commented Apr 23, 2020

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants