Upgrade console/shell-session code block

Use case or problem

As of now, the console code block only recognizes lines that start with # or $ but they should also support something like user@ubuntu:~$ as well.

Example of this working properly can be shown here: Rouge

Another feature that it’s missing is only copying the command after the #.
For example if I had a code block like this:

# echo "Hello World"

I would like to only copy echo "Hello World" without #.
If it was multiple command lines, I don’t care if it copies it or not.

1 Like