Skip to content

Ability to copy multiple lines from codeblocks #128

Open

Description

@kzshantonu

Activity

  1. loreanvictor commented on Feb 18, 2022

    @loreanvictor
    Contributor

    Like this?

    ezgif com-video-to-gif-5

    If that is the intention, then perhaps the user experience can be improved on that front?

  2. TysonMN commented on Feb 18, 2022

    @TysonMN
    Contributor

    Oh, interesting. I tried to do that yesterday without success. I will try again and try to understand why I failed yesterday.

  3. kzshantonu commented on Feb 19, 2022

    @kzshantonu
    Author

    @loreanvictor looks nice. Also a copy all button at the corner would be nice imho

  4. TysonMN commented on Feb 21, 2022

    @TysonMN
    Contributor

    In that GIF, I think the copy happened when typing Ctrl+C. At least, that is one way it could have happened. I didn't realize that was possible. Single clicking a line copies it, so I was trying to highlight multiple lines and then click one of them to copy them. I think this inconsistency is the issue with the user experience.

    Also, for the record, selecting multiple lines is accomplished by holding down Shift. That is standard enough. (I believe the typical behavior is Ctrl and then Shift to select a range.)

  5. kzshantonu commented on Feb 21, 2022

    @kzshantonu
    Author

    Me neither. I can confirm ctrl+c does copy multiple lines

  6. loreanvictor commented on Feb 21, 2022

    @loreanvictor
    Contributor

    @loreanvictor looks nice. Also a copy all button at the corner would be nice imho

    @kzshantonu Yeah there is a component for that actualy:

    https://codedoc.cc/docs/markdown/buttons#copy-button

  7. loreanvictor commented on Feb 21, 2022

    @loreanvictor
    Contributor

    In that GIF, I think the copy happened when typing Ctrl+C. At least, that is one way it could have happened. I didn't realize that was possible. Single clicking a line copies it, so I was trying to highlight multiple lines and then click one of them to copy them. I think this inconsistency is the issue with the user experience.

    @TysonMN this is an interesting design problem. On one hand, clicking on a single line, when multiple lines are selected, should deselect and select the line. On the other hand, it is, as you correctly pointed out, an inconsistent interaction with "single-line click copy" interaction. This interaction itself is non-standard (and hence the inconsistency), however it is extremely convenient IMO.

    I should think further on to what the best resolution is, and would also appreciate any ideas on this front 😅

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions