Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Save drafts of comments #376

Open
ComFreek opened this issue Apr 5, 2015 · 19 comments
Open

Save drafts of comments #376

ComFreek opened this issue Apr 5, 2015 · 19 comments
Labels
automation Reducing manual interactions and increasing productivity through automated processes comments saved / draft

Comments

@ComFreek
Copy link

ComFreek commented Apr 5, 2015

Excerpt from my mail to support@github.com

I'd like to raise a feature request: save drafts of comments during the time they're written (as StackOverflow does with posts, BTW).

I have often encountered the unfortunate scenario that I accidentally closed my browser tab and thereby lost my comment! This is especially an annoying problem with very long comments which were time-consuming to write.

Saving the data into browser's localStorage would suffice in many, if not all, cases in my opinion.

@eddiemonge
Copy link

You could always write them in a real text editor (preferably something with spell check) and then copy that in. I think adding this would add too much clutter as there would have to be some way to mange the drafts.

@ComFreek
Copy link
Author

Well, StackOverflow doesn't provide a dashboard of all saved drafts either. It would be a nice small alternative to manually saving drafts into the clipboard buffer or writing them in an external editor, but definitely nothing of upmost importance.

@TPS
Copy link
Collaborator

TPS commented Mar 24, 2016

Even better, auto-save them as a draft on GitHub account — would've saved me countless retyping on random glitches!

@zaininfo
Copy link

I really like how this is handled in Differential (Phabricator) i.e. we can save comments as drafts, before actually publishing them.
I guess, we could tweak that behavior a bit by having two buttons on a comment box, where one of them is to save the comment as a draft.
A dedicated panel for seeing all the drafts would be nice, but one can always go to a PR and see all the saved drafts (since, a saved draft would only be useful in the context of a PR), which can then be published individually.

@TPS
Copy link
Collaborator

TPS commented Jul 27, 2016

@zaininfo Does Differential (Phabricator) auto-save, or only manual?

@zaininfo
Copy link

@TPS sorry, if I wasn't clear before, in Differential (Phabricator) we have to manually save the comments.
Now that I think of it, maybe, it's much better to tweak this behavior and have auto-saving in GitHub.

@jvivs
Copy link

jvivs commented May 23, 2017

👍 for saving drafts on the fly... just lost a huge comment on an RFC.

@Inlesco
Copy link

Inlesco commented Oct 7, 2017

I don't really understand... Why is it so hard to implement comments saving in the browser's localStorage? It's a must-have feature for comfortable use of GitHub.

Also, an ability to save any comment or mark it as a favorite, so you can view it in your profile under [FAVOTRITES] or [SAVED] tab (the feature being present in Reddit, SO, etc.) would be neat as well (unless it's already there and I've missed smth).

@alecbz
Copy link

alecbz commented Oct 7, 2017

Pull request reviews already support explicitly saved comments, so it shouldn't be too hard to copy the basic UX there to comments in general. Implicit saving would be a big plus too though.

@speexy
Copy link

speexy commented Apr 11, 2018

Just lost a comment by accidentally closing the wrong tab. I just lost an hour of my life. If only there were autosaves!

@Liooo
Copy link

Liooo commented Apr 17, 2018

probably somebody can make a chrome plugin for this

@tranhungnghiep
Copy link

At least it should warn user before closing the tab. Closing without warning is only reasonable when auto save is enable. What a weird UX.

@gioragutt
Copy link

This happens to me too many times, accidentally routing away when composing an issue.
This is such a drag.

I would expect it to just be saved when I go back...

@Liooo
Copy link

Liooo commented Aug 23, 2018

#376 (comment)

here we go, use this plugin

https://github.com/Liooo/github-comment-draft

@gioragutt
Copy link

@Liooo what about writing issues and pull requests? This seems the plugin is only for comments

@Liooo
Copy link

Liooo commented Aug 23, 2018

@gioragutt good point, and it works for them too.

@TPS TPS added comments saved / draft automation Reducing manual interactions and increasing productivity through automated processes labels Feb 28, 2019
@musicin3d
Copy link

musicin3d commented Apr 2, 2020

If I hit the Cancel button while editing a comment then I get an alert to confirm that I really want to do that. But if I'm writing a new comment and accidentally click any link anywhere then GitHub's just like, "whelp, sucks to suck, sucker." WHAT IS THIS?

@Fusseldieb
Copy link

Fusseldieb commented Dec 1, 2020

Just lost a major comment due to an power outage.

After 5 years it still isn't present. Nice one ✌️

@victormueller-da
Copy link

If I hit the Cancel button while editing a comment then I get an alert to confirm that I really want to do that. But if I'm writing a new comment and accidentally click any link anywhere then GitHub's just like, "whelp, sucks to suck, sucker." WHAT IS THIS?

Just happened to me too, well. This sucks 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automation Reducing manual interactions and increasing productivity through automated processes comments saved / draft
Projects
None yet
Development

No branches or pull requests