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

Guidance on gutter indicators and collapsible sections in "edit mode" and "diff mode" using unifiedMergeView

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
react, typescript
領域
frontend

調査の方向性

@codemirror/merge unifiedMergeView のドキュメントと、リポジトリの TypeScript React 統合から始めます。編集モードの変更ガターと diff モードの折りたたみ可能な未変更セクションについて、サポートされているアプローチを確認し、その後、両方のモードについてドキュメント化された例または実装ガイダンスを提示してください。

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

説明

Hi @uiwjs/react-codemirror team!

I'm using @uiwjs/react-codemirror with @codemirror/merge's unifiedMergeView and have introduced a mode selector: "Edit" (editable) and "Diff" (read-only). I'm looking for guidance on implementing two features.

1. Edit mode: Display gutter indicators showing which lines have been modified compared to the original. What's the recommended approach for tracking line changes and adding gutter markers?

Image

2. Diff mode: Add collapse/expand buttons in the gutter for unchanged sections, similar to GitHub's diff view. Are there existing patterns or extensions for collapsible regions in merge view?

Image

Any examples, documentation, or implementation suggestions would be greatly appreciated. Thanks for maintaining this valuable open source project!

主要言語
TypeScript
スター
2.3k
フォーク
162
平均マージ
2時間 41分
マージ済み PR(30日)
1

環境構築

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

はじめの一歩

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

uiwjs/react-codemirror のほかの issue

uiwjs/react-codemirror の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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