Support copying to system clipboard via OSC52 escape sequence

オープン
#4,943 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp, powershell
領域
cli

調査の方向性

Start by reviewing the CopyOrCancelLine key handler and the existing copy-related implementation; no specific files or tests are named in the issue. Compare the requested behavior with Set-Clipboard's -AsOSC52 implementation. Done means providing an OSC52-based way to copy selected text in the remote scenarios described, either through CopyOrCancelLine or an alternative key handler.

索引モデルが issue の本文から書いたものです。

説明

Issue-Enhancement Needs-Triage :mag:
Prerequisites
  • Write a descriptive title.
Description of the new feature/enhancement

It's really useful to be able to copy highlighted text to the system clipboard using ctrl+c (CopyOrCancelLine). This works without a hitch using the shell locally, and when using PowerShell remoting to connect to another computer, but not in certain other circumstances - say, if I remoted into another system using ssh and ran PowerShell there, ctrl+c doesn't copy to my system clipboard, which is really unfortunate.
Some of the situations it doesn't handle could be solved by adding either an option or another key handler that copies the selection using the OSC52 escape sequence.

Proposed technical implementation details (optional)

I would be satisfied with either an option to change Copy and equivalents to copy using OSC52 escape sequences or alternative keyhandlers that function like Copy etc. but use OSC52 copying. Set-Clipboard supports this; its implementation might be a useful reference?

主要言語
C#
スター
4.4k
フォーク
341
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PowerShell/PSReadLine のほかの issue

PowerShell/PSReadLine の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。