Smart one-click copy-to-clipboard for interactive-session code blocks
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Proposal
For code bloc describing interactive session (like shell-session), the one-click copy-to-clipboard button copies only the command part of the text, filtering the prompt and response parts.
We could have two buttons to keep the original feature, or a shift/alt-click to get the whole text, or maybe use the html-like clipboard content to mark usefull text so that the terminal emulator can do the filtering.
I must confess, I didn't do much research to see if that behavior is already supported by some terminal emulators / interpreters.
Edited by 🤖 GitLab Bot 🤖