Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Re-anchor what an undo restores into a book that had no links

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
22/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
backend

調査の方向性

The re-anchor pass and its recording live in the host undo/redo path, and BookService re-anchors splits as it serves segments, so start there and trace where a pass is recorded per book. Reproduce with the two examples in the body (delete GEN's only links, edit GEN in Paratext, undo) and confirm the restored links keep old token positions. Done when restored links and splits in a book with no recorded pass are re-anchored to its current text, and books with neither links nor splits before or after the step are untouched.

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

説明

An undo or redo re-anchors what it restores to each book re-anchored since the step was captured. A re-anchor pass is recorded only over books the draft links into or holds boundary edits in, so a book holding neither at pass time records none. An undo that restores links or splits into such a book leaves them anchored to the text as it stood when the step was captured. Restored links catch up once that book is opened or read again, which happens on the next Scripture save. Restored splits show correctly, because BookService re-anchors splits as it serves segments, but the stored splits stay stale for boundary commands and Save until the book's next pass.

Examples, each while GEN isn't open:

  • Delete the only links into GEN, which holds no splits, edit GEN's text in Paratext, then undo. The restored links point at GEN's old tokens.
  • Merge away GEN's only split, in a GEN with no links, edit GEN's text in Paratext, then undo the merge. The restored split points at GEN's old token.

The WebView path has the same gap, but #455 removes that path, so only the host needs the fix.

Done when: an undo or redo that restores links or splits into a book with no recorded pass re-anchors them to that book's current text, without re-anchoring books that have neither links nor splits before or after the step.

主要言語
TypeScript
スター
2
フォーク
0
平均マージ
1日 15時間
マージ済み PR(30日)
63

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

sillsdev/interlinearizer-extension のほかの issue

sillsdev/interlinearizer-extension の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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