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
If you have to edit comments regularly, it would be nice if e.g. double clicking a comment text would be enough to trigger the actions that currently require clicking ... and then Edit.
Makes sense to only trigger the "Edit" when no text is being selected by this action. Could also be a double click on the command "header", next to "x hours ago".
Also, you can edit your last comment by pressing [up]
That's a nice feature that I will use in appropriate cases, but especially in long PRs where I have to update the description it will most probably not be my last comment etc - so I think this is still valid.
I would rather add a shortcut, like option-clicking the comment.
As a side-note, I actually think it's good that the edit button is less reachable. It forces me to write better comments on the first try, instead of always going back to edit typos afterwards.
Unfortunately I can't influence how random people don't format or misformat their code examples - and the edit button is the only way to make those readable. But I get your point.
Activity
fregante commentedon Sep 5, 2018
I use double-clicking to select content, so perhaps this has to be limited to blank areas in the header.
Also, you can edit your last comment by pressing up
janpio commentedon Sep 5, 2018
Makes sense to only trigger the "Edit" when no text is being selected by this action. Could also be a double click on the command "header", next to "x hours ago".
That's a nice feature that I will use in appropriate cases, but especially in long PRs where I have to update the description it will most probably not be my last comment etc - so I think this is still valid.
vjpr commentedon Oct 8, 2018
I think it would be enough to have a dedicated edit button. I think there used to be one...
sindresorhus commentedon Nov 7, 2018
I would rather add a shortcut, like option-clicking the comment.
As a side-note, I actually think it's good that the edit button is less reachable. It forces me to write better comments on the first try, instead of always going back to edit typos afterwards.
vjpr commentedon Nov 7, 2018
I use it often for fixing typos, adding syntax highlighting, formatting code.
By "better", you probably mean the content right?
janpio commentedon Nov 7, 2018
Unfortunately I can't influence how random people don't format or misformat their code examples - and the edit button is the only way to make those readable. But I get your point.
Shortcut sounds good!
[-]Double click comments to edit them[/-][+]Faster way to edit comments[/+]fregante commentedon Mar 20, 2019
I think we should restore the edit button next to the
Reactionbutton insteadjanpio commentedon Mar 26, 2019
Thanks @bfred-it, this is awesome! ❤️