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
Sometimes, I will try to commit something and get an error because of our pre-commit hooks (like eslint and prettier). If I commit using GitHub Desktop, the error will show in a dialog box. I am unable to select the text of the error message. This is kind of annoying because I would like to be able to copy and paste the error message somewhere, possibly to ask someone else why it is happening.
Version
GitHub Desktop: 1.6.6
Operating system: macOS High Sierra Version 10.13.6
Steps to Reproduce
Try to commit something that produces a pre-commit hook to exit with a non-zero status, indicating an error. I can come up with a more specific example if anyone wants. Then try to select the text in the error dialog by clicking and dragging.
Expected Behavior
I should be able to select the text.
Actual Behavior
I am unable to select the text.
Additional Information
Logs
I would prefer not to attach my log file for privacy reasons, since this is happening on my work laptop. I can try to reproduce this at home if anyone wants.
Reacted by Julian Kussman, cypress evelyn masso, Max Hübner and Cameron Donahue
I assume you mean something like this? That is supposed to be a copy icon on the right. I would say that is a reasonable ask and something that would be useful.
I will let this sit for a few days to let others chime in.
But I would prefer being able to select some or all of the error, the same way I usually select text, and copy it using Command+C, the same way I usually copy things.
Hi @elias6, thanks for filing this, I was able to reproduce this issue locally.
I think both approaches are valid solutions! Allowing text highlighting and copying could be a good quick fix and that a copy icon would be a nice addition afterwards.
The 'copy all' button is overkill -- having to paste the whole log and trim it down to the error specifics I didn't want to retype is more work than just retyping it. Please enable users to employ the text selection cursor that already appears to highlight specific verbose errors from the log.
Activity
tierninho commentedon May 22, 2019
@elias6 Thanks for adding your suggestion.
I assume you mean something like this? That is supposed to be a
copyicon on the right. I would say that is a reasonable ask and something that would be useful.I will let this sit for a few days to let others chime in.
elias6 commentedon May 22, 2019
I don't see an icon like that.
But I would prefer being able to select some or all of the error, the same way I usually select text, and copy it using Command+C, the same way I usually copy things.
tierninho commentedon May 22, 2019
So that was only a mock-up. Alternatively, we could also allow some or all of the text to be copied.
elias6 commentedon May 22, 2019
I wouldn't mind that icon in addition to being able to select text. But I don't see any reason to not allow selecting text.
outofambit commentedon May 22, 2019
Hi @elias6, thanks for filing this, I was able to reproduce this issue locally.
I think both approaches are valid solutions! Allowing text highlighting and copying could be a good quick fix and that a copy icon would be a nice addition afterwards.
jkuss commentedon Jun 21, 2019
I have the same issue and would just like to be able to select text. If a message from the terminal is shown in a GUI I need to be able to select it.
I understand by default this UI built in HTML probably has
user-select: nonebut certain components should have text always selectable by default.cd88 commentedon Nov 21, 2019
bump
The 'copy all' button is overkill -- having to paste the whole log and trim it down to the error specifics I didn't want to retype is more work than just retyping it. Please enable users to employ the text selection cursor that already appears to highlight specific verbose errors from the log.
KaKi87 commentedon Dec 22, 2019
+1 !
Why isn't that basic and important UX problem resolved by the time as of now yet ?
KaKi87 commentedon Feb 6, 2020
@outofambit As this issue been fixed ?
Rexogamer commentedon Feb 6, 2020
@KaKi87 yep, that PR fixed the issue, this should be in next release :D