Skip to content

Clipboard support #6192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Clipboard support #6192

wants to merge 2 commits into from

Conversation

smerschjohann
Copy link
Contributor

Fixes #6175

You can try with a dev build and a patched code-server cli script:

#!/usr/bin/env sh
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# PATCH to DEV path
VSROOT=/home/coder/dev/code-server/lib/vscode
ROOT="$(dirname "$(dirname "$VSROOT")")"

APP_NAME="code-server"
VERSION="1.77.3"
COMMIT="704ed70d4fd1c6bd6342c436f1ede30d1cff4710"
EXEC_NAME="code-server"
CLI_SCRIPT="$VSROOT/out/server-cli.js"
"${NODE_EXEC_PATH:-$ROOT/lib/node}" "$CLI_SCRIPT" "$APP_NAME" "$VERSION" "$COMMIT" "$EXEC_NAME" "$@"

and use it like this:

echo -n my clipboard text | ./code-server --clipboard

If it makes like this, it would be cool to have it in code-server already.

Nonetheless, I think this addition makes sense in all vscode based applications, so I will try to create an issue and PR on the vscode repo.
Would be nice to read your thoughts.

@smerschjohann smerschjohann requested a review from a team as a code owner May 6, 2023 17:33
@smerschjohann
Copy link
Contributor Author

smerschjohann commented Sep 29, 2023

As there is now an API to listen for terminal events, I will try to create an extension instead. This won't be as performant, but hopefully performant enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat]: clipboard support
1 participant