autoDocstring
autoDocstring copied to clipboard
Update docstring
Hey, I was wondering whether there was already a way to auto-update docstrings.
def start(a):
"""[summary]
Arguments:
a {[type]} -- [description]
"""
pass
to auto update to:
def changed(a,b):
"""[summary]
Arguments:
a {[type]} -- [description]
b {[type]} -- [description]
"""
pass
keeping the values of the already existing data lines.
And if some argument disappears, keep track of it in "Deleted" for example:
def deleted(b):
"""[summary]
Arguments:
b {[type]} -- [description]
Deleted:
a {[type]} -- [description]
"""
pass
Hi Bloodmallet, Thanks for the suggestion. I will take a look at what would be required to implement this feature. At first glance, I think this may be a little difficult as I'd have to build a whole separate parser for docstrings. But it also looks like a fun challenge so I'll give it a go when I have some time.
Thank you for considering it!
+1 for this feature. I implemented this for SublimeAutoDocstring and can say update functionality is a little tricky to do correctly, but it's a super handy feature. I would love to help if you have any questions. Unfortunately, my javascript is rusty and I haven't touched TypeScript, so you probably don't want me touching your code.
@KristoforMaynard Oh awesome! I'll take a look at your code and maybe ask you if I have any questions.
Any update on this front? Any idea on when this feature will be available?
Aaah, how I miss this from SublimeText. @KristoforMaynard, your work was really appreciated! I came here hoping I might be able to contribute, but my JS experience is about zero, and I barely know TS is a thing. :(
So, just saying that this feature would push this extension way over the top, into indispensable tier, if that helps motivate at all!
Hi thanks for the praise. I haven't begun building this feature yet, but the new templating backend could make this an easier thing to implement.
Any update on this feature? Currently, I'm using sublime-text only to update and instantiate my doc strings. Would make your awesome extension 10 times more valuable to the community! Keep up the good work.
This is going to a super useful feature. Was searching on how to do it with this extension till I reached here. Can be tricky but shouldn't be too hard. Looking forward to it.
That feature would indeed be super valuable. Unfortunately, I don't have any JS experience either.
I suppose there are only Python guys here. I wonder how we could motivate a JS/Typescript guy to tackle this incredibly-super-useful issue...
I’m slowly working away at this feature and hope to have a beta out soon.
cannot wait for this feature!!!
Any updates on this? Super excited.
+1 for this feature. Thanks for an amazing plugin!!
+1 This would be indeed very helpful. Please make it happen. Thank you for this really amazing plugin. Love it.
+1 this would be great to have, even if it's not 100% comprehensive.
+1 this would be great to not have to repeat the generation every time the function definition is updated. Thanks for the amazing extension
+1 This would be very nice to save time!