You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
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.
Reacted by TPS, Nick Fishman, Zain, Saagar Jha, Aiden Zucker, ivansabik, Alex Kreidler, Sergey Kostrukov, Alec Benzer, Jeff Stevenson and 38 more
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.
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.
Reacted by Alec Benzer and 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко)
Even better, auto-save them as a draft on GitHub account — would've saved me countless retyping on random glitches!
Reacted by TPS, Aiden Zucker, Alex Kreidler, hooluupog, Jeff Stevenson, 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко), Adrian Lanzafame, paveltarno, Payas Parab and Taimoor Ahmad
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 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.
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).
Reacted by haykam821, Dezone, Michael Pfaff, Valentino Stillhardt, Payas Parab, Taimoor Ahmad and jpburbank
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.
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?
Reacted by ComFreek, TPS, Valentino Stillhardt, Payas Parab, Taimoor Ahmad and Victor P. R. Müller
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?
Activity
eddiemonge commentedon Apr 23, 2015
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 commentedon Apr 24, 2015
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 commentedon Mar 24, 2016
Even better, auto-save them as a draft on GitHub account — would've saved me countless retyping on random glitches!
zaininfo commentedon Jul 27, 2016
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 commentedon Jul 27, 2016
@zaininfo Does Differential (Phabricator) auto-save, or only manual?
zaininfo commentedon Jul 28, 2016
@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 commentedon May 23, 2017
👍 for saving drafts on the fly... just lost a huge comment on an RFC.
Inlesco commentedon 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 commentedon 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 commentedon 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 commentedon Apr 17, 2018
probably somebody can make a chrome plugin for this
tranhungnghiep commentedon May 1, 2018
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 commentedon Aug 22, 2018
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 commentedon Aug 23, 2018
#376 (comment)
here we go, use this plugin
https://github.com/Liooo/github-comment-draft
gioragutt commentedon Aug 23, 2018
@Liooo what about writing issues and pull requests? This seems the plugin is only for comments
Liooo commentedon Aug 23, 2018
@gioragutt good point, and it works for them too.
musicin3d commentedon 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 commentedon 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 commentedon Aug 23, 2021
Just happened to me too, well. This sucks 😄