Skip to content

Can't select text in commit error dialog #7606

Closed

Description

@elias6

Description

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.

Activity

  1. tierninho commented on May 22, 2019

    @tierninho
    Contributor

    @elias6 Thanks for adding your suggestion.

    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.

    Screen Shot 2019-05-22 at 8 02 05 AM

    I will let this sit for a few days to let others chime in.

  2. elias6 commented on May 22, 2019

    @elias6
    Author

    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.

  3. tierninho commented on May 22, 2019

    @tierninho
    Contributor

    So that was only a mock-up. Alternatively, we could also allow some or all of the text to be copied.

  4. elias6 commented on May 22, 2019

    @elias6
    Author

    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.

  5. added
    design-input-needed
    on May 22, 2019
  6. outofambit commented on May 22, 2019

    @outofambit
    Contributor

    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.

  7. jkuss commented on Jun 21, 2019

    @jkuss

    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: none but certain components should have text always selectable by default.

  8. cd88 commented on Nov 21, 2019

    @cd88

    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.

  9. KaKi87 commented on Dec 22, 2019

    @KaKi87

    +1 !
    Why isn't that basic and important UX problem resolved by the time as of now yet ?

  10. KaKi87 commented on Feb 6, 2020

    @KaKi87

    @outofambit As this issue been fixed ?

  11. Rexogamer commented on Feb 6, 2020

    @Rexogamer
    Contributor

    @KaKi87 yep, that PR fixed the issue, this should be in next release :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    design-input-neededenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions