codedoc
codedoc copied to clipboard
Ability to copy multiple lines from codeblocks
Example: https://autorestic.vercel.app/config
Like this?
If that is the intention, then perhaps the user experience can be improved on that front?
Oh, interesting. I tried to do that yesterday without success. I will try again and try to understand why I failed yesterday.
@loreanvictor looks nice. Also a copy all button at the corner would be nice imho
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.)
Me neither. I can confirm ctrl+c does copy multiple lines
@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
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 😅