Refined-github: Faster way to edit comments

Created on 4 Sep 2018  路  8Comments  路  Source: sindresorhus/refined-github

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.

enhancement help wanted

Most helpful comment

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

All 8 comments

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

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 think it would be enough to have a dedicated edit button. I think there used to be one...

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.

It forces me to write better comments on the first try.

I use it often for fixing typos, adding syntax highlighting, formatting code.

By "better", you probably mean the content right?

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!

I would rather add a shortcut, like option-clicking the comment.

I think we should restore the edit button next to the Reaction button instead

Thanks @bfred-it, this is awesome! 鉂わ笍

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hkdobrev picture hkdobrev  路  3Comments

alexanderadam picture alexanderadam  路  3Comments

hkdobrev picture hkdobrev  路  3Comments

sindresorhus picture sindresorhus  路  3Comments

mischah picture mischah  路  3Comments