Add tree-mode files to the review side panel#148
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
サイドパネルの Files セクションに sidepanel.file_tree オプションを追加し、デフォルトのフラット表示は維持したまま、オプトインでディレクトリツリー表示に切り替えられるようにするPRです。レビュー時のファイル把握を、ディレクトリ単位で整理して行いやすくする目的の変更です。
Changes:
lua/fude/ui/sidepanel/tree.luaを追加し、変更ファイル一覧からツリー構造の構築・集計・フラット化(描画用)を実装- サイドパネルにツリー描画 (
format_files_section_tree) とセッション内トグル(t/:FudeReviewToggleFileTree)を追加 - README /
doc/fude.txt/CLAUDE.md/ config defaults / テストを更新し、新モードとコマンドを反映
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/fude/sidepanel_tree_spec.lua | ツリー構築・連結ディレクトリの圧縮・集計・フラット化のユニットテスト追加 |
| tests/fude/sidepanel_spec.lua | format_files_section_tree の描画仕様テスト追加 |
| tests/fude/sidepanel_integration_spec.lua | デフォルトは flat / 設定時は tree を使う統合テスト追加 |
| README.md | FudeReviewPanel と FudeReviewToggleFileTree、sidepanel.file_tree 設定例を追記 |
| plugin/fude.lua | :FudeReviewToggleFileTree コマンド追加 |
| lua/fude/ui/sidepanel/tree.lua | ツリー構築・圧縮・集計・描画順フラット化の純粋ヘルパー追加 |
| lua/fude/ui/sidepanel.lua | ツリー描画・トグル・エントリ解決の拡張、t キーマップ追加 |
| lua/fude/config.lua | sidepanel.file_tree = "flat" を defaults に追加 |
| doc/fude.txt | t キーマップと :FudeReviewToggleFileTree、sidepanel.file_tree をドキュメント化 |
| CLAUDE.md | サイドパネル/ツリーの構成・関数一覧・キーマップ説明を更新 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a "tree view" to the side panel.
Right now we have only one view which is a flat one listing all the files.
Testing
make allpassed.CleanShot2026-06-10at18.46.11-converted.mp4