feat: フォーカス中ペインの下にプレビューを常時表示#16
Conversation
カーソル行のファイル/ディレクトリの内容を、フォーカス中ペインの下に 常時表示するプレビュー領域を追加。Source フォーカス時は Source の下、 Dest フォーカス時は Dest の下に表示する。 - fs.FileSystem に ReadFile を追加(OSFS は先頭64KiBまで読み込み) - テキストは内容、ディレクトリは中の一覧を表示 - バイナリ・読み込み失敗・空はメッセージを表示 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning Review limit reached
More reviews will be available in 10 minutes and 26 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (11)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- プレビュー領域の高さを約1/3から50%へ変更 - Tab の巡回にプレビューを追加(Sourceペイン→Sourceプレビュー→ Destペイン→Destプレビュー、Source未選択時はSourceをスキップ) - プレビューフォーカス時は j/k でスクロール、gg/G で先頭/末尾へ - プレビュー対象(カーソル行)が変わったらスクロール位置をリセット - フォーカス位置に応じて枠色とステータス表示を切り替え Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Tab の逆方向として Shift+Tab を追加。 Destペイン → Sourceプレビュー → Sourceペイン → Destプレビュー の順で 巡回し、SourcePane未選択時はSource側をスキップする。 通常モード・プレビューフォーカス時の双方で有効。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
フォーカス移動を2軸に分離。 - Tab: 左右ペイン間の横移動(縦位置のペイン/プレビューは維持) - Shift+Tab: ペインとプレビュー間の縦移動(左右位置は維持) SourcePane未選択時はTabでの横移動を無効化する。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
概要
フォーカス中ペインの下に、カーソル行のファイル/ディレクトリ内容を常時表示するプレビュー領域を追加しました。
表示内容
/)変更点
fs.FileSystemにReadFileを追加。OSFS実装は先頭 64KiB までに制限して巨大ファイルでも安全internal/ui/preview.goにpreviewLines/isBinary/renderPreviewを追加render()でフォーカス側を縦分割(ペイン約2/3・プレビュー約1/3、最小高さを確保)テスト
isBinary/previewLines(テキスト・バイナリ・ディレクトリ・読み込み失敗・空・nil)の単体テスト🤖 Generated with Claude Code