feat: Add hierarchical file tree with expand/collapse#50
Merged
agavra merged 3 commits intoagavra:mainfrom Jan 11, 2026
Merged
Conversation
agavra
reviewed
Jan 11, 2026
Owner
agavra
left a comment
There was a problem hiding this comment.
I love this! So much so I think we should make it the only option. Some feedback inline
Adds directory grouping (press 't') to organize files by directory structure with folder headers. - Added 't' keybinding to toggle directory grouping - Files are sorted and grouped by directory when enabled - Smart path truncation for long directory names - Status bar shows 't:tree' hint
- Add FileTreeItem enum and expanded_dirs state to App - Use Space to select files and expand/collapse directories - Use o/O to expand/collapse all directories - Underline styling for selected items - Tree structure with ▾/▸ icons for expanded/collapsed dirs - Auto-expand parent directories when jumping to file - Sync selection when navigating between panels - Add 7 unit tests for tree functionality
b29aee7 to
90f90ab
Compare
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
o/Oto expand/collapse all directories