Description
What is your suggestion?
On linux (and WSL2), I like to use clipboard utilities to paste the stdout of a process to the clipboard.
Like the following:
date | xclip -selection clipboard
It would be great if the code-server would have a functionality like code-server clipboard
or something similiar.
I'm currently looking into that problem, but cannot find a way to execute javascript code (directly or by RPC call) in the browser session from the "emulated" terminal.
I want to use the navigator.clipboard.writeText
function for that.
Why do you want this feature?
I want to use it to auto copy auto generated URLs, identifiers, passwords etc.
Are there any workarounds to get this functionality today?
Select the output of the application, press CTRL+SHIFT+C.
But that is cumbersome and also in case of passwords, prints the passwords to the terminal which has to be cleared afterwards.
Are you interested in submitting a PR for this?
In general, yes, but I think a solution needs to be discussed first.